128976 Commits

Author SHA1 Message Date
Martin Jambor
4a5798de3e re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)
2014-03-25  Martin Jambor  <mjambor@suse.cz>

	PR ipa/59176
	* lto-cgraph.c (lto_output_node): Stream body_removed flag.
	(lto_output_varpool_node): Likewise.
	(input_overwrite_node): Likewise.
	(input_varpool_node): Likewise.

From-SVN: r208809
2014-03-25 11:57:07 +01:00
Richard Biener
585d00880e lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
2014-03-25  Richard Biener  <rguenther@suse.de>

	* lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like
	OPT_fpie.
	(run_gcc): Likewise.

From-SVN: r208807
2014-03-25 10:10:31 +00:00
Jakub Jelinek
8bcc90b0af re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class)
PR c++/60331
	* semantics.c (potential_constant_expression_1): Handle
	DECL_EXPR.

	* testsuite/libgomp.c++/udr-11.C: New test.
	* testsuite/libgomp.c++/udr-12.C: New test.
	* testsuite/libgomp.c++/udr-13.C: New test.
	* testsuite/libgomp.c++/udr-14.C: New test.
	* testsuite/libgomp.c++/udr-15.C: New test.
	* testsuite/libgomp.c++/udr-16.C: New test.
	* testsuite/libgomp.c++/udr-17.C: New test.
	* testsuite/libgomp.c++/udr-18.C: New test.
	* testsuite/libgomp.c++/udr-19.C: New test.

From-SVN: r208806
2014-03-25 10:30:10 +01:00
Jakub Jelinek
51ee05d038 combine.c (simplify_compare_const): Add MODE argument.
* combine.c (simplify_compare_const): Add MODE argument.
	Handle mode_width 0 as very large mode_width.
	(try_combine, simplify_comparison): Adjust callers.

From-SVN: r208805
2014-03-25 10:28:33 +01:00
Jakub Jelinek
a8acccddfd cselib.c (cselib_hash_rtx): Perform addition in unsigned type to avoid signed integer overflow.
* cselib.c (cselib_hash_rtx): Perform addition in unsigned
	type to avoid signed integer overflow.
	* explow.c (plus_constant): Likewise.

From-SVN: r208804
2014-03-25 10:27:54 +01:00
Dominik Vogt
57fc74a48b generic.texi: Correct typos.
2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* doc/generic.texi: Correct typos.

From-SVN: r208803
2014-03-25 09:12:18 +00:00
GCC Administrator
e8f26d1317 Daily bump.
From-SVN: r208802
2014-03-25 00:16:38 +00:00
Adam Butcher
21554a3e26 re PR c++/60627 ([c++1y] ICE in explicit template instantiation containing auto parameter)
Fix PR c++/60627

	PR c++/60627
	* parser.c (cp_parser_parameter_declaration_clause): Prevent 'auto' from
	introducing an implicit function template parameter within an explicit
	instantiation.

	PR c++/60627
	* g++.dg/cpp1y/pr60627.C: New testcase.

From-SVN: r208799
2014-03-24 20:40:15 +00:00
Tobias Burnus
09f15d1b52 invoke.texi (-flto): Expand section about using static libraries with LTO.
2014-03-24  Tobias Burnus  <burnus@net-b.de>

        * doc/invoke.texi (-flto): Expand section about
        using static libraries with LTO.

From-SVN: r208798
2014-03-24 20:53:52 +01:00
Jakub Jelinek
6f6c00f3a3 baseline_symbols.txt: Update.
* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
	* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Remove TLS
	entries.

From-SVN: r208797
2014-03-24 20:48:12 +01:00
Andreas Krebbel
72a4ddf2b5 re PR rtl-optimization/60501 (LRA emits add patterns which might clobber cc)
2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	PR rtl-optimization/60501
	* optabs.def (addptr3_optab): New optab.
	* optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
	* doc/md.texi ("addptrm3"): Document new RTL standard expander.
	* expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.

	* lra.c (emit_add3_insn): Use the addptr pattern if available.

	* config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.

