Commit Graph

115324 Commits

Author SHA1 Message Date
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
Arnaud Charlet 794b9b7240 [multiple changes]
2012-02-17  Yannick Moy  <moy@adacore.com>

	* gnat_rm.texi: Minor shuffling.

2012-02-17  Ed Schonberg  <schonberg@adacore.com>

	* aspects.adb: Expression functions can carry pre/postconditions.
	* par-ch6.adb (P_Subprogram): look for optional pre/postconditions
	in an expression function.
	* sem_prag (Check_Precondition_Postcondition): legal on expression
	functions.

2012-02-17  Vincent Pucci  <pucci@adacore.com>

	* a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
	* a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
	* a-convec.adb, a-coorma.adb (Adjust): New routine.
	(Constant_Reference): Increment Busy and Lock counters.
	(Reference): Increase Busy and Lock counters.
	(Finalize): New routine.
	* a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
	(Adjust): New routine.	(Constant_Reference): Increment Busy
	and Lock counters.
	(Finalize): New routine.
	* a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
	* a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
	* a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
	* a-coorma.ads, a-coorse: Controlled component added to the
	reference types.

2012-02-17  Robert Dewar  <dewar@adacore.com>

	* restrict.adb (Check_Restriction): Add special handling for
	No_Obsolescent_Features.

2012-02-17  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_util.adb (Find_Finalize_Address): When dealing with an
	internally built full view for a type with unknown discriminants,
	use the original record type.

From-SVN: r184341
2012-02-17 15:15:46 +01:00
Walter Lee 51f894e62c Delete myself from "Write After Approval" list in MAINTAINERS file.
From-SVN: r184340
2012-02-17 14:14:48 +00:00
Arnaud Charlet 0eb75c59a2 [multiple changes]
2012-02-17  Robert Dewar  <dewar@adacore.com>

	* sem_dim.adb: Minor reformatting.

2012-02-17  Yannick Moy  <moy@adacore.com>

	* gnat_rm.texi: Minor rewording.

From-SVN: r184339
2012-02-17 15:08:33 +01:00
Arnaud Charlet 2293611f2d [multiple changes]
2012-02-17  Thomas Quinot  <quinot@adacore.com>

	* sem_aggr.adb: Minor reformatting.

2012-02-17  Robert Dewar  <dewar@adacore.com>

	* gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.

2012-02-17  Vincent Pucci  <pucci@adacore.com>

	* sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
	(Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
	call added.
	(Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
	call added.
	* s-dim.ads: Make package Pure.

2012-02-17  Gary Dismukes  <dismukes@adacore.com>

	* prj-nmsc.adb: Minor reformatting.

2012-02-17  Yannick Moy  <moy@adacore.com>

	* gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.

From-SVN: r184338
2012-02-17 15:07:11 +01:00
Arnaud Charlet 0df7e2d0ec [multiple changes]
2012-02-17  Yannick Moy  <moy@adacore.com>

	* gnat_ugn.texi: Fix typos.

2012-02-17  Pascal Obry  <obry@adacore.com>

	* prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
	aggregate is not Externally_Built.

2012-02-17  Ed Schonberg  <schonberg@adacore.com>

	* sem_aggr.adb (Resolve_Record_Aggregate): If a composite
	component has a box association, copy the default value using
	the current scope as the scope of internal types, to prevent
	scoping anomalies in gigi.

From-SVN: r184337
2012-02-17 14:59:28 +01:00
Arnaud Charlet 260359e35d [multiple changes]
2012-02-17  Robert Dewar  <dewar@adacore.com>

	* sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
	sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
	exp_intr.adb, s-os_lib.adb: Minor reformatting.

2012-02-17  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
	old operation is abstract, the relevant type is not abstract,
	and the new subprogram fails to override.

From-SVN: r184336
2012-02-17 14:56:55 +01:00
Rainer Orth bae868fba9 Disable gthreads on Solaris 8/9 (PR libstdc++/52189)
PR libstdc++/52189
	* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle
	--enable-libstdcxx-threads.
	Disable on Solaris 8/9 with symbol versioning.
	* configure.ac (GLIBCXX_CHECK_GTHREADS): Move after
	GLIBCXX_ENABLE_SYMVERS.
	* configure: Regenerate.
	* doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain.

From-SVN: r184335
2012-02-17 13:38:15 +00:00
Tobias Burnus b5912b1013 re PR translation/52273 (translatable string typo: "at at %L")
2012-02-17  Tobias Burnus  <burnus@net-b.de>
            Roland Stigge  <stigge@antcom.de>

        PR translation/52273
        * interface.c (compare_actual_formal): Fix typo "at at".


Co-Authored-By: Roland Stigge <stigge@antcom.de>

From-SVN: r184334
2012-02-17 14:05:48 +01:00
Tobias Burnus bf8367ac83 gfortran.texi (Q exponent-letter): Fix grammar.
2012-02-17  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Q exponent-letter): Fix grammar.

From-SVN: r184333
2012-02-17 12:18:20 +01:00
Tobias Burnus 8578f64002 gfortran.texi (Status): Fix typos.
2012-02-17  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Status): Fix typos.
        * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with
        a majuscule.

