Commit Graph

115401 Commits

Author SHA1 Message Date
Richard Earnshaw 23d2a817bf re PR target/52294 ([ARM Thumb] generated asm code produces "branch out of range" error in gas with -Os -mcpu=cortex-a9)
PR target/52294
	* thumb2.md (thumb2_shiftsi3_short): Split register and 	
	immediate shifts.  For register shifts tie operands 0 and 1.
	(peephole2 for above): Check that register-controlled shifts
	have suitably tied operands.

From-SVN: r184442
2012-02-21 15:38:35 +00:00
Quentin Neill 602c336961 re PR target/52137 (bdver2 scheduler needs to be added to bdver1 insn reservations)
2012-02-21  Quentin Neill  <quentin.neill@amd.com>

	PR target/52137
	* config/i386/bdver1.md (bdver1_call, bdver1_push,
	bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
	bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
	bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
	bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
	bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
	bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
	bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
	bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
	bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
	bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
	bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
	bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
	bdver1_ssevector_avx256_unaligned_load,
	bdver1_ssevector_sse128_unaligned_load,
	bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
	bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
	bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
	bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
	bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
	bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
	bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
	bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
	bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
	bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
	bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
	bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
	bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
	bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
	bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
	bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
	bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
	bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
	bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
	bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
	bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
	bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
	bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
	bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
	bdver1_ssediv_double_load, bdver1_ssediv_double,
	bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
	Add "bdver2" attribute.

From-SVN: r184440
2012-02-21 15:15:42 +00:00
Andreas Krebbel 61369bb849 s390.c (s390_option_override): Make -mhard-dfp the default if possible and not specified otherwise.
2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_option_override): Make -mhard-dfp the
	default if possible and not specified otherwise.

From-SVN: r184439
2012-02-21 14:51:44 +00:00
Kai Tietz 333f1d8799 bf-ms-layout-3.c: Mark char typed bitfield as extension.
* gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield
        as extension.

From-SVN: r184437
2012-02-21 15:10:59 +01:00
Richard Guenther 0c2ad2033d re PR middle-end/52314 (gimplifier produces volatile)
2012-02-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52314
	* gimplify.c (create_tmp_from_val): Use the main variant type
	for the type of the temporary we create.

From-SVN: r184436
2012-02-21 14:10:31 +00:00
Richard Guenther 01718e96e7 re PR tree-optimization/52324 (Store motion no longer performed)
2012-02-21  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52324
	* gimplify.c (gimplify_expr): When re-gimplifying expressions
	do not gimplify a MEM_REF address operand if it is already
	in suitable form.

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

From-SVN: r184435
2012-02-21 12:37:33 +00:00
Georg-Johann Lay 305406d3e1 re PR middle-end/51782 (-ftree-sra: Missing address-space information leads to wrong)
PR middle-end/51782
	* gcc.target/avr/torture/pr51782-1.c: New test.

From-SVN: r184434
2012-02-21 11:54:27 +00:00
Andreas Krebbel 8540e6e8bd s390.md ("fixuns_trunc<mode>si2"): Replace TARGET_HARD_FLOAT with TARGET_HARD_DFP.
2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
	TARGET_HARD_FLOAT with TARGET_HARD_DFP.

From-SVN: r184433
2012-02-21 11:21:52 +00:00
Paolo Carlini 4bee90f7bf re PR libstdc++/52317 (incorrect FSF address)
2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52317
	* python/Makefile.am: Update boilerplate license text to GPLv3.
	* include/profile/unordered_map: Likewise.
	* include/profile/set: Likewise.
	* include/profile/base.h: Likewise.
	* include/profile/impl/profiler_list_to_slist.h: Likewise.
	* include/profile/impl/profiler_container_size.h: Likewise.
	* include/profile/impl/profiler_vector_size.h: Likewise.
	* include/profile/impl/profiler_hash_func.h: Likewise.
	* include/profile/impl/profiler_trace.h: Likewise.
	* include/profile/impl/profiler_list_to_vector.h: Likewise.
	* include/profile/impl/profiler_vector_to_list.h: Likewise.
	* include/profile/impl/profiler.h: Likewise.
	* include/profile/impl/profiler_state.h: Likewise.
	* include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
	* include/profile/impl/profiler_algos.h: Likewise.
	* include/profile/impl/profiler_hashtable_size.h: Likewise.
	* include/profile/impl/profiler_node.h: Likewise.
	* include/profile/vector: Likewise.
	* include/profile/unordered_set: Likewise.
	* include/profile/map.h: Likewise.
	* include/profile/map: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/
	wchar_t/dr1261.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/
	char/dr1261.cc: Likewise.
	* testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.