From-SVN: r208796
2014-03-24 17:38:09 +00:00
Ulrich Drepper
2b2384e8c1 avx512fintrin.h: Define _mm512_set1_ps and _mm512_set1_pd.
2014-03-24  Ulrich Drepper  <drepper@gmail.com>

        * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
        _mm512_set1_pd.

From-SVN: r208794
2014-03-24 16:27:36 +00:00
Ulrich Drepper
0b192937b8 avxintrin.h (_mm256_undefined_si256): Define.
2014-03-24  Ulrich Drepper  <drepper@gmail.com>

        * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
        (_mm256_undefined_ps): Define.
        (_mm256_undefined_pd): Define.
        * config/i386/emmintrin.h (_mm_undefined_si128): Define.
        (_mm_undefined_pd): Define.
        * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
        * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
        (_mm512_undefined_ps): Define.
        (_mm512_undefined_pd): Define.
        Use _mm*_undefined_*.
        * config/i386/avx2intrin.h: Use _mm*_undefined_*.

From-SVN: r208793
2014-03-24 16:17:51 +00:00
Jason Merrill
d0f27fb6b3 re PR c++/60574 ([c++1y] ICE with deduced return type in virtual function and LTO)
PR c++/60574
	* decl.c (grokdeclarator): Change permerror about 'virtual auto'
	to error.

From-SVN: r208792
2014-03-24 11:55:43 -04:00
Joseph Myers
739d9ab505 * sv.po: Update.
From-SVN: r208791
2014-03-24 15:04:14 +00:00
Alex Velenko
252c7556e7 [AArch64] Logical vector shift right conformance
gcc/

	* config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
	(lshr_simd): DI mode added.
	* config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
	(aarch64_ushr_simddi): Likewise.
	* config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
	* config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
	(vshrd_n_u64): Likewise.

gcc/testsuite/

	* gcc.target/aarch64/ushr64_1.c: New testcase.

From-SVN: r208789
2014-03-24 12:05:38 +00:00
James Greenhalgh
71cfb0cfda [AArch64 testsuite] Make vect-abs.c C99 compliant
* gcc.target/aarch64/vect-abs.c (dg-options): Add -std=c99.
	(LONG_LONG): Use LLONG.
	(set_rvector_long): Explicitly return void.
	(set_vector_long): Likewise.
	(check_vector_long): Likewise.

From-SVN: r208788
2014-03-24 11:47:33 +00:00
Marek Polacek
55af811bab div-by-zero-4.c: Don't include limits.h.
* c-c++-common/ubsan/div-by-zero-4.c: Don't include limits.h.  Define
	INT_MIN.
	* c-c++-common/ubsan/overflow-1.c: Check for unwanted output.
	* c-c++-common/ubsan/overflow-add-1.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-1.c: Likewise.
	* c-c++-common/ubsan/overflow-mul-3.c: Likewise.
	* c-c++-common/ubsan/overflow-negate-2.c: Likewise.
	* c-c++-common/ubsan/overflow-sub-1.c: Likewise.
	* c-c++-common/ubsan/pr59503.c: Likewise.
	* c-c++-common/ubsan/pr60613-1.c: Likewise.
	* c-c++-common/ubsan/save-expr-1.c: Likewise.
	* c-c++-common/ubsan/shift-3.c: Likewise.
	* c-c++-common/ubsan/shift-6.c: Likewise.
	* c-c++-common/ubsan/undefined-1.c: Likewise.
	* c-c++-common/ubsan/vla-2.c: Likewise.
	* c-c++-common/ubsan/vla-3.c: Likewise.
	* c-c++-common/ubsan/vla-4.c: Likewise.
	* g++.dg/ubsan/cxx11-shift-1.C: Likewise.
	* g++.dg/ubsan/return-2.C: Likewise.

