Commit Graph

115168 Commits

Author SHA1 Message Date
Jason Merrill
cb406914ff re PR c++/52088 (ICE in "delete" with template convertion operator)
PR c++/52088
	* cvt.c (build_expr_type_conversion): Check for template conversion.

From-SVN: r183940
2012-02-06 14:52:43 -05:00
Richard Guenther
973a39ae60 re PR tree-optimization/52115 (ICE: verify_ssa failed (missing definition for SSA_NAME))
2012-02-06  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52115
	* tree-sra.c (access_has_replacements_p): New function.
	(sra_modify_assign): Use it to decide whether a use is uninitialized.

	* gcc.c-torture/compile/pr52115.c: New testcase.

From-SVN: r183937
2012-02-06 14:54:47 +00:00
Patrick Marlier
fe924d9ff0 re PR middle-end/52047 ([trans-mem] ICE: SIGSEGV in execute_tm_mark (trans-mem.c:2270) with -O -fgnu-tm -fprefetch-loop-arrays)
PR middle-end/52047
        * trans-mem.c (expand_call_tm): Add an assertion.
        * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
        functions.

From-SVN: r183936
2012-02-06 14:42:07 +00:00
Richard Guenther
1d30a09a48 re PR tree-optimization/50955 (IVopts incorrectly rewrite the address of a global memory access into a local form.)
2012-02-06  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/50955
	* tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
	raise cost of expressions that replace an address with an
	expression based on a different pointer.

From-SVN: r183934
2012-02-06 13:43:03 +00:00
Jakub Jelinek
2c8b5d61bc re PR target/52129 (wrong code to pass parameters to tail call function)
PR target/52129
	* calls.c (mem_overlaps_already_clobbered_arg_p): If val is
	CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.

	* gcc.c-torture/execute/pr52129.c: New test.

From-SVN: r183933
2012-02-06 14:33:05 +01:00
Paolo Carlini
93286335bb re PR c/52118 (The explanation of Wunused-local-typedefs is truncated)
2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c/52118
	* c.opt ([Wunused-local-typedefs]): Fix description.

From-SVN: r183932
2012-02-06 10:31:18 +00:00
Andrey Belevantsev
0ac4c2d040 pr48374.c: Actually add the test I forgot in the 2012-01-25 commit.
2012-02-06  Andrey Belevantsev  <abel@ispras.ru>

      * gcc.dg/pr48374.c: Actually add the test I forgot
      in the 2012-01-25 commit.

From-SVN: r183928
2012-02-06 12:31:52 +04:00
Jonathan Wakely
9039ea919d re PR c++/48680 (-Weffc++ update description for 2nd and 3rd edition of Scott Meyers)
PR c++/48680
	* doc/invoke.texi (C++ Dialect Options): Use @option markup for
	-Weffc++ and specify guidelines come from second edition.

From-SVN: r183926
2012-02-06 01:06:06 +00:00
GCC Administrator
bc90b80108 Daily bump.
From-SVN: r183925
2012-02-06 00:17:50 +00:00
Jonathan Wakely
be38506d7c re PR libstdc++/52104 (go1 fails to run on Solaris 10/11 x86 with with gld)
PR libstdc++/52104
	* include/std/future (__future_base::_Async_state_common): Define
	destructor inline for targets without TLS.
	* src/c++11/future.cc (__future_base::_Async_state_common): Only
	define destructor for TLS targets.