From-SVN: r184430
2012-02-21 10:55:54 +00:00
Richard Guenther d1e4b49395 tree-vect-stmts.c (vectorizable_load): Use pre-computed nested_in_vect_loop.
2012-02-21  Richard Guenther  <rguenther@suse.de>

	* tree-vect-stmts.c (vectorizable_load): Use pre-computed
	nested_in_vect_loop.

From-SVN: r184429
2012-02-21 09:42:59 +00:00
Jakub Jelinek 949e47e576 re PR tree-optimization/52318 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk())
PR tree-optimization/52318
	* gimple-fold.c (gimplify_and_update_call_from_tree): Add
	vdef also to non-pure/const call stmts in the sequence.

	* gcc.dg/pr52318.c: New test.

From-SVN: r184428
2012-02-21 10:24:42 +01:00
Tristan Gingold c2885517fd vms-ld.c (main): Fix IDENTIFICATION padding.
2012-02-21  Tristan Gingold  <gingold@adacore.com>

	* config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.

From-SVN: r184426
2012-02-21 09:02:01 +00:00
David S. Miller 3ed27cf5e7 Explain why we don't use RDPC for sparc PIC register setup.
* config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
	don't use the "rd %pc" instruction on v9 for PIC register loads.

From-SVN: r184422
2012-02-20 17:37:42 -08:00
GCC Administrator d1d7a85e53 Daily bump.
From-SVN: r184421
2012-02-21 00:18:57 +00:00
Aldy Hernandez a4d031c79e re PR middle-end/52141 ([trans-mem] ICE due to asm statement in trans-mem.c:expand_block_tm)
PR middle-end/52141
        * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
        in a transaction safe function.

From-SVN: r184417
2012-02-20 23:43:31 +00:00
Jakub Jelinek 6e887223a0 re PR c++/52312 (grokfndecl: valgrind problem)
PR c++/52312
	* typeck.c (check_literal_operator_args): Initialize *long_double_p
	and *long_long_unsigned_p even if processing_template_decl.

From-SVN: r184416
2012-02-21 00:34:42 +01:00
Kai Tietz 9954e17f70 re PR target/52238 (-mms-bitfields: __attribute__ ((aligned (n))) ignored for struct members)
PR target/52238
	* stor-layout.c (place_field): Handle desired_align for
	ms-bitfields, too.

	* gcc.dg/bf-ms-layout-3.c: New testcase.

From-SVN: r184409
2012-02-20 23:05:08 +01:00
Kai Tietz d747037445 re PR libstdc++/52300 (Gthreads functions linking error at dynamic linking with libstdc++ when using MinGW.)
PR libstdc++/52300
       * gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw.

From-SVN: r184406
2012-02-20 22:22:07 +01:00
Kai Tietz 0c0c63986e config.host (i686-*-mingw*): Set md_unwind_header only for dw2-mode to w32-unwind.h header.
* config.host (i686-*-mingw*): Set md_unwind_header only for dw2-mode
        to w32-unwind.h header.