From-SVN: r208787
2014-03-24 10:20:15 +00:00
Rainer Orth
15e3d4f172 Have s-macro_list depend on cc1
* Makefile.in (s-macro_list): Depend on cc1.

From-SVN: r208786
2014-03-24 09:24:07 +00:00
John David Anglin
15c60250a2 pr59003.c: Add -fno-common to dg-options on hppa*-*-hpux*.
* gcc.dg/tree-prof/pr59003.c: Add -fno-common to dg-options on
	hppa*-*-hpux*.

From-SVN: r208783
2014-03-24 01:11:51 +00:00
John David Anglin
aadb73084b pr60092.c: Skip on 32-bit hpux.
* gcc.dg/torture/pr60092.c: Skip on 32-bit hpux.

From-SVN: r208782
2014-03-24 00:47:58 +00:00
John David Anglin
a3d734e333 re PR libfortran/59313 (gfortran.dg/erf_3.F90 FAILs on Solaris/SPARC)
PR libfortran/59313
	PR libfortran/58015
	* gfortran.dg/erf_3.F90: Skip on hppa*-*-hpux*.
	* gfortran.dg/round_4.f90: Likewise.

From-SVN: r208781
2014-03-24 00:32:41 +00:00
Dominique d'Humieres
d3413e5fef re PR fortran/60128 (Wrong ouput using en edit descriptor)
2014-03-23  Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR libfortran/60128
	* gfortran.dg/fmt_en.f90: Update test. XFAIL for
	i?86-*-solaris2.9*.

From-SVN: r208780
2014-03-24 00:29:43 +00:00
GCC Administrator
297b651822 Daily bump.
From-SVN: r208779
2014-03-24 00:17:06 +00:00
John David Anglin
76627edd63 45713.cc: Skip compile on hppa*64*-*-*.
* testsuite/23_containers/bitset/45713.cc: Skip compile on hppa*64*-*-*.

From-SVN: r208776
2014-03-24 00:09:24 +00:00
François Dumont
f7279c1a01 hashtable.h (_Hashtable(allocator_type)): Fix call to delegated constructor.
2014-03-23  François Dumont  <fdumont@gcc.gnu.org>

	* include/bits/hashtable.h (_Hashtable(allocator_type)): Fix call
	to delegated constructor.
	(_Hashtable(size_type, _H1, key_equal, allocator_type)): Likewise.
	(_Hashtable<_It>(_It, _It, size_type, _H1, key_equal, allocator_type)):
	Likewise.
	(_Hashtable(
	initializer_list, size_type, _H1, key_equal, allocator_type)): Likewise.

From-SVN: r208775
2014-03-23 20:19:11 +00:00
John David Anglin
d570d678a4 re PR libstdc++/60623 (FAIL: libstdc++-abi/abi_check)
PR libstdc++/60623
	* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r208774
2014-03-23 15:12:38 +00:00
Teresa Johnson
1858c2d3ce ipa-utils.c (ipa_print_order): Use specified dump file.
2014-03-23  Teresa Johnson  <tejohnson@google.com>

	* ipa-utils.c (ipa_print_order): Use specified dump file.

From-SVN: r208773
2014-03-23 15:07:21 +00:00
Eric Botcazou
f87604f8d2 re PR rtl-optimization/60601 (profiledbootstrap fails with Ada)
PR rtl-optimization/60601
	* bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.

	* gcc.c (eval_spec_function): Initialize save_growing_value.

From-SVN: r208770
2014-03-23 11:29:42 +00:00
GCC Administrator
8796f98a5f Daily bump.
From-SVN: r208769
2014-03-23 00:16:53 +00:00
Jakub Jelinek
f451d3a836 re PR sanitizer/60613 (Invalid signed subtraction ubsan diagnostics)
PR sanitizer/60613
	* internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
	code == MINUS_EXPR, never swap op0 with op1.

	* c-c++-common/ubsan/pr60613-1.c: New test.
	* c-c++-common/ubsan/pr60613-2.c: New test.

