gcc.git
9 years agore PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
Richard Biener [Tue, 10 Mar 2015 08:25:31 +0000 (08:25 +0000)]
re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)

2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* cgraph.h (struct cgraph_edge_hasher): Add hash overload
for compare_type.
* cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
(cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
(cgraph_add_edge_to_call_site_hash): Likewise.
(cgraph_node::get_edge): Likewise.
(cgraph_edge::set_call_stmt): Likewise.
(cgraph_edge::remove_caller): Likewise.

From-SVN: r221308

9 years ago[NDS32] Rename some variables so that we can clearly identify they represent general...
Chung-Ju Wu [Tue, 10 Mar 2015 08:16:57 +0000 (08:16 +0000)]
[NDS32] Rename some variables so that we can clearly identify they represent general purpose registers.

gcc/
* config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
(callee_saved_gpr_regs_size): ... this.
(callee_saved_regs_first_regno): Rename to ...
(callee_saved_first_gpr_regno): ... this.
(callee_saved_regs_last_regno) Rename to ...
(callee_saved_last_gpr_regno): ... this.
* config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
variables.
(nds32_initial_elimination_offset): Likewise.
(nds32_expand_prologue): Likewise.
(nds32_expand_epilogue): Likewise.
(nds32_expand_prologue_v3push): Likewise.
(nds32_expand_epilogue_v3pop): Likewise.
* config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
Adjust renamed variables.
(nds32_output_stack_pop): Likewise.

From-SVN: r221306

9 years agoipa-icf-36.c (dg-final): Cleanup icf ipa dump.
Uros Bizjak [Tue, 10 Mar 2015 07:47:43 +0000 (08:47 +0100)]
ipa-icf-36.c (dg-final): Cleanup icf ipa dump.

* gcc.dg/ipa/ipa-icf-36.c (dg-final): Cleanup icf ipa dump.
* gcc.dg/ipa/ipa-icf-37.c (dg-final): Ditto.

From-SVN: r221304

9 years agodominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B code in comment.
Thomas Preud'homme [Tue, 10 Mar 2015 07:35:09 +0000 (07:35 +0000)]
dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B code in comment.

2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
    code in comment.

From-SVN: r221303

9 years agore PR c/65120 (Wlogical-not-parentheses should not warn about double exclamation !!)
Jakub Jelinek [Tue, 10 Mar 2015 06:38:57 +0000 (07:38 +0100)]
re PR c/65120 (Wlogical-not-parentheses should not warn about double exclamation !!)

PR c/65120
* c-common.c (warn_logical_not_parentheses): Don't warn for
!x == 0 or !x != 0.

* c-typeck.c (parser_build_binary_op): Check for tcc_comparison
before preparing arguments to warn_logical_not_parentheses.

* parser.c (cp_parser_binary_expression): Check for tcc_comparison
before preparing arguments to warn_logical_not_parentheses.
Use maybe_constant_value on rhs.

* c-c++-common/pr49706.c (fn2): Don't expect warning if enumerator
on rhs is 0.
(fn4): New test.
* c-c++-common/pr65120.c: New test.

From-SVN: r221299

9 years agore PR rtl-optimization/65321 (ICE on valid code at -O2 and -O3 with -g enabled in...
Jakub Jelinek [Tue, 10 Mar 2015 06:36:50 +0000 (07:36 +0100)]
re PR rtl-optimization/65321 (ICE on valid code at -O2 and -O3 with -g enabled in decompose, at rtl.h:2007)

PR rtl-optimization/65321
* cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
than shift mode.
* var-tracking.c (use_narrower_mode): Likewise.

* gcc.dg/pr65321.c: New test.

From-SVN: r221298

9 years agore PR tree-optimization/65355 (vectorizer increase alignment of symbols already place...
Jan Hubicka [Tue, 10 Mar 2015 04:24:21 +0000 (05:24 +0100)]
re PR tree-optimization/65355 (vectorizer increase alignment of symbols already placed in anchors)

PR tree-optimization/65355
* varasm.c (notice_global_symbol): Do not produce RTL.
* symtab.c (symtab_node::can_increase_alignment_p): Check for section
anchor.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
check for section anchors.
* gcc.dg/vect/section-anchors-vect-69.c: Update template.

From-SVN: r221297

9 years agoDaily bump.
GCC Administrator [Tue, 10 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221296

9 years agore PR go/65353 (unknown ptrSize for $GOARCH "arm64" on aarch64-linux-gnu)
Ian Lance Taylor [Tue, 10 Mar 2015 00:14:58 +0000 (00:14 +0000)]
re PR go/65353 (unknown ptrSize for $GOARCH "arm64" on aarch64-linux-gnu)

PR go/65353.
cmd/cgo: Add all gccgo GOARCH values to size maps.

From-SVN: r221293

9 years agore PR go/65349 (go tool crashes, can't compile go code on 32bit linux systems)
Ian Lance Taylor [Mon, 9 Mar 2015 23:43:16 +0000 (23:43 +0000)]
re PR go/65349 (go tool crashes, can't compile go code on 32bit linux systems)

PR go/65349
runtime: Don't crash if explicitly freeing small map.

From-SVN: r221292

9 years agore PR go/65349 (go tool crashes, can't compile go code on 32bit linux systems)
Ian Lance Taylor [Mon, 9 Mar 2015 23:40:58 +0000 (23:40 +0000)]
re PR go/65349 (go tool crashes, can't compile go code on 32bit linux systems)

PR go/65349
runtime: Don't call malloc from __go_file_line callback.

When crashing, we call runtime_printcreatedby which calls
__go_file_line which used to call the Go malloc.  If we are
crashing due to a signal due to heap corruption of some sort,
the GO malloc lock might already be held, leading to a crash
within a crash.  Avoid that by assuming that the libbacktrace
strings will stick around, as we already do in go-callers.c.

From-SVN: r221291

9 years agore PR target/65286 (When building on powerpc64le-unknown-linux-gnu, --disable-multili...
Alan Modra [Mon, 9 Mar 2015 23:18:57 +0000 (09:48 +1030)]
re PR target/65286 (When building on powerpc64le-unknown-linux-gnu, --disable-multilib must be used)

PR target/65286
* config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
to be single-arch by default.  Set cpu_is_64bit for powerpc64
given --with-cpu=native.
* config/rs6000/t-fprules: Do not set default MULTILIB vars.
* config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
and powerpc64le.
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
rs6000_isa_flags rather than TARGET_64BIT.

From-SVN: r221288

9 years agot-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
Yoshinori Sato [Mon, 9 Mar 2015 23:14:19 +0000 (08:14 +0900)]
t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.

* config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.

Co-Authored-By: Kaz Kojima <kkojima@gcc.gnu.org>
From-SVN: r221287

9 years agore PR lto/65361 (LTO: tree check: expected tree that contains ‘decl minimal’ structur...
Jakub Jelinek [Mon, 9 Mar 2015 20:19:34 +0000 (21:19 +0100)]
re PR lto/65361 (LTO: tree check: expected tree that contains ‘decl minimal’ structure, have ‘tree_binfo’ in add_type_duplicate, at ipa-devirt.c:1509)

PR lto/65361
* ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
on a TREE_BINFO, instead use BINFO_TYPE.

From-SVN: r221286

9 years agore PR c++/65339 (C++ ICE with lambda and no capture list)
Jason Merrill [Mon, 9 Mar 2015 19:59:54 +0000 (15:59 -0400)]
re PR c++/65339 (C++ ICE with lambda and no capture list)

PR c++/65339
* call.c: Don't call maybe_resolve_dummy when calling a constructor.

From-SVN: r221285

9 years agore PR c/65120 (Wlogical-not-parentheses should not warn about double exclamation !!)
Jakub Jelinek [Mon, 9 Mar 2015 18:26:52 +0000 (19:26 +0100)]
re PR c/65120 (Wlogical-not-parentheses should not warn about double exclamation !!)

PR c/65120
* c-typeck.c (parser_build_binary_op): Don't warn for
!!x == y or !b == y where b is _Bool.

* parser.c (cp_parser_binary_expression): Don't warn for
!!x == y or !b == y where b is bool.

* c-c++-common/pr49706.c: Adjust tests for not warning
about !!x == y or !b == y where b is boolean, and add
some further tests.
* c-c++-common/pr62199-2.c: Likewise.

From-SVN: r221284

9 years agore PR sanitizer/63958 (bootstrap failure in the sanitizer libs on sparc-linux-gnu)
Jakub Jelinek [Mon, 9 Mar 2015 18:25:28 +0000 (19:25 +0100)]
re PR sanitizer/63958 (bootstrap failure in the sanitizer libs on sparc-linux-gnu)

PR sanitizer/63958
Reapply:
2014-10-14  David S. Miller  <davem@davemloft.net>

* sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
Define at __kernel_time_t, as needed for sparc.
(struct __old_kernel_stat): Don't check if __sparc__ is defined.
* libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
(__sanitizer): Define struct___old_kernel_stat_sz,
struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
(__sanitizer_ipc_perm): Adjust for sparc targets.
(__sanitizer_shmid_ds): Likewsie.
(__sanitizer_sigaction): Likewise.
(IOC_SIZE): Likewsie.

From-SVN: r221283

9 years agoFix PR number for 65121 in Changelog.
Ramana Radhakrishnan [Mon, 9 Mar 2015 15:19:20 +0000 (15:19 +0000)]
Fix PR number for 65121 in Changelog.

PR target/65121

The commit that fixed this was

https://gcc.gnu.org/ml/gcc-cvs/2015-03/msg00140.html

From-SVN: r221282

9 years agore PR ipa/65270 (issues with merging memory accesses from different code paths)
Richard Biener [Mon, 9 Mar 2015 13:54:28 +0000 (13:54 +0000)]
re PR ipa/65270 (issues with merging memory accesses from different code paths)

2015-03-09  Richard Biener  <rguenther@suse.de>

PR middle-end/65270
* tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
* fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
of that.  When comparing dereferences compare alignment.
When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.

* gcc.dg/torture/pr65270-1.c: New testcase.
* gcc.dg/torture/pr65270-2.c: Likewise.

From-SVN: r221281

9 years agore PR libstdc++/64467 (28_regex/traits/char/isctype.cc and wchar_t/isctype.cc)
Jonathan Wakely [Mon, 9 Mar 2015 12:47:51 +0000 (12:47 +0000)]
re PR libstdc++/64467 (28_regex/traits/char/isctype.cc and wchar_t/isctype.cc)

PR libstdc++/64467
* testsuite/28_regex/traits/char/isctype.cc: Don't test newline
for newlib targets. Really fix mixed line-endings this time.

From-SVN: r221279

9 years agoc-convert.c (convert): Make use of do_ubsan_in_current_function.
Marek Polacek [Mon, 9 Mar 2015 11:57:33 +0000 (11:57 +0000)]
c-convert.c (convert): Make use of do_ubsan_in_current_function.

* c-convert.c (convert): Make use of do_ubsan_in_current_function.
* c-decl.c (grokdeclarator): Likewise.
* c-typeck.c (build_binary_op): Likewise.

From-SVN: r221278

9 years agoipa-inline-analysis.c (check_callers): Check node->can_remove_if_no_direct_calls_and_...
Jan Hubicka [Mon, 9 Mar 2015 04:53:54 +0000 (05:53 +0100)]
ipa-inline-analysis.c (check_callers): Check node->can_remove_if_no_direct_calls_and_refs_p.

* ipa-inline-analysis.c (check_callers): Check
node->can_remove_if_no_direct_calls_and_refs_p.
(growth_likely_positive): Reorganize to call
can_remove_if_no_direct_calls_p later.
* cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
will_be_removed_from_program_if_no_direct_calls_p): Add
will_inline parameter.
* cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
Handle inliner case correctly.

From-SVN: r221277

9 years agore PR middle-end/63743 (Thumb1: big regression for float operators by r216728)
Thomas Preud'homme [Mon, 9 Mar 2015 01:31:42 +0000 (01:31 +0000)]
re PR middle-end/63743 (Thumb1: big regression for float operators by r216728)

2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR tree-optimization/63743
    * cfgexpand.c (reorder_operands): Also reorder if only second operand
    had its definition forwarded by TER.

    gcc/testsuite/
    PR tree-optimization/63743
    * gcc.dg/pr63743.c: New test.

From-SVN: r221276

9 years agore PR lto/65316 (LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging...
Jan Hubicka [Mon, 9 Mar 2015 00:29:14 +0000 (01:29 +0100)]
re PR lto/65316 (LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging: in types_same_for_odr, at ipa-devirt.c:465)

PR lto/65316
* ipa-utils.h (types_odr_comparable): Add strict argument.
* ipa-devirt.c: Fix whitespace;
(odr_hasher): Remove.
(odr_name_hasher, odr_vtable_hasher): New hashers.
(can_be_name_hashed_p): New predicate.
(hash_type_name): remove.
(hash_odr_name): New.
(odr_name_hasher::hash): new.
(can_be_vtable_hashed_p): New.
(hash_odr_vtable): New.
(odr_vtable_hasher::hash): New.
(types_same_for_odr): Add strict parameter.
(types_odr_comparable): Likewise.
(odr_name_hasher::equal): New.
(odr_vtable_hasher::equal): New.
(odr_name_hasher::remove): New.
(odr_hash_type): Change to hash_table<odr_name_hasher>.
(odr_vtable_hash_type): New.
(odr_vtable_hash): New.
(odr_subtypes_equivalent_p): Do strict comparsion.
(add_type_duplicate): Merge type names; cleanup; avoid type
duplicates.
(register_odr_type): Initialize vtable hash.
(build_type_inheritance_graph): Likewise
(get_odr_type): Reorg to use two hashes.
(dump_possible_polymorphic_call_targets): Move sanity check after debug
output.
(ipa_devirt): Dump type_inheritance_graph.
(types_same_for_odr): Add strict mode.
* g++.dg/lto/pr65316_0.C: New testcase.
* g++.dg/lto/pr65316_1.C: New testcase.

From-SVN: r221275

9 years agoDaily bump.
GCC Administrator [Mon, 9 Mar 2015 00:16:14 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221274

9 years agore PR target/62247 (FAIL: g++.dg/abi/anon3.C -std=c++98/9 scan-assembler .weak...
John David Anglin [Sun, 8 Mar 2015 23:46:34 +0000 (23:46 +0000)]
re PR target/62247 (FAIL: g++.dg/abi/anon3.C  -std=c++98/9  scan-assembler .weak(_definition))

PR target/62247
* g++.dg/abi/anon3.C: Skip failing scan-assembler checks on
hppa*-*-hpux*.
* g++.dg/abi/rtti3.C: Likewise.

From-SVN: r221271

9 years agopr63621.C: Add dg-require-effective-target named_sections.
John David Anglin [Sun, 8 Mar 2015 23:30:47 +0000 (23:30 +0000)]
pr63621.C: Add dg-require-effective-target named_sections.

* g++.dg/ipa/pr63621.C: Add dg-require-effective-target named_sections.

From-SVN: r221270

9 years agovarasm.c (function_section_1): Use definition_alignment.
Jan Hubicka [Sun, 8 Mar 2015 23:27:13 +0000 (00:27 +0100)]
varasm.c (function_section_1): Use definition_alignment.

* varasm.c (function_section_1): Use definition_alignment.
(assemble_start_function): Likewise.
(emit_local): likewise.
(build_constant_desc): Likewsie.
(output_constant_def_contents): Likewise.
(place_block_symbol): Likewise.
(output_object_block): Likewise.

From-SVN: r221269

9 years agore PR ipa/65334 (r221099 caused: FAIL: gfortran.fortran-torture/execute/in-pack.f90...
Jan Hubicka [Sun, 8 Mar 2015 23:12:25 +0000 (00:12 +0100)]
re PR ipa/65334 (r221099 caused: FAIL: gfortran.fortran-torture/execute/in-pack.f90 execution, -O2 -ftree-vectorize -msse2)

PR ipa/65334
* cgraph.h (symtab_node): Add definition_alignment,
can_increase_alignment_p and increase_alignment.
* symtab.c (symtab_node::can_increase_alignment_p,
increase_alignment_1, symtab_node::increase_alignment,
symtab_node::definition_alignment): New.
* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
can_increase_alignment_p.
* tree-vectorizer.c (increase_alignment): Use increase_alignment.
* tree-vect-stmts.c (ensure_base_align): Likewise.

From-SVN: r221268

9 years agore PR target/62251 (FAIL: gfortran.dg/quad_2.f90 execution test)
John David Anglin [Sun, 8 Mar 2015 22:58:52 +0000 (22:58 +0000)]
re PR target/62251 (FAIL: gfortran.dg/quad_2.f90 execution test)

PR target/62251
* gfortran.dg/quad_2.f90: xfail hppa*-*-hpux*.

From-SVN: r221267

9 years agosignbit-sa.c: Add dg-require-effective-target c99_runtime
John David Anglin [Sun, 8 Mar 2015 22:45:32 +0000 (22:45 +0000)]
signbit-sa.c: Add dg-require-effective-target c99_runtime

* gcc.dg/signbit-sa.c: Add dg-require-effective-target c99_runtime

From-SVN: r221266

9 years agopr64307.c: Add target c99_runtime.
John David Anglin [Sun, 8 Mar 2015 22:32:57 +0000 (22:32 +0000)]
pr64307.c: Add target c99_runtime.

* gcc.dg/ipa/pr64307.c: Add target c99_runtime.

From-SVN: r221265

9 years agoipa-icf-34.c: Add dg-require-alias.
John David Anglin [Sun, 8 Mar 2015 22:21:16 +0000 (22:21 +0000)]
ipa-icf-34.c: Add dg-require-alias.

* gcc.dg/ipa/ipa-icf-34.c: Add dg-require-alias.

From-SVN: r221264

9 years agoAdd missing PR target/59828 to ChangeLog entry.
David Edelsohn [Sun, 8 Mar 2015 13:40:42 +0000 (09:40 -0400)]
Add missing PR target/59828 to ChangeLog entry.

From-SVN: r221263

9 years agore PR fortran/60898 (model compile error with gfortran 4.7 and gcc 4.9)
Mikael Morin [Sun, 8 Mar 2015 11:52:51 +0000 (11:52 +0000)]
re PR fortran/60898 (model compile error with gfortran 4.7 and gcc 4.9)

        PR fortran/60898
fortran/
        * resolve.c (resolve_symbol): Check that the symbol found by
        name lookup really is the current symbol being resolved.
testsuite/
        * gfortran.dg/entry_20.f90: New.

From-SVN: r221262

9 years agoDaily bump.
GCC Administrator [Sun, 8 Mar 2015 00:16:18 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221261

9 years agore PR lto/65316 (LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging...
Jan Hubicka [Sat, 7 Mar 2015 20:33:58 +0000 (21:33 +0100)]
re PR lto/65316 (LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging: in types_same_for_odr, at ipa-devirt.c:465)

PR ipa/65316
* tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
when outputting debug.

From-SVN: r221258

9 years agore PR target/65153 ([SH][4.9 Regression] "insn does not satisfy its constraints"...
Oleg Endo [Sat, 7 Mar 2015 19:35:22 +0000 (19:35 +0000)]
re PR target/65153 ([SH][4.9 Regression] "insn does not satisfy its constraints" when compiling libmcrypt)

gcc/testsuite/
PR target/65153
* gcc.c-torture/compile/pr65153.c: New.

From-SVN: r221257

9 years agore PR target/65249 (unable to find a register to spill in class 'R0_REGS' when compil...
Oleg Endo [Sat, 7 Mar 2015 16:12:41 +0000 (16:12 +0000)]
re PR target/65249 (unable to find a register to spill in class 'R0_REGS' when compiling protobuf on sh4)

gcc/testsuite/
PR target/65249
* g++.dg/torture/pr65249.C: New.

From-SVN: r221256

9 years agoUse long long for uint64_t/int64_t
H.J. Lu [Sat, 7 Mar 2015 13:31:00 +0000 (13:31 +0000)]
Use long long for uint64_t/int64_t

* gcc.target/i386/pr45685.c (uint64_t): Replace long with long
long.
(int64_t): Likewise.

From-SVN: r221255

9 years ago* de.po: Update.
Joseph Myers [Sat, 7 Mar 2015 01:14:18 +0000 (01:14 +0000)]
* de.po: Update.

From-SVN: r221254

9 years agoDaily bump.
GCC Administrator [Sat, 7 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221253

9 years agore PR sanitizer/65280 (-fsanitize=bounds does not detect out-of-bounds access)
Marek Polacek [Fri, 6 Mar 2015 23:44:56 +0000 (23:44 +0000)]
re PR sanitizer/65280 (-fsanitize=bounds does not detect out-of-bounds access)

PR sanitizer/65280
* doc/invoke.texi: Update description of -fsanitize=bounds.

* c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
before trying to figure out whether we have a flexible array member.

* c-c++-common/ubsan/bounds-1.c: Add testing of flexible array
member-like arrays.
* c-c++-common/ubsan/bounds-8.c: New test.
* c-c++-common/ubsan/bounds-9.c: New test.
* gcc.dg/ubsan/bounds-2.c: New test.

Co-Authored-By: Martin Uecker <uecker@eecs.berkeley.edu>
From-SVN: r221250

9 years agoptree.c (cxx_print_lambda_node): New.
Aldy Hernandez [Fri, 6 Mar 2015 21:58:31 +0000 (21:58 +0000)]
ptree.c (cxx_print_lambda_node): New.

* ptree.c (cxx_print_lambda_node): New.
(cxx_print_xnode): Handle LAMBDA_EXPR.

From-SVN: r221249

9 years agore PR testsuite/63175 (FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan...
Martin Sebor [Fri, 6 Mar 2015 18:43:24 +0000 (18:43 +0000)]
re PR testsuite/63175 (FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan-tree-dump-times slp2" basic block vectorized using SLP" 1)

2015-03-05  Martin Sebor  <msebor@redhat.com>

* PR testsuite/63175
* gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c (main1): Move
checking of results into main to prevent it from getting optimized
away.
* gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: New test.

From-SVN: r221248

9 years agodg-extract-results.sh: Check that the necessary python modules exist.
Bernd Edlinger [Fri, 6 Mar 2015 18:35:15 +0000 (18:35 +0000)]
dg-extract-results.sh: Check that the necessary python modules exist.

2015-03-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * dg-extract-results.sh: Check that the necessary python modules exist.

From-SVN: r221247

9 years agoRemove inefficient branchless conditional negate optimization
Wilco Dijkstra [Fri, 6 Mar 2015 16:35:30 +0000 (16:35 +0000)]
Remove inefficient branchless conditional negate optimization

2015-03-06  Wilco Dijkstra  <wdijkstr@arm.com>

  gcc/
    * tree-ssa-phiopt.c (neg_replacement): Remove.
    (tree_ssa_phiopt_worker): Remove negate optimization.

  gcc/testsuite/
    * gcc.dg/tree-ssa/pr45685.c: Move to gcc.target/i386.
    * gcc.target/aarch64/csneg-1.c (test_csneg_cmp): New test.
    * gcc.target/i386/pr45685.c: Moved test, check for conditional move on x64.

From-SVN: r221246

9 years agolibgo: Upgrade to Go 1.4.2 release.
Ian Lance Taylor [Fri, 6 Mar 2015 16:19:05 +0000 (16:19 +0000)]
libgo: Upgrade to Go 1.4.2 release.

From-SVN: r221245

9 years agore PR lto/65302 (LTO: ICE internal compiler error: verify_flow_info failed)
Jan Hubicka [Fri, 6 Mar 2015 16:12:43 +0000 (17:12 +0100)]
re PR lto/65302 (LTO: ICE internal compiler error: verify_flow_info failed)

PR ipa/65302
* value-prof.c (gimple_ic): Pure dead eh edges when needed.
* g++.dg/lto/pr65302_1.C: New testcase.
* g++.dg/lto/pr65302_0.C: New testcase.

From-SVN: r221244

9 years ago[ARM testsuite obvious] Fixup atomic-comp-swap-release-acquire.c to not use ICF
James Greenhalgh [Fri, 6 Mar 2015 16:03:38 +0000 (16:03 +0000)]
[ARM testsuite obvious] Fixup atomic-comp-swap-release-acquire.c to not use ICF

gcc/

* gcc.target/arm/atomic-comp-swap-release-acquire.c: Add
-fno-ipa-icf to dg-options.

From-SVN: r221243

9 years agoMAINTAINERS (CPU Port Maintainers): Add myself i386 vector ISA extns mantainer.
Kirill Yukhin [Fri, 6 Mar 2015 14:49:03 +0000 (14:49 +0000)]
MAINTAINERS (CPU Port Maintainers): Add myself i386 vector ISA extns mantainer.

/
* MAINTAINERS (CPU Port Maintainers): Add myself
i386 vector ISA extns mantainer.

From-SVN: r221238

9 years agore PR middle-end/64928 (Inordinate cpu time and memory usage in "phase opt and genera...
Richard Biener [Fri, 6 Mar 2015 12:34:28 +0000 (12:34 +0000)]
re PR middle-end/64928 (Inordinate cpu time and memory usage in "phase opt and generate" with -ftest-coverage -fprofile-arcs)

2015-03-06  Richard Biener  <rguenther@suse.de>

PR middle-end/64928
* tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
and liveout_obstack members.
(calculate_live_on_exit): Remove.
(calculate_live_ranges): Change declaration.
* tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
(new_tree_live_info): Adjust.
(calculate_live_ranges): Delete livein when not wanted.
(calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
Deal with partly deleted live info.
(loe_visit_block): Remove temporary bitmap by using
bitmap_ior_and_compl_into.
(live_worklist): Adjust accordingly.
(calculate_live_on_exit): Make static.
* tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
we do not need livein.

From-SVN: r221237

9 years agofuture (future_error(error_code)): Construct base class with error_code's message.
Jonathan Wakely [Fri, 6 Mar 2015 12:31:43 +0000 (12:31 +0000)]
future (future_error(error_code)): Construct base class with error_code's message.

* include/std/future (future_error(error_code)): Construct base
class with error_code's message.
* src/c++11/future.cc (future_error::what()): Do not call c_str() on
temporary string.

From-SVN: r221236

9 years ago* real.c (real_from_string): Fix typo in assertion.
Jonathan Wakely [Fri, 6 Mar 2015 12:05:38 +0000 (12:05 +0000)]
* real.c (real_from_string): Fix typo in assertion.

From-SVN: r221235

9 years agoChangeLog (2015-03-05): Reflect Richard Henderson as actual author of the patch.
Alex Velenko [Fri, 6 Mar 2015 11:10:45 +0000 (11:10 +0000)]
ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of the patch.

2015-03-06  Alex Velenko  <alex.velenko@arm.com>

* ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
the patch.

From-SVN: r221234

9 years ago[AArch64 testsuite obvious] XFAIL c-c++-common/torture/aarch64-vect-lane-2.c
James Greenhalgh [Fri, 6 Mar 2015 10:47:20 +0000 (10:47 +0000)]
[AArch64 testsuite obvious] XFAIL c-c++-common/torture/aarch64-vect-lane-2.c
for -flto -fuse-linker-plugin

gcc/testsuite/

* c-c++-common/torture/aarch64-vect-lane-2.c: Skip for LTO
compiles.

From-SVN: r221233

9 years agoc-ada-spec.c (dump_ada_double_name): Fix pasto.
Eric Botcazou [Fri, 6 Mar 2015 10:15:03 +0000 (10:15 +0000)]
c-ada-spec.c (dump_ada_double_name): Fix pasto.

* c-ada-spec.c (dump_ada_double_name): Fix pasto.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r221231

9 years agocompiler: Do not declare type switch variable outside case statements.
Ian Lance Taylor [Fri, 6 Mar 2015 00:27:32 +0000 (00:27 +0000)]
compiler: Do not declare type switch variable outside case statements.

For expressions containing a TypeSwitchGuard with a short variable
declaration e.g. var := x.(type), the spec says that var is declared
at the beginning of the implicit block for each in each clause.
Previously, var was declared in the block for the switch statement
and each implicit block, which led to errors if the type case clause
referenced a type with a similar name as the declared variable.

Fixes golang/go#10047.

From-SVN: r221230

9 years agoDaily bump.
GCC Administrator [Fri, 6 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221229

9 years ago* ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
Jan Hubicka [Thu, 5 Mar 2015 21:26:44 +0000 (22:26 +0100)]
* ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.

From-SVN: r221226

9 years agore PR target/64342 (Tests failing when compiled with '-m32 -fpic' after r216154.)
Vladimir Makarov [Thu, 5 Mar 2015 19:43:11 +0000 (19:43 +0000)]
re PR target/64342 (Tests failing when compiled with '-m32 -fpic' after r216154.)

2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>

PR target/64342
* lra-assigns.c (find_hard_regno_for): Rename to
find_hard_regno_for_1.  Add a new parameter.
(find_hard_regno_for): New function using find_hard_regno_for_1.

From-SVN: r221223

9 years agore PR rtl-optimization/65067 (regression on accessing volatile bit field)
Bernd Edlinger [Thu, 5 Mar 2015 18:56:37 +0000 (18:56 +0000)]
re PR rtl-optimization/65067 (regression on accessing volatile bit field)

gcc:
2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR rtl-optimization/65067
        * expmed.c (store_bit_field, extract_bit_field): Reworked the
        strict volatile bitfield handling.

testsuite:
2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc.target/arm/pr65067.c: New test.

From-SVN: r221222

9 years agore PR ipa/65318 (wrong code at -Os and above on x86_64-linux-gnu)
Martin Liska [Thu, 5 Mar 2015 17:49:49 +0000 (18:49 +0100)]
re PR ipa/65318 (wrong code at -Os and above on x86_64-linux-gnu)

PR ipa/65318
* ipa-icf.c (sem_variable::equals): Compare variables types.
* gcc.dg/ipa/pr65318.c: New test.

From-SVN: r221221

9 years agoarm.c (arm_function_in_section_p): Fix predicate to correctly check weak symbol binding.
Alex Velenko [Thu, 5 Mar 2015 16:45:21 +0000 (16:45 +0000)]
arm.c (arm_function_in_section_p): Fix predicate to correctly check weak symbol binding.

2015-03-05  Alex Velenko  <alex.velenko@arm.com>

* config/arm/arm.c (arm_function_in_section_p): Fix predicate to
correctly check weak symbol binding.

From-SVN: r221220

9 years agore PR middle-end/65315 (incorrect alignment of local variable with aligned attribute)
Steve Ellcey [Thu, 5 Mar 2015 16:34:03 +0000 (16:34 +0000)]
re PR middle-end/65315 (incorrect alignment of local variable with aligned attribute)

2015-03-05  Steve Ellcey  <sellcey@imgtec.com>

PR middle-end/65315
* cfgexpand.c (expand_stack_vars): Update large_align to maximum
needed alignment.

From-SVN: r221219

9 years agojit documentation fixes
David Malcolm [Thu, 5 Mar 2015 15:38:15 +0000 (15:38 +0000)]
jit documentation fixes

gcc/jit/ChangeLog:
* docs/cp/intro/tutorial03.rst: Add missing arguments to
gccjit::block::end_with_conditional call.  Add on_true/on_false
comments.  Tweak the wording.
* docs/intro/tutorial03.rst: Add missing arguments to
gcc_jit_block_end_with_conditional call.  Add some clarifying
comments.
* docs/topics/compilation.rst: Tweak the wording to avoid an
ambiguous use of "this".
* docs/topics/contexts.rst: Fix a typo.
* docs/topics/expressions.rst (GCC_JIT_BINARY_OP_MINUS): Remove
a stray backtick.
* docs/_build/texinfo/libgccjit.texi: Regenerate.

From-SVN: r221218

9 years ago* c-c++-common/ubsan/bounds-6.c: Use dg-do run.
Marek Polacek [Thu, 5 Mar 2015 15:00:20 +0000 (15:00 +0000)]
* c-c++-common/ubsan/bounds-6.c: Use dg-do run.

From-SVN: r221217

9 years agore PR ada/65319 (FAIL: g++.dg/other/dump-ada-spec-3.C -std=gnu++98 (internal compile...
Eric Botcazou [Thu, 5 Mar 2015 13:54:19 +0000 (13:54 +0000)]
re PR ada/65319 (FAIL: g++.dg/other/dump-ada-spec-3.C  -std=gnu++98 (internal compiler error))

PR ada/65319
* c-ada-spec.c (print_destructor): Remove obsolete code.

From-SVN: r221213

9 years agolocale_conv.h (wstring_convert::_M_conv): Handle noconv result.
Jonathan Wakely [Thu, 5 Mar 2015 13:36:21 +0000 (13:36 +0000)]
locale_conv.h (wstring_convert::_M_conv): Handle noconv result.

* include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
noconv result.
* testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
* testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.

From-SVN: r221212

9 years agoFix warnings occured during profiledboostrap on
Martin Liska [Thu, 5 Mar 2015 11:44:00 +0000 (12:44 +0100)]
Fix warnings occured during profiledboostrap on

* ipa-inline.c (inline_small_functions): Set default value to
prevent warning during bootstrap.
* tree.h: Add pragma guard that ignores false positives during
bootstrap.

From-SVN: r221211

9 years agoS/390: xfail ssa-dom-cse-2
Andreas Krebbel [Thu, 5 Mar 2015 09:58:32 +0000 (09:58 +0000)]
S/390: xfail ssa-dom-cse-2

gcc/testsuite:
* gcc.dg/tree-ssa/ssa-dom-cse-2.c:

From-SVN: r221210

9 years agoS/390: var-expand1 use default values for peel/unroll limits
Andreas Krebbel [Thu, 5 Mar 2015 09:56:42 +0000 (09:56 +0000)]
S/390: var-expand1 use default values for peel/unroll limits

gcc/testsuite/:
* gcc.dg/var-expand1.c: Force max-completely-peel-times and
max-unroll-times back to defaults for s390.

From-SVN: r221209

9 years ago2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Thu, 5 Mar 2015 09:21:39 +0000 (09:21 +0000)]
2015-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

Fix last commit.

From-SVN: r221208

9 years agore PR c++/64665 (Overload resolution not working with std::initializer_list<std:...
Paolo Carlini [Thu, 5 Mar 2015 09:15:58 +0000 (09:15 +0000)]
re PR c++/64665 (Overload resolution not working with std::initializer_list<std::string> and bool)

2015-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64665
* g++.dg/cpp0x/initlist92.C: New.

From-SVN: r221207

9 years agore PR tree-optimization/65310 (vectorizer uses wrong alignment)
Richard Biener [Thu, 5 Mar 2015 09:14:01 +0000 (09:14 +0000)]
re PR tree-optimization/65310 (vectorizer uses wrong alignment)

2015-03-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65310
* tree-vect-data-refs.c (vect_compute_data_ref_alignment):
Properly preserve alignment of the base of the access.

* gcc.dg/vect/pr65310.c: New testcase.

From-SVN: r221206

9 years agore PR c++/64834 (Captured variable not available in unevaluated context in a lambda...
Paolo Carlini [Thu, 5 Mar 2015 08:48:22 +0000 (08:48 +0000)]
re PR c++/64834 (Captured variable not available in unevaluated context in a lambda with auto argument)

2015-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64834
* g++.dg/cpp1y/lambda-generic-uneval1.C: New.

From-SVN: r221205

9 years agore PR ipa/65270 (issues with merging memory accesses from different code paths)
Richard Biener [Thu, 5 Mar 2015 08:43:13 +0000 (08:43 +0000)]
re PR ipa/65270 (issues with merging memory accesses from different code paths)

2015-03-05  Richard Biener  <rguenther@suse.de>

PR ipa/65270
* ipa-icf-gimple.c (func_checker::compare_memory_operand):
Compare dependence info.

From-SVN: r221204

9 years agore PR middle-end/65233 (ICE (segfault) on arm-linux-gnueabihf and aarch64-linux-gnu)
Richard Biener [Thu, 5 Mar 2015 08:37:40 +0000 (08:37 +0000)]
re PR middle-end/65233 (ICE (segfault) on arm-linux-gnueabihf and aarch64-linux-gnu)

2015-03-05  Richard Biener  <rguenther@suse.de>

PR middle-end/65233
* ipa-polymorphic-call.c: Include tree-ssa-operands.h and
tree-into-ssa.h.
(walk_ssa_copies): Revert last chage.  Instead do not walk
SSA names registered for SSA update.

From-SVN: r221203

9 years agoDaily bump.
GCC Administrator [Thu, 5 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221202

9 years agore PR ipa/65270 (issues with merging memory accesses from different code paths)
Jan Hubicka [Thu, 5 Mar 2015 00:10:29 +0000 (01:10 +0100)]
re PR ipa/65270 (issues with merging memory accesses from different code paths)

  PR ipa/65270
* ipa-icf.c (sem_item::compare_cgraph_references): Compare
vtable references for their containing type.
(sem_function::equals_wpa): Compare TYPE_RESTRICT
and type attributes.

From-SVN: r221199

9 years agofold-const.c (round_up_loc): Cast divisor to signed on all paths before negating it.
Eric Botcazou [Wed, 4 Mar 2015 22:33:41 +0000 (22:33 +0000)]
fold-const.c (round_up_loc): Cast divisor to signed on all paths before negating it.

* fold-const.c (round_up_loc): Cast divisor to signed on all paths
before negating it.
* stor-layout.c (finalize_record_size): Revert latest change.

From-SVN: r221198

9 years agot-freebsd64: Remove 32-bit soft-float multilibs.
Andreas Tobler [Wed, 4 Mar 2015 21:56:46 +0000 (22:56 +0100)]
t-freebsd64: Remove 32-bit soft-float multilibs.

2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>

    * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.

From-SVN: r221197

9 years agocgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite for correct comdat...
Jan Hubicka [Wed, 4 Mar 2015 20:28:08 +0000 (21:28 +0100)]
cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite for correct comdat handling.

* cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
for correct comdat handling.
(cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
Likewise.
* cgraph.h (call_for_symbol_and_aliases): Fix formating.
(used_from_object_file_p_worker): Remove.
(cgraph_node::only_called_directly_or_alised): Add
used_from_object_file_p.
* ipa-inline-analysis.c (growth_likely_positive): Optimie.
* ipa-inline-transform.c (can_remove_node_now_p_1): Use
can_remove_if_no_direct_calls_and_refs_p.

From-SVN: r221193

9 years ago* de.po: Update.
Joseph Myers [Wed, 4 Mar 2015 17:45:00 +0000 (17:45 +0000)]
* de.po: Update.

From-SVN: r221191

9 years agore PR target/65261 (bootstrap-ubsan ppc64le: gcc/libcpp/lex.c:552:30: runtime error...
Markus Trippelsdorf [Wed, 4 Mar 2015 17:28:56 +0000 (17:28 +0000)]
re PR target/65261 (bootstrap-ubsan ppc64le: gcc/libcpp/lex.c:552:30: runtime error: load of misaligned address 0x01002172dfc6 for type 'const uchar', which requires 16 byte alignment)

Fix PR65261

Running bootstrap-ubsan on ppc64le shows many instances of:

  libcpp/lex.c:552:30: runtime error: load of misaligned address
  0x01001f31d37a for type 'const uchar', which requires 16 byte alignment

But the unaligned vector loads are intended in this case, because they
are preferable to forced-alignment on POWER8. So just silence the ubsan
errors.

2015-03-02  Markus Trippelsdorf  <markus@trippelsdorf.de>

include/
PR target/65261
* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.

libcpp/
PR target/65261
* lex.c (search_line_fast): Silence ubsan errors.

From-SVN: r221190

9 years agore PR libstdc++/64797 (22_locale/conversions/string/2.cc FAILs)
Jonathan Wakely [Wed, 4 Mar 2015 17:19:55 +0000 (17:19 +0000)]
re PR libstdc++/64797 (22_locale/conversions/string/2.cc FAILs)

PR libstdc++/64797
* include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
incomplete multibyte sequences correctly.
* include/std/codecvt (codecvt_utf8, codecvt_utf16,
codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
* src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
Define constants.
(is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
Define convenience functions.
(read_utf8_code_point): Return relevant constant to distinguish
incomplete characters from invalid sequences.
(read_utf16_code_point): Likewise. Check for invalid sequences.
(ucs4_in, utf16_in): Use incomplete_mb_character constant.
(utf16_out): Check for invalid sequences.
(utf16_span): Fix condition.
(ucs2_out): Use is_high_surrogate.
(ucs2_in): Use incomplete_mb_character constant and fix condition.
* testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
* testsuite/22_locale/conversions/buffer/1.cc: New.
* testsuite/22_locale/conversions/string/2.cc: Use char16_t and
char32_t instead of wchar_t.
* testsuite/22_locale/conversions/string/3.cc: New.

From-SVN: r221189

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 15:00:57 +0000 (16:00 +0100)]
[multiple changes]

2015-03-04  Robert Dewar  <dewar@adacore.com>

* sem_warn.adb: Minor reformatting.
* init.c: Minor tweaks.

2015-03-04  Dmitriy Anisimko  <anisimko@adacore.com>

* a-coinho-shared.adb: Fix clear of already empty holder.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
(Check_Uplevel_Reference_To_Type): Ignore call inside generic.
(Note_Uplevel_Reference): Ignore call inside generic.
(Note_Uplevel_Reference): Fix check for no entity field.
(Unnest_Subprogram): Ignore call inside generic.
(Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
(Visit_Node): Ignore calls to Imported subprograms.
(Visit_Node): Fix problem in finding subprogram body in some cases.
(Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.

From-SVN: r221188

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 14:56:45 +0000 (15:56 +0100)]
[multiple changes]

2015-03-04  Robert Dewar  <dewar@adacore.com>

* einfo.adb (Is_ARECnF_Entity): Removed.
(Last_Formal): Remove special handling of Is_ARECnF_Entity.
(Next_Formal): Remove special handling of Is_ARECnF_Entity.
(Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
(Number_Entries): Minor reformatting.
* einfo.ads (Is_ARECnF_Entity): Removed.
* exp_unst.adb (Unnest_Subprogram): Remove setting of
Is_ARECnF_Entity.
(Add_Extra_Formal): Use normal Extra_Formal circuit.
* sprint.adb (Write_Param_Specs): Properly handle case where
there are no source formals, but we have at least one Extra_Formal
present.

2015-03-04  Ed Schonberg  <schonberg@adacore.com>

* sem_aggr.adb (Resolve_Record_Aggregate,
Add_Discriminant_Values): If the value is a reference to the
current instance of an enclosing type, use its base type to check
against prefix of attribute reference, because the target type
may be otherwise constrained.

From-SVN: r221187

9 years ago* go.test/go-test.exp (go-gc-tests): Skip nilptr test on s390*.
Ian Lance Taylor [Wed, 4 Mar 2015 14:54:33 +0000 (14:54 +0000)]
* go.test/go-test.exp (go-gc-tests): Skip nilptr test on s390*.

From-SVN: r221186

9 years agorl78.h (enum reg_class): Remove real registers from General register class.
Nick Clifton [Wed, 4 Mar 2015 14:54:15 +0000 (14:54 +0000)]
rl78.h (enum reg_class): Remove real registers from General register class.

* config/rl78/rl78.h (enum reg_class): Remove real registers from
General register class.
* config/rl78/rl78-real.md: Replace general register constraints
with real+virtual register constraints.

From-SVN: r221185

9 years agoS/390: Fix check for builtins valid with -mhtm
Andreas Krebbel [Wed, 4 Mar 2015 14:43:14 +0000 (14:43 +0000)]
S/390: Fix check for builtins valid with -mhtm

* gcc/config/s390/s390.c (s390_expand_builtin): Exlude non-htm
builtins from checking for -mhtm option.

From-SVN: r221184

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 11:51:48 +0000 (12:51 +0100)]
[multiple changes]

2015-03-04  Robert Dewar  <dewar@adacore.com>

* atree.h: Add entries for Flag287-Flag309.
* einfo.adb: Add (unused) flags Flag287-Flag309.

2015-03-04  Ed Schonberg  <schonberg@adacore.com>

* sem_util.adb (Collect_Interfaces, Collect): When gathering
interfaces of ancestors, handle properly a subtype of a private
extension.

From-SVN: r221183

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 10:27:59 +0000 (11:27 +0100)]
[multiple changes]

2015-03-04  Robert Dewar  <dewar@adacore.com>

* einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
(Next_Formal): Don't return ARECnF formal.
(Last_Formal): Don't consider ARECnF formal.
(Next_Formal_With_Extras): Do consider ARECnF formal.
* einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
* exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.

2015-03-04  Javier Miranda  <miranda@adacore.com>

* exp_ch6.adb (Expand_Simple_Function_Return): When the returned
object is a class-wide interface object and we generate the
accessibility described in RM 6.5(8/3) then displace the pointer
to the object to reference the base of the object (to get access
to the TSD of the object).

From-SVN: r221182

9 years agore PR c++/64227 (Forwarding an argument of a function template to a generic lambda...
Paolo Carlini [Wed, 4 Mar 2015 10:20:23 +0000 (10:20 +0000)]
re PR c++/64227 (Forwarding an argument of a function template to a generic lambda causes a compiler crash)

2015-03-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64227
* g++.dg/cpp1y/lambda-generic-ice1.C: New.

From-SVN: r221181

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 10:01:40 +0000 (11:01 +0100)]
[multiple changes]

2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Abstract_State): Use routine
Malformed_State_Error to issue general errors.
(Analyze_Pragma): Diagnose a syntax error related to a state
declaration with a simple option.
(Malformed_State_Error): New routine.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* a-strsup.adb (Super_Slice): Deal with super flat case.
* einfo.ads: Minor reformatting.
* s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
redundant code.

2015-03-04  Claire Dross  <dross@adacore.com>

* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
containers.

From-SVN: r221180

9 years agoFix permission.
Arnaud Charlet [Wed, 4 Mar 2015 09:59:38 +0000 (10:59 +0100)]
Fix permission.

From-SVN: r221179

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 09:58:41 +0000 (10:58 +0100)]
[multiple changes]

2015-03-04  Ed Schonberg  <schonberg@adacore.com>

* sem_warn.adb (Check_References): When checking for an unused
in-out parameter of a class- wide type, use its type to determine
whether it is private, in order to avoid a spurious warning when
subprogram spec and body are in different units.

2015-03-04  Yannick Moy  <moy@adacore.com>

* sem_attr.adb: Improve warning messages.

From-SVN: r221178

9 years agoexp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest generic subprograms.
Robert Dewar [Wed, 4 Mar 2015 09:57:07 +0000 (09:57 +0000)]
exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest generic subprograms.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
generic subprograms.
* exp_unst.adb (Check_Dynamic_Type): Handle record types properly
(Note_Uplevel_Reference): Ignore uplevel references to non-types
(Get_Level): Consider only subprograms, not blocks.
(Visit_Node): Set proper condition for generating ARECnF entity.
Ignore indirect calls. Ignore calls to subprograms
outside our nest.
(Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
(Add_Form_To_Spec): Properly set Last_Entity field.
(Unnest_Subprogram): Set current subprogram scope for analyze calls.
Handle case of no uplevel refs in outer subprogram
Don't mark uplevel entities as aliased.
Don't deal with calls with no ARECnF requirement.

2015-03-04  Robert Dewar  <dewar@adacore.com>

* s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
* s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
operation in computing LZ.
* sem_attr.adb: Minor typo fix

From-SVN: r221177

9 years ago[multiple changes]
Arnaud Charlet [Wed, 4 Mar 2015 09:54:19 +0000 (10:54 +0100)]
[multiple changes]

2015-03-04  Robert Dewar  <dewar@adacore.com>

* exp_ch7.adb: Minor reformatting.
* exp_unst.adb (Build_Tables): Fix minor glitch for no separate
spec case.
* erroutc.adb (Delete_Msg): add missing decrement of info msg counter.

2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
references to formal parameters subject to pragma Unreferenced.
(Suppress_Reference): New routine.
* sem_attr.adb (Analyze_Attribute): Reimplement the analysis
of attribute 'Old. Attributes 'Old and 'Result now share
common processing.
(Analyze_Old_Result_Attribute): New routine.
(Check_Placement_In_Check): Removed.
(Check_Placement_In_Contract_Cases): Removed.
(Check_Placement_In_Test_Case): Removed.
(Check_Use_In_Contract_Cases): Removed.
(Check_Use_In_Test_Case): Removed.
(In_Refined_Post): Removed.
(Is_Within): Removed.
* sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
(Check_Low_Bound_Tested_For): New routine.

2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch3.adb (Expand_N_Object_Declaration):
Generate a runtime check to test the expression of pragma
Default_Initial_Condition when the object is default initialized.

From-SVN: r221176

9 years ago[AArch64 Testsuite Obvious] Disable ipa-icf for testcases with common test bodies
James Greenhalgh [Wed, 4 Mar 2015 09:32:02 +0000 (09:32 +0000)]
[AArch64 Testsuite Obvious] Disable ipa-icf for testcases with common test bodies

gcc/testsuite/

* gcc.target/aarch64/atomic-comp-swap-release-acquire.c: Add
-fno-ipa-icf to dg-options
* gcc.target/aarch64/vect_saddl_1.c: Likewise.
* gcc.target/aarch64/vect_smlal_1.c: Likewise.

From-SVN: r221175