Commit Graph

137047 Commits

Author SHA1 Message Date
John David Anglin
e9d087626d 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
2015-03-08 23:46:34 +00:00
John David Anglin
a5bfe3f9a7 pr63621.C: Add dg-require-effective-target named_sections.
* g++.dg/ipa/pr63621.C: Add dg-require-effective-target named_sections.

From-SVN: r221270
2015-03-08 23:30:47 +00:00
Jan Hubicka
7185ec2cb4 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
2015-03-08 23:27:13 +00:00
Jan Hubicka
428f0c67ee 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
2015-03-08 23:12:25 +00:00
John David Anglin
fb460c3da0 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
2015-03-08 22:58:52 +00:00
John David Anglin
11403457ec 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
2015-03-08 22:45:32 +00:00
John David Anglin
cd6e6ce573 pr64307.c: Add target c99_runtime.
* gcc.dg/ipa/pr64307.c: Add target c99_runtime.

From-SVN: r221265
2015-03-08 22:32:57 +00:00
John David Anglin
26fb6f1f58 ipa-icf-34.c: Add dg-require-alias.
* gcc.dg/ipa/ipa-icf-34.c: Add dg-require-alias.

From-SVN: r221264
2015-03-08 22:21:16 +00:00
David Edelsohn
34e72ece07 Add missing PR target/59828 to ChangeLog entry.
From-SVN: r221263
2015-03-08 09:40:42 -04:00
Mikael Morin
511820a8dc 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
2015-03-08 11:52:51 +00:00
GCC Administrator
9e09e4ac1c Daily bump.
From-SVN: r221261
2015-03-08 00:16:18 +00:00
Jan Hubicka
a7384b1b02 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
2015-03-07 20:33:58 +00:00
Oleg Endo
e291927919 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
2015-03-07 19:35:22 +00:00
Oleg Endo
af68c1b73c 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
2015-03-07 16:12:41 +00:00
H.J. Lu
0d797e0f6f 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
2015-03-07 05:31:00 -08:00
Joseph Myers
2e58ed3087 * de.po: Update.
From-SVN: r221254
2015-03-07 01:14:18 +00:00
GCC Administrator
5f34c28658 Daily bump.
From-SVN: r221253
2015-03-07 00:16:12 +00:00
Marek Polacek
04fd785e38 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
2015-03-06 23:44:56 +00:00
Aldy Hernandez
a78cbe2976 ptree.c (cxx_print_lambda_node): New.
* ptree.c (cxx_print_lambda_node): New.
	(cxx_print_xnode): Handle LAMBDA_EXPR.

From-SVN: r221249
2015-03-06 21:58:31 +00:00
Martin Sebor
3ffa78014e 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
2015-03-06 11:43:24 -07:00
Bernd Edlinger
74d3531523 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
2015-03-06 18:35:15 +00:00
Wilco Dijkstra
268cb4b373 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
2015-03-06 16:35:30 +00:00
Ian Lance Taylor
c271e224c2 libgo: Upgrade to Go 1.4.2 release.
From-SVN: r221245
2015-03-06 16:19:05 +00:00
Jan Hubicka
81b0d9065c 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
2015-03-06 16:12:43 +00:00
James Greenhalgh
2c7f8ba555 [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
2015-03-06 16:03:38 +00:00
Kirill Yukhin
a6e8abb9d5 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
2015-03-06 14:49:03 +00:00
Richard Biener
87d0d6c40a 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
2015-03-06 12:34:28 +00:00
Jonathan Wakely
664e99eac4 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
2015-03-06 12:31:43 +00:00
Jonathan Wakely
7bfa4bc51e * real.c (real_from_string): Fix typo in assertion.
From-SVN: r221235
2015-03-06 12:05:38 +00:00
Alex Velenko
1dfc8b24aa 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
2015-03-06 11:10:45 +00:00
James Greenhalgh
4b1076d685 [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
2015-03-06 10:47:20 +00:00
Eric Botcazou
a4e2620666 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
2015-03-06 10:15:03 +00:00
Ian Lance Taylor
aeb41dc5b6 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
2015-03-06 00:27:32 +00:00
GCC Administrator
c4571e0e36 Daily bump.
From-SVN: r221229
2015-03-06 00:16:11 +00:00
Jan Hubicka
ab038a807d * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
From-SVN: r221226
2015-03-05 21:26:44 +00:00
Vladimir Makarov
34349d557a 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
2015-03-05 19:43:11 +00:00
Bernd Edlinger
53c615a276 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
2015-03-05 18:56:37 +00:00
Martin Liska
9374ef820b 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
2015-03-05 17:49:49 +00:00
Alex Velenko
2755b64ed5 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
2015-03-05 16:45:21 +00:00
Steve Ellcey
a8eeec27a9 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
2015-03-05 16:34:03 +00:00
David Malcolm
7ef9618369 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
2015-03-05 15:38:15 +00:00
Marek Polacek
d81177988c * c-c++-common/ubsan/bounds-6.c: Use dg-do run.
From-SVN: r221217
2015-03-05 15:00:20 +00:00
Eric Botcazou
0d2489f4c1 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
2015-03-05 13:54:19 +00:00
Jonathan Wakely
9933260f2f 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
2015-03-05 13:36:21 +00:00
Martin Liska
bcda57c130 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
2015-03-05 11:44:00 +00:00
Andreas Krebbel
d407bcf82b S/390: xfail ssa-dom-cse-2
gcc/testsuite:
	* gcc.dg/tree-ssa/ssa-dom-cse-2.c:

From-SVN: r221210
2015-03-05 09:58:32 +00:00
Andreas Krebbel
945db334f2 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
2015-03-05 09:56:42 +00:00
Paolo Carlini
9b864d18e8 2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix last commit.

From-SVN: r221208
2015-03-05 09:21:39 +00:00
Paolo Carlini
512141f41a 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
2015-03-05 09:15:58 +00:00
Richard Biener
b162e1e749 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
2015-03-05 09:14:01 +00:00