From-SVN: r183920
2012-02-05 23:55:51 +00:00
Joseph Myers
148ea7d8ef * de.po: Update.
From-SVN: r183918
2012-02-05 22:52:25 +00:00
Thomas Koenig
9ed480b123 re PR fortran/32373 (not vectorized: can't determine dependence (equivalence))
2012-02-05  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/32373
	* gfortran.dg/vect/vect-8.f90:  New test case.

From-SVN: r183917
2012-02-05 21:49:46 +00:00
Thomas Koenig
d20597cb75 re PR fortran/48847 (Wrong "unused parameter" warning with interface block)
2012-02-05  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/48847
	* trans-decl.c:  Warn about unused dummy procedure arguments
	if -Wunused-dummy-argument is specified.  Suppress middle-end
	warnings about procedure arguments.

2012-02-05  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/48847
	* gfortran.dg/warn_unused_dummy_argument_3.f90:  New test.

From-SVN: r183916
2012-02-05 20:14:00 +00:00
Paul Thomas
83f42cad22 re PR fortran/52102 ([OOP] Wrong result with ALLOCATE of CLASS components with array constructor SOURCE-expr)
2012-02-05  Paul Thomas  <pault@gcc.gnu.org>

	* trans-array.c (gfc_array_allocate): Zero memory for all class
	array allocations.
	* trans-stmt.c (gfc_trans_allocate): Ditto for class scalars.

	PR fortran/52102
	* trans-stmt.c (gfc_trans_allocate): Before correcting a class
	array reference, ensure that 'dataref' points to the _data
	component that is followed by the array reference..

2012-02-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52102
	* gfortran.dg/class_48.f90 : Add test of allocate class array
	component with source in subroutine test3.  Remove commenting
	out in subroutine test4, since branching on unitialized variable
	is now fixed (no PR for this last.).

From-SVN: r183915
2012-02-05 19:56:09 +00:00
Jonathan Wakely
a1527f2f5b re PR libstdc++/51956 ([patch] improve shared_ptr and weak_ptr pretty-printers for gdb)
PR libstdc++/51956
	* python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
	(SharedPointerPrinter): This. Also show weak count.
	* testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.

From-SVN: r183914
2012-02-05 19:10:15 +00:00
Richard Sandiford
7ca9ea769d gcc/
* config/mips/mips.md (sibcall_internal, sibcall_value_internal)
	(sibcall_value_multiple_internal, call_split, call_internal_direct)
	(call_direct_split, call_value_split, call_value_internal_direct)
	(call_value_direct_split, call_value_multiple_split): Use jal and
	jal_macro attributes.

From-SVN: r183913
2012-02-05 15:06:40 +00:00
Chung-Lin Tang
6caf807fba config.host (mips64*-*-linux*, [...]): Add t-slibgcc-libgcc to tmake_file.
libgcc/
2012-02-05  Chung-Lin Tang  <cltang@codesourcery.com>

	* config.host (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
	Add t-slibgcc-libgcc to tmake_file.
	* config/mips/libgcc-mips16.ver: Revert previous patch.
	* config/mips/mips16.S (__mips16_rdhwr): Hide.

From-SVN: r183912
2012-02-05 15:03:15 +00:00
Richard Sandiford
d257df9b5e stringop-2.c (main): Add a nomips16 attribute on MIPS targets.
gcc/testsuite/
	* gcc.dg/tree-prof/stringop-2.c (main): Add a nomips16 attribute
	on MIPS targets.
	* gfortran.dg/pr45636.f90: XFAIL for MIPS16 targets.

From-SVN: r183911
2012-02-05 15:01:06 +00:00
Richard Sandiford
9021d4e193 re PR target/52125 (Problems with LO16 asm operands on MIPS)
gcc/testsuite/
	PR target/52125
	* lib/target-supports.exp (check_effective_target_mips_rel): New.
	* gcc.dg/pr48774.c: Skip on MIPS REL targets.

From-SVN: r183910
2012-02-05 14:56:35 +00:00
Richard Sandiford
16955e8bf0 target-supports.exp (check_effective_target_mips_llsc): New.
gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_mips_llsc): New.
	(check_effective_target_sync_int_long): Use it.
	(check_effective_target_sync_char_short): Likewise.
	* gcc.target/mips/atomic-memory-1.c: Restrict error check to mips_llsc.

From-SVN: r183909
2012-02-05 14:53:09 +00:00
Richard Sandiford
7bd8c53f50 reload1.c (reload_regs_reach_end_p): Replace with...
gcc/
	* reload1.c (reload_regs_reach_end_p): Replace with...
	(reload_reg_rtx_reaches_end_p): ...this function.
	(new_spill_reg_store): Update commentary.
	(emit_input_reload_insns): Don't clear new_spill_reg_store here.
	(emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
	before setting new_spill_reg_store.
	(emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
	Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
	Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
	for non-spill reload registers.

From-SVN: r183908
2012-02-05 14:49:05 +00:00
Joseph Myers
f4f629390b * sv.po: Update.
From-SVN: r183907
2012-02-05 14:42:26 +00:00
Jonathan Wakely
e3aaef375c weak_ptr_expired.cc: Modify to PASS instead of XFAIL.
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
	PASS instead of XFAIL.

From-SVN: r183906
2012-02-05 13:08:02 +00:00
Jeffrey Yasskin
cee8c7a274 re PR c++/52119 ([C++11] overflow in signed left shift isn't diagnosed)
2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52119
	* include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.

From-SVN: r183905
2012-02-05 12:58:51 +00:00
Tobias Burnus
b1c02fdc55 re PR fortran/51972 ([OOP] Wrong code as _copy does not honor CLASS components)
2012-02-05  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51972
        * gfortran.dg/class_48.f90: Add some further checks.

From-SVN: r183904
2012-02-05 10:46:20 +01:00
Ira Rosen
24ee13842e re PR tree-optimization/52091 (ICE: verify_gimple failed)
PR tree-optimization/52091
        * tree-vectorizer.h (vect_is_simple_use): Add an argument.
        (vect_is_simple_use_1): Likewise.
        * tree-vect-loop.c (vectorizable_reduction): Update calls
        to vect_is_simple_use_1 and vect_is_simple_use.
        (vectorizable_live_operation): Likewise.
        * tree-vect-patterns.c (widened_name_p,
        vect_recog_vector_vector_shift_pattern, check_bool_pattern):
        Likewise.
        * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
        vectorizable_call, vectorizable_conversion,
        vectorizable_assignment, vectorizable_shift,
        vectorizable_operation, vectorizable_store, vectorizable_load):
        Likewise.
        (vect_is_simple_cond): Add an argument, pass it to
        vect_is_simple_use_1.
        (vectorizable_condition): Update calls to vect_is_simple_cond,
        vect_is_simple_use.
        (vect_is_simple_use): Add an argument, the statement in which
        OPERAND is used.  Check that if OPERAND's def stmt is a double
        reduction phi node, the use is a phi node too.
        (vect_is_simple_use_1): Add an argument, pass it to
        vect_is_simple_use.
        * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
        to vect_is_simple_use.

From-SVN: r183902
2012-02-05 05:58:18 +00:00
GCC Administrator
3bbdbe67bc Daily bump.
From-SVN: r183900
2012-02-05 00:18:50 +00:00
Jakub Jelinek
2243948192 re PR rtl-optimization/52095 (ICE compiling gcc.dg/sms-7.c: SEGV in fprintf)
PR rtl-optimization/52095
	* modulo-sched.c (dump_insn_locator): New function.
	(loop_canon_p, sms_schedule): Use it.

From-SVN: r183895
2012-02-04 17:51:31 +01:00
Jakub Jelinek
d5785e7634 re PR rtl-optimization/52113 ([lower-subreg.c] ICE: in extract_insn, at recog.c:2123)
PR rtl-optimization/52113
	* lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
	even for decomposable shift/zext insns.

	* gcc.target/avr/pr52113.c: New test.

From-SVN: r183894
2012-02-04 13:47:55 +01:00
Venkataramanan Kumar
03548f7bec Move myself to maintain alphabetical order
From-SVN: r183891
2012-02-04 02:21:45 +00:00
Ian Lance Taylor
4631101689 compiler, reflect: Fix hash codes of named types, fix PtrTo hash.
From-SVN: r183889
2012-02-04 01:41:24 +00:00
GCC Administrator
5007a7a898 Daily bump.
From-SVN: r183887
2012-02-04 00:18:45 +00:00
Benjamin Kosnik
0f1fce6945 re PR libstdc++/49445 ([C++0x] Undefined reference to std::atomic<float> "operator float")
2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/49445

From-SVN: r183878
2012-02-03 21:10:00 +00:00
Benjamin Kosnik
4035739819 re PR libstdc++/51811 ([C++0x] Incorrect increment/decrement of atomic pointers)
2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/51811
	* include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
	* testsuite/29_atomics/atomic/operators/51811.cc: New.
	* testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.

From-SVN: r183875
2012-02-03 19:49:11 +00:00
Venkataramanan Kumar
3bc05470eb Adding my name under Write After Approval list
From-SVN: r183873
2012-02-03 16:42:48 +00:00
Jakub Jelinek
7d949988e2 baseline_symbols.txt: Update.
* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
	* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
	Likewise.
	* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc-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/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.

From-SVN: r183870
2012-02-03 12:56:48 +01:00
Jakub Jelinek
32410d02e0 re PR rtl-optimization/52092 (ICE: internal consistency failure)
PR rtl-optimization/52092
	* loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
	on get_iv_value result.

	* gcc.c-torture/compile/pr52092.c: New test.

Co-Authored-By: Zdenek Dvorak <ook@ucw.cz>

From-SVN: r183869
2012-02-03 12:55:29 +01:00
Kai Tietz
5b5b0fa908 re PR java/48512 ([4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target)
PR libjava/48512
        * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for
        w64 windows targets.
        * configure: Regenerated.

From-SVN: r183867
2012-02-03 10:42:42 +01:00
Tristan Gingold
a5c1501406 Add missing entry for previous patch.
From-SVN: r183865
2012-02-03 09:20:15 +00:00
Andrew Pinski
7547125327 re PR middle-end/47982 (Documentation error on libgcc __udivmoddi4)
2012-02-02  Andrew Pinski  <apinski@cavium.com>

        PR middle-end/47982
        PR middle-end/43967
        * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.

From-SVN: r183862
2012-02-02 20:11:31 -08:00
Ian Lance Taylor
cf54a93ca9 mksysinfo: Fix type of last field of Cmsghdr.
From-SVN: r183860
2012-02-03 01:06:19 +00:00
GCC Administrator
1841202b90 Daily bump.
From-SVN: r183859
2012-02-03 00:18:24 +00:00
Mikael Morin
37da591f6a re PR fortran/41587 ([OOP] ICE with ALLOCATABLE CLASS components)
2012-02-02  Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/41587
	PR fortran/46356
	PR fortran/51754
	PR fortran/50981
	* class.c (insert_component_ref, class_data_ref_missing,
	gfc_fix_class_refs): New functions.
	* gfortran.h (gfc_fix_class_refs): New prototype.
	* trans-expr.c (gfc_conv_expr): Remove special case handling and call
	gfc_fix_class_refs instead.

2012-02-02  Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/41587
	* gfortran.dg/class_array_10.f03: New test.

	PR fortran/46356
	* gfortran.dg/class_array_11.f03: New test.

	PR fortran/51754
	* gfortran.dg/class_array_12.f03: New test.

From-SVN: r183853
2012-02-02 23:10:55 +00:00
Ian Lance Taylor
1c69e5e28a runtime: Correct ENOSYS functions.
From-SVN: r183852
2012-02-02 22:58:54 +00:00
Ian Lance Taylor
b6422b3755 compiler: Compare slice start and end with cap, not len.
From-SVN: r183851
2012-02-02 22:23:10 +00:00
Paul Thomas
7de7ae1841 re PR fortran/52012 (Wrong-code with realloc on assignment and RESHAPE w/ ORDER=)
2012-02-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52012
	* trans-expr.c (fcncall_realloc_result): If variable shape is
	correct, retain the bounds, whatever they are.

2012-02-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52012
	* gfortran.dg/realloc_on_assign_11.f90: New test.

From-SVN: r183849
2012-02-02 21:20:14 +00:00
Tobias Burnus
1b3f07c72a re PR fortran/52093 (Extra parenthesis with Size and Shape functions argument cause internal compiler error: Segmentation fault)
2012-02-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52093
        * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES.

2012-02-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52093
        * gfortran.dg/shape_7.f90: New.

From-SVN: r183848
2012-02-02 22:01:34 +01:00
Jakub Jelinek
1f01c3ecd1 re PR middle-end/48071 (Blank line after 'all warnings being treated as errors')
PR middle-end/48071
	* diagnostic.c (diagnostic_finish): Remove trailing newlines.

From-SVN: r183847
2012-02-02 21:46:06 +01:00
Benjamin Kosnik
d1a6c0d4c9 re PR libstdc++/52068 (libc++98.a and libc++11.a are installed)
2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52068
	* src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
	libc__11_la_SOURCES): Remove.
	* src/c++11/Makefile.in: Regenerate.
	* src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
	libc__98_la_SOURCES): Remove.
	* src/c++98/Makefile.in: Regenerate.

From-SVN: r183846
2012-02-02 19:58:59 +00:00
Vladimir Makarov
662f8070eb re PR rtl-optimization/49800 (segfault with -fsched-pressure -fdump-rtl-sched1)
2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/49800
	* haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
	(sched_finish): Call regstat_free_n_sets_and_refs.

From-SVN: r183843
2012-02-02 19:45:04 +00:00