From-SVN: r184332
2012-02-17 12:15:08 +01:00
Tobias Burnus 0c133211da re PR translation/52232 (translatable string typos: "conindexed" (should be "coindexed"))
2012-02-17  Tobias Burnus  <burnus@net-b.de>
            Roland Stigge  <stigge@antcom.de>

        PR translation/52232
        PR translation/52234
        PR translation/52245
        PR translation/52246
        PR translation/52262
        PR translation/52273
        * io.c (gfc_match_open): Fix typo.
        * interface.c (compare_actual_formal): Ditto.
        * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16):
        * Ditto.
        * match.c (alloc_opt_list, gfc_match_nullify): Ditto.
        * check.c (gfc_check_associated, gfc_check_null): Ditto.

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

        PR translation/52232
        PR translation/52234
        PR translation/52245
        PR translation/52246
        PR translation/52262
        PR translation/52273
        * gfortran.dg/coarray_22.f90: Update dg-error.
        * gfortran.dg/allocate_alloc_opt_4.f90: Ditto.


Co-Authored-By: Roland Stigge <stigge@antcom.de>

From-SVN: r184331
2012-02-17 11:51:10 +01:00
Rainer Orth 459e2649e4 Increase simulate-thread timeout (PR target/51753)
PR target/51753
	* lib/gcc-simulate-thread.exp: Load timeout.exp.
	(simulate-thread): Use default timeout.

From-SVN: r184330
2012-02-17 09:41:13 +00:00
Jason Merrill e9339a68d3 re PR c++/52248 (timevar ICE)
PR c++/52248
	* decl.c (define_label): Use timevar_cond_start/stop.

From-SVN: r184329
2012-02-17 03:36:53 -05:00
Fabien Chêne 6acc8d53a9 re PR c++/52126 (compilation error)
gcc/testsuite/ChangeLog

2012-02-16  Fabien Chene  <fabien@gcc.gnu.org>

	PR c++/52126
	* g++.dg/template/using21.C: New.
	* g++.dg/template/using22.C: Likewise.

gcc/cp/ChangeLog

2012-02-16  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/52126
	* decl.c (xref_basetypes): call dependent_scope_p instead of
	dependent_type_p.

From-SVN: r184328
2012-02-17 08:49:35 +01:00
GCC Administrator 2f46ac4db1 Daily bump.
From-SVN: r184327
2012-02-17 00:19:20 +00:00
Joseph Myers 96cf4040f5 * de.po: Update.
From-SVN: r184322
2012-02-17 00:00:40 +00:00
Sandra Loosemore 1b015db735 invoke.texi: Clean up "that"/"which" confusion.
2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi: Clean up "that"/"which" confusion.

From-SVN: r184320
2012-02-16 18:22:29 -05:00
Steven Bosscher 7feed46233 system.h: Poison SMALL_REGISTER_CLASSES
* system.h: Poison SMALL_REGISTER_CLASSES
	* config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
	* config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.

From-SVN: r184319
2012-02-16 23:16:28 +00:00
Ian Lance Taylor a24b5b3e23 compiler: Don't crash on erroneous unnamed integer type descriptor.
From-SVN: r184318
2012-02-16 22:26:41 +00:00