From-SVN: r208766
2014-03-22 17:25:50 +01:00
Jakub Jelinek
3db31fd1cc toplev.c (init_local_tick): Avoid signed integer multiplication overflow.
* toplev.c (init_local_tick): Avoid signed integer multiplication
	overflow.
	* genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
	shift by first operand's bitsize.

From-SVN: r208765
2014-03-22 15:03:20 +01:00
Matthias Klose
9e76922266 regress: Remove empty directory.
2014-03-22  Matthias Klose  <doko@ubuntu.com>

        * g++.dg/cpp0x/regress: Remove empty directory.

From-SVN: r208764
2014-03-22 13:07:32 +00:00
Jakub Jelinek
b35e0fa081 re PR debug/60603 (.debug_macinfo/.debug_macro has wrong line numbers for built-in macros)
PR debug/60603
c-family/
	* c-opts.c (c_finish_options): Restore cb_file_change call to
	<built-in>.
fortran/
	* cpp.c (gfc_cpp_init): Restore cb_change_file call to
	<built-in>.
testsuite/
	* gcc.dg/debug/dwarf2/dwarf2-macro2.c: New test.

From-SVN: r208763
2014-03-22 08:18:38 +01:00
GCC Administrator
e10bd1cacc Daily bump.
From-SVN: r208762
2014-03-22 00:16:29 +00:00
Jerry DeLisle
09e40ffe10 re PR fortran/60148 (strings in NAMELIST do not honor DELIM= in open statement)
2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/60148
	* io/transfer.c (data_transfer_init): If std= was specified, set
	delim status to DELIM_NONE of no other was specified.

From-SVN: r208759
2014-03-21 22:19:44 +00:00
Jerry DeLisle
e6e2778862 re PR fortran/60148 (strings in NAMELIST do not honor DELIM= in open statement)
2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/60148
	* gfortran.texi: Add description of namelist DELIM= behavior.

From-SVN: r208757
2014-03-21 22:14:36 +00:00
Jakub Jelinek
e49080ec8a re PR target/60610 (ICE in convert_regs_1, at reg-stack.c:3064)
PR target/60610
	* config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
	redefine to 1 or 0.
	* config/i386/darwin.h (TARGET_64BIT_P): Redefine to
	TARGET_ISA_64BIT_P(x).

From-SVN: r208756
2014-03-21 22:24:31 +01:00
Jonathan Wakely
72d1f255ae re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly)
PR libstdc++/60587
	* include/debug/functions.h (_Is_contiguous_sequence): Define.
	(__foreign_iterator): Accept additional iterator. Do not dispatch on
	iterator category.
	(__foreign_iterator_aux2): Likewise. Add overload for iterators
	from different types of debug container. Use _Is_contiguous_sequence
	instead of is_lvalue_reference.
	(__foreign_iterator_aux3): Accept additional iterator. Avoid
	dereferencing past-the-end iterator.
	(__foreign_iterator_aux4): Use const value_type* instead of
	potentially user-defined const_pointer type.
	* include/debug/macros.h (__glibcxx_check_insert_range): Fix comment
	and pass end iterator to __gnu_debug::__foreign_iterator.
	(__glibcxx_check_insert_range_after): Likewise.
	(__glibcxx_check_max_load_factor): Fix comment.
	* include/debug/vector (_Is_contiguous_sequence): Define partial
	specializations.
	* testsuite/23_containers/vector/debug/57779_neg.cc: Remove
	-std=gnu++11 option and unused header.
	* testsuite/23_containers/vector/debug/60587.cc: New.
	* testsuite/23_containers/vector/debug/60587_neg.cc: New.

