GCC Administrator [Tue, 10 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221296
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Mon, 9 Mar 2015 00:16:14 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221274
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
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
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
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
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
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
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
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
David Edelsohn [Sun, 8 Mar 2015 13:40:42 +0000 (09:40 -0400)]
Add missing PR target/59828 to ChangeLog entry.
From-SVN: r221263
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
GCC Administrator [Sun, 8 Mar 2015 00:16:18 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221261
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
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
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
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
Joseph Myers [Sat, 7 Mar 2015 01:14:18 +0000 (01:14 +0000)]
* de.po: Update.
From-SVN: r221254
GCC Administrator [Sat, 7 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221253
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Fri, 6 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221229
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Thu, 5 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221202
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
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
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
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
Joseph Myers [Wed, 4 Mar 2015 17:45:00 +0000 (17:45 +0000)]
* de.po: Update.
From-SVN: r221191
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
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
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
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
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
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
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
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
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
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
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
Arnaud Charlet [Wed, 4 Mar 2015 09:59:38 +0000 (10:59 +0100)]
Fix permission.
From-SVN: r221179
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
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
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
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
Paolo Carlini [Wed, 4 Mar 2015 08:32:23 +0000 (08:32 +0000)]
re PR c++/64398 (decltype in different contexts with similar expressions triggers segfault in GCC)
2015-03-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64398
* g++.dg/cpp0x/decltype62.C: New.
From-SVN: r221174
Jan Hubicka [Wed, 4 Mar 2015 05:00:49 +0000 (06:00 +0100)]
tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
* tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
(struct ipa_sra_check_caller_data): Add has_thunk field.
(ipa_sra_check_caller): Check for thunk.
(ipa_sra_preliminary_function_checks): Give up on function with
thunks.
(ipa_early_sra): Use call_for_symbol_and_aliases.
From-SVN: r221171
GCC Administrator [Wed, 4 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221169
Kaz Kojima [Tue, 3 Mar 2015 23:51:55 +0000 (23:51 +0000)]
re PR target/65249 (unable to find a register to spill in class 'R0_REGS' when compiling protobuf on sh4)
PR target/65249
* config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
called for __stack_chk_guard symbol.
From-SVN: r221165
DJ Delorie [Tue, 3 Mar 2015 21:57:40 +0000 (16:57 -0500)]
rl78-real.md (*addqi_real): Allow SADDR types for inc/dec.
* config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
inc/dec.
(*addhi3_real): Likewise.
* config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
pattern to match incrementing memory.
* config/rl78/predicates.md (rl78_1_2_operand): New.
* config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
it's the same and only mem.
(rl78_alloc_physical_registers_op2): If there's effectively only
one MEM, transcode it into HL.
(rl78_far_p): Reject addresses that aren't legitimate.
From-SVN: r221164
Aldy Hernandez [Tue, 3 Mar 2015 18:14:24 +0000 (18:14 +0000)]
re PR c++/65295 ([C++1y] constexpr function causes ICE if it returns a local variable bigger than 16 bytes)
PR c++/65295
* constexpr.c (cxx_eval_constant_expression): Remove assert in
RESULT_DECL handling.
From-SVN: r221161
Iain Sandoe [Tue, 3 Mar 2015 18:14:20 +0000 (18:14 +0000)]
re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10)
2015-03-03 Iain Sandoe <iain@codesourcery.com>
PR libstdc++/64883
* testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
visibility for Darwin.
* testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
also deprecated.
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
From-SVN: r221160