Commit Graph

114976 Commits

Author SHA1 Message Date
Tobias Burnus 38cbc63a76 re PR fortran/51514 ([OOP] Wrong code when passing a scalar CLASS to a TYPE)
2012-02-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51514
        * trans-expr.c (gfc_conv_procedure_call): Add _data component
        for calls of scalar CLASS actuals to TYPE dummies.

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

        PR fortran/51514
        * gfortran.dg/class_to_type_2.f90: New.

From-SVN: r183954
2012-02-07 09:15:14 +01:00
Joern Rennecke 6009801342 epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine...
* config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
        adding __forwarder_dst__ prefix if a forwarder_section attribute is
        present.
        (epiphany_function_type): Replace types for specific interrupts with
        EPIPHANY_FUNCTION_INTERRUPT.
        (EPIPHANY_INTERRUPT_P): Update.
        * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
        New static function.
        (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
        <disinterrupt>: Affects type identity.
        (epiphany_handle_interrupt_attribute): Handle variable number of
        arguments.
        (epiphany_compute_function_type): Update for new
        epiphany_function_type definition.
        (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
        handlers with a longcall forwarder.
        (epiphany_start_function): Handle multiple interrupt arguments and/or
        forwarder_section attribute.

From-SVN: r183953
2012-02-07 02:28:06 +00:00
GCC Administrator 300f7e1640 Daily bump.
From-SVN: r183951
2012-02-07 00:18:53 +00:00
Alan Modra 30f0eb2d91 re PR target/52107 (IBM 128bit long double constant loaded inefficiently)
PR target/52107
	* config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
	subregs of TFmode.

From-SVN: r183945
2012-02-07 08:39:13 +10:30
Bill Schmidt c5f14d626e re PR tree-optimization/50969 (17% degradation in 168.wupwise for interleave via permutation)
2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/50969
	* tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
	use vec_perm rather than vector_stmt.
	(vect_model_load_cost): Likewise.
	* config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
	vec_perm to be the same as other vector statements.
	* config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
	cost of vec_perm for TARGET_VSX.

From-SVN: r183944
2012-02-06 21:39:34 +00:00
Thomas Koenig 9903b69dbd re PR fortran/32373 (not vectorized: can't determine dependence (equivalence))
2012-02-06  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/32373
	* gfortran.dg/vect/vect-8.f90:  Use vect_double effective target.
	Remove module.

From-SVN: r183943
2012-02-06 21:24:54 +00:00
Jonathan Wakely 2caa135a20 re PR libstdc++/52128 (r183788 caused massive libstdc++ testsuite regression on i686-linux)
PR libstdc++/52128
	* src/c++11/future.cc: Add explicit instantiation.

From-SVN: r183942
2012-02-06 20:51:52 +00:00
François Dumont 74345dec22 2012-02-06 François Dumont <fdumont@gcc.gnu.org>
* include/debug/safe_iterator.h
	(_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
	creation of a _Safe_iterator instance to do the check.

From-SVN: r183941
2012-02-06 20:19:44 +00:00
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