Commit Graph

115243 Commits

Author SHA1 Message Date
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
Ian Lance Taylor f7b675752a gospec.c (lang_specific_driver): If linking, and no -o option was used, add one.
* gospec.c (lang_specific_driver): If linking, and no -o option
	was used, add one.

From-SVN: r184351
2012-02-17 21:27:48 +00:00
Benjamin Kosnik 904bfee883 PR libstdc++/51798 continued.
2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/51798 continued.
	* acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for
	__atomic_, not __sync.
	* configure: Regenerated.

From-SVN: r184350
2012-02-17 20:51:58 +00:00
Benjamin Kosnik b124c5c482 re PR libstdc++/47058 ("--enable-maintainer-mode --disable-werror" wrongly upgrades warnings to errors in libstdc++)
2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/47058
	* acinclude.m4 (GLIBCXX_ENABLE_WERROR): New.
	(GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS
	* configure.ac: Use it.
	* fragment.am: Set WERROR_FLAG conditionally on --disable-werror.
	* configure: Regenerate.
	* python/Makefile.in: Same.
	* Makefile.in: Same.
	* doc/Makefile.in: Same.
	* include/Makefile.in: Same.
	* po/Makefile.in: Same.
	* python/Makefile.in: Same.
	* src/Makefile.in: Same.
	* src/c++11/Makefile.in: Same.
	* src/c++98/Makefile.in: Same.
	* testsuite/Makefile.in: Same.

From-SVN: r184349
2012-02-17 20:26:32 +00:00
Ian Lance Taylor 5a815b930a compiler: Fix backend representation for interface methods.
From-SVN: r184348
2012-02-17 20:00:34 +00:00
Ian Lance Taylor 7a6cb708b1 compiler: Check for initialization loop in constant initializer.
From-SVN: r184347
2012-02-17 19:27:27 +00:00
Ian Lance Taylor 061793a4cc re PR go/52266 (syntax error in libgo/configure)
PR go/52266
libgo: Remove accidental AC_INCLUDES_DEFAULT from configure script.

From-SVN: r184345
2012-02-17 15:44:29 +00:00
Arnaud Charlet f45ccc7c0d [multiple changes]
2012-02-17  Ed Schonberg  <schonberg@adacore.com>

	* exp_ch6.adb (Legal_Copy): If layout is not
	determined in the front-end, do not emit error message when
	by-reference actual is potentially unaligned.
	* gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
	illegal representation clause on tagged or aliased component, or on
	by-reference type with forced alignment.

2012-02-17  Nicolas Roche  <roche@adacore.com>

	* gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
	propagated by gnatlib-sjlj and gnatlib-zcx targets.
	* gcc-interface/Make-lang.in: Update dependencies.

2012-02-17  Thomas Quinot  <quinot@adacore.com>

	* sem_ch12.adb (Analyze_Package_Instantiation): For an
	instantiation in an RCI library unit, omit the instance body
	if the RCI library unit is the instance itself (E.2.3(18)),
	but include the body if the instantiation is within the RCI
	declaration (12.3(12)).

From-SVN: r184343
2012-02-17 15:26:20 +01:00
Steve Baird acf49e88aa sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and Post'Class aspects can only be specified for a primitive...
2012-02-17  Steve Baird  <baird@adacore.com>

	* sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
	Post'Class aspects can only be specified for a primitive operation
	of a tagged type.

From-SVN: r184342
2012-02-17 15:17:21 +01:00