From-SVN: r184405
2012-02-20 22:19:55 +01:00
Paolo Carlini d6f90f03e0 re PR libstdc++/52241 (Performance degradation of 447.dealII on corei7 at spec2006_base32.)
2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52241
	* src/c++98/tree.cc (local_Rb_tree_increment,
	local_Rb_tree_decrement): Add.
	(_Rb_tree_increment(const _Rb_tree_node_base*),
	_Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter.
	(_Rb_tree_increment(_Rb_tree_node_base*),
	_Rb_tree_decrement(_Rb_tree_node_base*)): New.

From-SVN: r184404
2012-02-20 21:08:48 +00:00
Torvald Riegel 63b08143d6 libitm: Put gl_wt global lock on separate cache line.
libitm/
	* method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.

From-SVN: r184403
2012-02-20 20:57:37 +00:00
Torvald Riegel 4c9bd6acb0 libitm: Optimize synchronization in gl_wt rollback.
libitm/
	* method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.

From-SVN: r184402
2012-02-20 20:57:23 +00:00
Torvald Riegel 651ff4152e libitm: Remove obsolete handling of prior serial lock corner cases in gl_wt.
libitm/
	* method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
	serial mode corner cases made obsolete by prior gtm_rwlock changes.
	(gl_wt_dispatch.rollback): Same.

From-SVN: r184401
2012-02-20 20:57:09 +00:00
Torvald Riegel efee0113e8 libitm: Optimize memory order requiremens in gl_wt pre_write.
libtim/
	* method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.

From-SVN: r184400
2012-02-20 20:56:56 +00:00
Torvald Riegel 33a03827d2 libitm: Add missing undo-logging of RfW src regions in gl_wt memtransfer.
libitm/
	* method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
	for RfW src.  Optimize number of calls to gtm_thr.

From-SVN: r184399
2012-02-20 20:56:42 +00:00
Thomas Koenig 95d65553de re PR testsuite/52229 (FAIL: gfortran.dg/vect/pr32380.f -O scan-tree-dump-times vect "vectorized 7 loops" 1)
2012-02-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR testsuite/52229
	PR fortran/32380
	* gfortran.dg/vect/pr32380.f:  XFAIL on PowerPC and ia-64.

From-SVN: r184398
2012-02-20 17:16:33 +00:00
Richard Guenther a7ce6ec393 re PR tree-optimization/52298 (ICE: verify_ssa failed: definition in block follows use)
2012-02-20  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52298
	* tree-vect-stmts.c (vectorizable_store): Properly use
	STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
	outer loops.
	(vectorizable_load): Likewise.
	* tree-vect-data-refs.c (vect_analyze_data_ref_access):
	Access DR_STEP after ensuring it is not NULL.

	* gcc.dg/torture/pr52298.c: New testcase.
	* gcc.dg/vect/pr52298.c: Likewise.

From-SVN: r184396
2012-02-20 15:15:52 +00:00
Georg-Johann Lay b0408f13d4 pr52286.c: Fix FAIL on 16-bit int platforms.
* gcc.c-torture/execute/pr52286.c: Fix FAIL on 16-bit int platforms.

From-SVN: r184394
2012-02-20 14:15:02 +00:00
Georg-Johann Lay ba641b7eda pr52132.c: Fix FAIL on 16-bit int platforms.
* gcc.dg/pr52132.c: Fix FAIL on 16-bit int platforms.

From-SVN: r184393
2012-02-20 14:06:00 +00:00
Torvald Riegel a19db3f2e3 libitm: Fix race condition in dispatch choice at transaction begin.
libitm/
	* beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
	acquisition to ...
	* retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
	(default_dispatch): Make atomic.
	(GTM::gtm_thread::set_default_dispatch): Access atomically.
	(GTM::gtm_thread::decide_retry_strategy): Access atomically and
	use decide_begin_dispatch() if default_dispatch might have changed.
	(GTM::gtm_thread::number_of_threads_changed): Initialize
	default_dispatch here.

From-SVN: r184392
2012-02-20 13:06:07 +00:00
Jakub Jelinek 5a226e0af1 re PR tree-optimization/52286 (wrong code bug)
PR tree-optimization/52286
	* fold-const.c (fold_binary_loc): For (X & C1) | C2
	optimization use double_int_to_tree instead of build_int_cst_wide,
	rewrite to use double_int vars.

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

From-SVN: r184391
2012-02-20 13:19:47 +01:00
Rainer Orth e992fc2e5d Enable initfini array support on Solaris (PR target/50166)
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
	Define _start.
	Remove -e 0 from $gcc_cv_ld invocation.
	Only use __GLIBC_PREREQ if defined.
	Enable on Solaris since Solaris 8 patch.
	(gcc_SUN_LD_VERSION): New macro.
	* configure.ac (ld_ver) <*-*-solaris2*>: Refer to
	gcc_SUN_LD_VERSION for version number format.
	* configure: Regenerate.
	* varasm.c (get_elf_initfini_array_priority_section): Set
	SECTION_NOTYPE for non-default priority.
	Use get_section instead of get_unnamed_section to emit
	.init_array/.fini_array with default priority.

From-SVN: r184390
2012-02-20 11:47:25 +00:00
Paolo Carlini d150390867 re PR libstdc++/52309 ([c++0x] unordered_set illegally requires value_type::operator!=)
2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52309
	* include/bits/hashtable_policy.h (_Equality_base<, true,>::
    	_M_equal(const _Hashtable&)): Compare values with operator==.
	* testsuite/23_containers/unordered_set/operators/52309.cc: New.

From-SVN: r184388
2012-02-20 11:11:39 +00:00
GCC Administrator c578750f9c Daily bump.
From-SVN: r184385
2012-02-20 00:19:10 +00:00
Joseph Myers 9240632cf9 * sv.po: Update.
From-SVN: r184381
2012-02-19 22:38:51 +00:00
Richard Sandiford 78c2726669 mips.c (mips_need_mips16_rdhwr_p): New variable.
gcc/
	* config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
	(mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
	(mips_start_unique_function, mips_output_mips16_rdhwr)
	(mips_code_end): New functions.
	(TARGET_ASM_CODE_END): Define.

libgcc/
	* config.host (mips64*-*-linux*, mipsisa64*-*-linux*)
	(mips*-*-linux*): Remove t-slibgcc-libgcc.
	* config/mips/t-mips16 (LIB1ASMFUNCS): Remove __mips16_rdhwr.
	* config/mips/mips16.S (__mips16_rdhwr): Delete.

From-SVN: r184380
2012-02-19 16:47:19 +00:00
Richard Sandiford 5adeb24686 mips.c (mips16_build_call_stub): Add CFI information to stubs with non-sibling calls.
gcc/
	* config/mips/mips.c (mips16_build_call_stub): Add CFI information
	to stubs with non-sibling calls.

libgcc/
	* config/mips/mips16.S (CALL_STUB_RET): Add CFI information.

From-SVN: r184379
2012-02-19 16:44:54 +00:00
GCC Administrator 3e95c6caec Daily bump.
From-SVN: r184377
2012-02-19 00:18:44 +00:00
Sandra Loosemore e1813255d7 invoke.texi (-fira-* options): Copy-edit.
2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (-fira-* options): Copy-edit.
	(ira-* parameters): Copy-edit.

From-SVN: r184373
2012-02-18 15:36:16 -05:00
Tobias Burnus d2c5dbf264 re PR fortran/52295 (Allow internal procedure in generic interfaces)
2012-02-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52295
        * interface.c (check_interface0): Internal procs in
        generic interfaces are allowed in Fortran 2008.

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

        PR fortran/52295
        * gfortran.dg/interface_35.f90: Use -std=f2003.
        * gfortran.dg/proc_ptr_comp_20.f90: Remove dg-warning.
        * gfortran.dg/interface_assignment_4.f90: Ditto.
        * gfortran.dg/bessel_1.f90: Ditto.
        * gfortran.dg/func_result_6.f90: Ditto.
        * gfortran.dg/hypot_1.f90: Ditto.
        * gfortran.dg/proc_ptr_comp_21.f90: Ditto.

From-SVN: r184372
2012-02-18 13:31:42 +01:00
Sandra Loosemore 141a25c268 invoke.texi: Minor copy-edits to bring into conformance with GCC coding conventions.
2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi: Minor copy-edits to bring into conformance with
	GCC coding conventions.

From-SVN: r184367
2012-02-17 21:32:38 -05:00
Ian Lance Taylor 5d46bf0538 libgo: Add mount flags, fallocate, statfs.
From-SVN: r184365
2012-02-18 01:22:02 +00:00
Sandra Loosemore 195a2e9d1f invoke.texi: Consistently hyphenate "big-endian"/"little-endian" when used as adjectives.
2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
	when used as adjectives.

From-SVN: r184364
2012-02-17 19:53:45 -05:00
Ian Lance Taylor 09bac6601a compiler: Permit an empty interface to be embedded multiple times.
From-SVN: r184363
2012-02-18 00:43:39 +00:00
GCC Administrator efb743a718 Daily bump.
From-SVN: r184362
2012-02-18 00:19:15 +00:00
Doug Kwan 4ad29d0de3 2012-02-17 Doug Kwan <dougkwan@google.com>
* contrib/testsuite-management/validate_failures.py
	(GetMakefileValue): Check for cross compilers.

From-SVN: r184357
2012-02-17 23:55:00 +00:00
Ian Lance Taylor 9714c8aab4 compiler: Permit (_) on left hand side of =.
From-SVN: r184356
2012-02-17 23:36:58 +00:00
Ian Lance Taylor f21f4773f3 compiler: List imported packages in export information.
From-SVN: r184355
2012-02-17 23:21:08 +00:00
Ian Lance Taylor b2c4b7b940 compiler: Add parameter names to export information.
* Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).

From-SVN: r184353
2012-02-17 22:36:10 +00:00
Ian Lance Taylor 0a9115099d compiler: Don't lower binary expressions with mismatched types.
From-SVN: r184352
2012-02-17 21:51:10 +00:00