From-SVN: r208755
2014-03-21 18:54:06 +00:00
Paolo Carlini
084721e012 pr60033.C: Use target c++1y.
2014-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/cpp1y/pr60033.C: Use target c++1y.
	* g++.dg/cpp1y/pr60393.C: Likewise.

From-SVN: r208753
2014-03-21 17:06:11 +00:00
Paolo Carlini
279d3eb8f8 re PR c++/60384 ([c++1y] ICE with invalid typedef)
/cp
2014-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60384
	* name-lookup.c (push_class_level_binding_1): Check identifier_p
	on the name argument.

/testsuite
2014-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60384
	* g++.dg/cpp1y/pr60384.C: New.

From-SVN: r208752
2014-03-21 16:35:26 +00:00
Bill Schmidt
44eb6c4004 rs6000.c (rs6000_expand_vector_set): Generate a pattern for vector nor instead of subtract from splat(-1).
2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
	pattern for vector nor instead of subtract from splat(-1).
	(altivec_expand_vec_perm_const_le): Likewise.

From-SVN: r208750
2014-03-21 16:14:11 +00:00
Richard Henderson
ec6f831a27 re PR target/60598 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2239)
PR target/60598

	* ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
	related insns after epilogue_completed.
	* gcc.dg/pr60598.c: New test.

From-SVN: r208749
2014-03-21 08:31:25 -07:00
Martin Jambor
3d8d00439b re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)
2014-03-21  Martin Jambor  <mjambor@suse.cz>

	PR ipa/59176
	* cgraph.h (symtab_node): New flag body_removed.
	* ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
	when removing bodies.
	* symtab.c (dump_symtab_base): Dump body_removed flag.
	* cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
	had their bodies removed.

testsuite/
        * g++.dg/torture/pr59176.C: New test.

From-SVN: r208748
2014-03-21 13:59:35 +01:00
Martin Jambor
d833415cda re PR middle-end/60419 (ICE Segmentation fault)
2014-03-21  Martin Jambor  <mjambor@suse.cz>

	PR ipa/60419
	* ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
	in the border.

testsuite/
	* g++.dg/ipa/pr60419.C: New test.

From-SVN: r208747
2014-03-21 13:48:02 +01:00
Richard Biener
400a4f6ca2 re PR tree-optimization/60577 (inefficient FDO instrumentation code)
2014-03-21  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60577
	* tree-core.h (struct tree_base): Document nothrow_flag use
	in VAR_DECL_NONALIASED.
	* tree.h (VAR_DECL_NONALIASED): New.
	(may_be_aliased): Adjust.
	* coverage.c (build_var): Set VAR_DECL_NONALIASED.

	* gcc.dg/tree-ssa/ssa-lim-11.c: New testcase.

From-SVN: r208746
2014-03-21 11:52:50 +00:00
Jakub Jelinek
beeda1d9c4 configure.ac: Move BUILD_CONFIG set up earlier.
* configure.ac: Move BUILD_CONFIG set up earlier.  Add
	--enable-vtable-verify option parsing.  Don't add
	target-libsanitizer to bootstrap_target_libs unless
	--with-build-config=bootstrap-asan or
	--with-build-config=bootstrap-ubsan.  Don't add target-libvtv
	to bootstrap_target_libs unless --enable-vtable-verify.
	* configure: Regenerated.

From-SVN: r208745
2014-03-21 08:16:06 +01:00
GCC Administrator
6499b5d25e Daily bump.
From-SVN: r208743
2014-03-21 00:16:46 +00:00
Eric Botcazou
c6c2314faa * expr.c (expand_expr_real_1): Remove outdated comment.
From-SVN: r208740
2014-03-20 23:47:23 +00:00
Tobias Burnus
7b8fda082f re PR fortran/60599 (Testsuite's scan-module-absence no longer works)
2014-03-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60599
        * lib/gcc-dg.exp (scan-module): Uncompress .mod files for
        reading.

From-SVN: r208739
2014-03-21 00:16:57 +01:00