Commit Graph

115324 Commits

Author SHA1 Message Date
Rainer Orth
cc2de92d5a Fix Solaris symbol versioning (PR libstdc++/52188)
contrib:
	PR libstdc++/52188
	* make_sunver.pl: Remove #ifdef handling.

	libgomp:
	PR libstdc++/52188
	* acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove	symvers_renaming.
	Remove ENABLE_SYMVERS_SOL2.
	* configure: Regenerate.
	* Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
	(PREPROCESS): New variable.
	(libgomp.ver): New target.
	[LIBGOMP_BUILD_VERSIONED_SHLIB &&
	LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
	LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
	Use libgomp.ver.
	[LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
	* Makefile.in: Regenerate.

	libstdc++-v3:
	PR libstdc++/52188
	* acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming.
	Remove ENABLE_SYMVERS_SOL2.
	* configure: Regenerate.
	* src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver):
	Postprocess mapfile.
	[ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling.
	* src/Makefile.in: Regenerate.

	* config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]:
	Don't export
	_ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv.

From-SVN: r184598
2012-02-27 13:51:50 +00:00
Uros Bizjak
f59280cf80 i386.md (*movabs<mode>_1): Fix operand 1 constraints.
* config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.

From-SVN: r184597
2012-02-27 14:45:34 +01:00
Matthew Gretton-Dann
d2d6bcce98 revert: arm-cores.def (cortex-a15): Use cortex_a15_tune for tuning parameters.
Revert:
	2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
	* gcc/config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
	tuning parameters.
	* gcc/config/arm/arm.c (arm_cortex_a15_tune): New static variable.

From-SVN: r184596
2012-02-27 11:26:49 +00:00
Eric Botcazou
a0b8b1b736 ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
* gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
	(TYPE_BY_REFERENCE_P): New flag.
	(TYPE_IS_BY_REFERENCE_P): New macro.
	(TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
	(TYPE_IS_DUMMY_P): Adjust for above change.
	* gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
	and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
	(gnat_to_gnu_param): Likewise.
	(maybe_pad_type): Likewise.
	(make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
	* gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
	instead of TREE_ADDRESSABLE.
	* gcc-interface/trans.c (finalize_nrv): Likewise.
	(call_to_gnu): Likewise.  Do not create a temporary for return values
	with by-reference type here.
	(gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
	(gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
	CONSTRUCTORs and calls.
	* gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
	the underlying type and use it throughout.  Use TYPE_IS_BY_REFERENCE_P
	instead of TREE_ADDRESSABLE.
	* gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
	types explicitly.

From-SVN: r184594
2012-02-27 10:41:10 +00:00
Eric Botcazou
184d436af4 decl.c (gnat_to_gnu_entity): Revert previous change that creates a special VAR_DECL for debugging purposes.
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
	change that creates a special VAR_DECL for debugging purposes.  For an
	aliased object with an unconstrained nominal subtype, make its type a
	thin reference to the underlying object.
	* gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
	expressions built for the initialization of above objects.

From-SVN: r184593
2012-02-27 10:27:15 +00:00
Mikael Pettersson
2c2a780f7f re PR libffi/52223 (libffi's man page install breaks with multilibs and overridden mandir)
PR libffi/52223
	* Makefile.am (FLAGS_TO_PASS): Define.
	* Makefile.in: Regenerate.

From-SVN: r184592
2012-02-27 11:00:12 +01:00
Oleg Endo
dac73555da sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
* config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.

From-SVN: r184590
2012-02-27 00:43:12 +00:00
GCC Administrator
cad1306ecf Daily bump.
From-SVN: r184589
2012-02-27 00:21:19 +00:00
Oleg Endo
442180a22d re PR target/49263 (SH Target: underutilized "TST #imm, R0" instruction)
PR target/49263
	* gcc.target/sh/pr49263.c: New.

From-SVN: r184585
2012-02-26 13:31:32 +00:00
Joseph Myers
e1ba5608b9 * sv.po: Update.
From-SVN: r184584
2012-02-26 13:27:42 +00:00
Oleg Endo
2eff0b9d45 predicates.md: Remove blank lines.
* config/sh/predicates.md: Remove blank lines.
	* config/sh/sh.c: Fix typos in comments.
	* config/sh/constraints.md: Likewise.
	* config/sh/sh.md: Remove blank lines.
	Fix typos in comments.  Use ;; as comment characters.

From-SVN: r184583
2012-02-26 12:46:01 +00:00
Walter Lee
7afd1a8e94 Fix a bug in tilegx_fixup_pcrel_references...
Fix a bug in tilegx_fixup_pcrel_references, to properly match and
fixup the second instruction of the instruction sequence to generate a
pc relative address.

	* config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction
	pattern.
	(replace_mov_pcrel_step2): Ditto.

From-SVN: r184582
2012-02-26 07:56:56 +00:00
GCC Administrator
f6d2bbbadc Daily bump.
From-SVN: r184581
2012-02-26 00:19:12 +00:00
John David Anglin
de1ab4a5e1 re PR testsuite/52201 (FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors))
PR testsuite/52201
	* testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: Require	atomic builtins.
	* testsuite/29_atomics/atomic/operators/51811.cc: Likewise.

From-SVN: r184576
2012-02-25 19:36:11 +00:00
Alexandre Oliva
a562837816 re PR debug/52001 (Huge compile-time regression with var-tracking)
PR debug/52001
* alias.c (refs_newer_value_cb, refs_newer_value_p): New.
(get_addr): Walk canonical value's locs.  Avoid returning VALUEs
and locs that reference values newer than the non-canonical value
at hand.  Return the canonical value as a worst case.
(memrefs_conflict_p): Walk canonical value's locs.

From-SVN: r184572
2012-02-25 12:09:41 +00:00
Alexandre Oliva
0e22465644 re PR debug/52001 (Huge compile-time regression with var-tracking)
PR debug/52001
* cselib.c (preserve_only_constants): Rename to...
(preserve_constants_and_equivs): ... this.  Split out...
(invariant_or_equiv_p): ... this.  Preserve plus expressions
of other preserved expressions too.
(cselib_reset_table): Adjust.
* var-tracking.c (reverse_op): Use canonical value to build
reverse operation.

From-SVN: r184571
2012-02-25 12:09:27 +00:00
Ian Lance Taylor
2ef7cdff1e runtime: Fix typo in go-nosys.c.
From Rainer Orth.

From-SVN: r184569
2012-02-25 02:11:29 +00:00
GCC Administrator
44a5ddea05 Daily bump.
From-SVN: r184568
2012-02-25 00:18:07 +00:00
Andrew MacLeod
9fced7562f simulate-thread.gdb: Use return value from simulate_thread_wrapper_other_threads
* gcc.dg/simulate-thread/simulate-thread.gdb: Use return value from
	simulate_thread_wrapper_other_threads
	* gcc.dg/simulate-thread/atomic-load-int128.c (simulate_thread_main):
	Move initialization of 'value' to main().
	(main): Initialize 'value';
	* gcc.dg/simulate-thread/speculative-store.c
	(simulate_thread_step_verify): Return 0 when successful.
	* gcc.dg/simulate-thread/simulate-thread.h (HOSTILE_THREAD_THRESHOLD):
	Reduce threshold.
	(INSN_COUNT_THRESHOLD): New.  Instruction limit to terminate test.
	(simulate_thread_wrapper_other_threads): Return a success/fail value
	and issue an error if the instruction count threshold is exceeded.

From-SVN: r184564
2012-02-24 21:16:26 +00:00
Kai Tietz
15498cfa4e i386.c (ix86_delegitimize_address): Handle UNSPEC_PCREL plus displacement.
* config/i386/i386.c (ix86_delegitimize_address): Handle
        UNSPEC_PCREL plus displacement.

From-SVN: r184560
2012-02-24 17:31:41 +01:00
Georg-Johann Lay
39e73abcec re PR target/52261 ([avr] Add support for AVR Xmega cores)
PR target/52261
	* config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
	to test for unusedness in st X addressing.

From-SVN: r184559
2012-02-24 16:26:35 +00:00
Dave Korn
7d78d5a600 Makefile.in (bindir): Import from autoconf and pass down to submake.
libada/ChangeLog:

	* Makefile.in (bindir): Import from autoconf and pass down to submake.

gcc/ada/ChangeLog:

	* gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
	Windows-specific make variable.
	(WIN_SO_INSTALL_DIR [windows targets]): Likewise.
	(install-gnatlib): Respect the above during installation when set,
	and also install any windows import library that has been built.
	(gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
	build a corresponding import library.

From-SVN: r184558
2012-02-24 16:17:01 +00:00
Rainer Orth
89743f6c30 [testsuite] Skip gcc.target/mips/interrupt_handler-[23].c on IRIX (PR target/50580)
PR target/50580
	* gcc.target/mips/interrupt_handler-2.c: Skip on mips-sgi-irix6*.
	* gcc.target/mips/interrupt_handler-3.c: Likewise.

From-SVN: r184557
2012-02-24 15:52:01 +00:00
Patrick Marlier
e00db51142 re PR boehm-gc/52179 (boehm-gc incompatible with aslr on darwin11)
2012-02-23  Patrick Marlier  <patrick.marlier@gmail.com>
	    Jack Howarth  <howarth@bromo.med.uc.edu>

boehm-gc/

	PR boehm-gc/52179
	* include/gc_config.h.in: Undefine HAVE_PTHREAD_GET_STACKADDR_NP.
	* include/private/gcconfig.h (DARWIN): Define STACKBOTTOM with
	pthread_get_stackaddr_np when available.
	* configure.ac (THREADS): Check availability of pthread_get_stackaddr_np.
	* configure: Regenerate.

libjava/

	PR target/49461
	* configure.ac (SYSTEMSPEC): No longer pass -no_pie for darwin11.
	* configure: Regenerate.


Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r184555
2012-02-24 15:21:12 +00:00
Richard Guenther
b9af73fca3 re PR tree-optimization/52361 (gcc.dg/pr48141.c times out with checking enabled)
2012-02-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52361
	* gimple.c (walk_gimple_op): Use predicates with less redundant
	tests.
	(is_gimple_reg_type): Move inline ...
	* gimple.h (is_gimple_reg_type): ... here.

From-SVN: r184552
2012-02-24 12:47:56 +00:00
Richard Guenther
6ae4eccdca re PR tree-optimization/52361 (gcc.dg/pr48141.c times out with checking enabled)
2012-02-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52361
	* passes.c (execute_function_todo): When verifying SSA form
	verify gimple form first.
	* tree-ssa.c (verify_ssa): Do not verify gimple form here.

From-SVN: r184549
2012-02-24 11:38:39 +00:00
Richard Guenther
bf948210a7 re PR middle-end/52355 (address difference between array elements is not considered to be a compile time constant anymore)
2012-02-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52355
	* fold-const.c (fold_addr_of_array_ref_difference): New function.
	(fold_binary_loc): Use it to extend the existing &a[i] - &a[j]
	folding.

	* gcc.dg/pr52355.c: New testcase.

From-SVN: r184548
2012-02-24 11:14:17 +00:00
Torvald Riegel
bc8da6ba25 libitm: Use ml_wt as default TM methods for >1 thread.
libitm/
	* retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
	default dispatch for more than 1 thread to ml_wt.

From-SVN: r184547
2012-02-24 11:05:37 +00:00
Bernhard Reutner-Fischer
b8f4632ce8 tree-if-conv (predicate_scalar_phi): Commentary typo fix.
2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* tree-if-conv (predicate_scalar_phi): Commentary typo fix.

From-SVN: r184546
2012-02-24 10:42:24 +01:00
Bernhard Reutner-Fischer
4021ad5590 tree-phinodes.c (make_phi_node): Mark static.
2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* tree-phinodes.c (make_phi_node): Mark static.
	* tree-flow.h (make_phi_node): Remove extern decl.
	* doc/gimple.texi (make_phi_node): Remove documentation.

From-SVN: r184545
2012-02-24 10:40:27 +01:00
Bernhard Reutner-Fischer
0eb09f3120 tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* tree-into-ssa (update_ssa): Avoid trailing whitespace in
	dump_file.
	* tree-ssa-sccvn.c (print_scc): Ditto.

From-SVN: r184544
2012-02-24 10:39:38 +01:00
Bernhard Reutner-Fischer
6a953a91ba passes.texi (Full redundancy elimination): Fix typo.
2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* doc/passes.texi (Full redundancy elimination): Fix typo.

From-SVN: r184543
2012-02-24 10:37:17 +01:00
Bernhard Reutner-Fischer
55532e32b7 invoke.texi (-fdse, -fdce): Remove duplicate entries.
2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.

From-SVN: r184542
2012-02-24 10:36:02 +01:00
GCC Administrator
6cfdea15da Daily bump.
From-SVN: r184540
2012-02-24 00:18:44 +00:00
Eric Botcazou
6cbb4c3277 re PR bootstrap/52287 (ICE in ready_remove_first, at haifa-sched.c:1927)
PR bootstrap/52287
	* haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.

From-SVN: r184531
2012-02-23 22:15:44 +00:00
Jason Merrill
6bfb3eb52e locale_facets.h (class num_get): Undo reordering of do_get virtual functions.
* include/bits/locale_facets.h (class num_get): Undo reordering of
	do_get virtual functions.

From-SVN: r184530
2012-02-23 17:14:56 -05:00
Kai Tietz
9ebe314b13 Correct date in ChangeLog
From-SVN: r184527
2012-02-23 22:03:13 +01:00
Kai Tietz
ffc81ae2c8 re PR libffi/52221 ([libffi] r183675,r184021 needs to be fixed.)
PR libffi/52221
        * src/x86/ffi.c (ffi_closure_raw_THISCALL): New
        prototype.
        (ffi_prep_raw_closure_loc): Use ffi_closure_raw_THISCALL for
        thiscall-convention.
        (ffi_raw_call): Use ffi_prep_args_raw.
        * src/x86/win32.S (ffi_closure_raw_THISCALL): Add
        implementation for stub.

From-SVN: r184526
2012-02-23 22:02:27 +01:00
Georg-Johann Lay
0253a8b165 re PR target/52261 ([avr] Add support for AVR Xmega cores)
PR target/52261
	* config/avr/lib1funcs.S (__AVR__XMEGA__): Fix tippo to __AVR_XMEGA__.

From-SVN: r184522
2012-02-23 19:26:00 +00:00
Kai Tietz
4d33b77106 pack-test-5.c: Add -mno-ms-bitfields option for mingw-targets.
* gcc.dg/pack-test-5.c: Add -mno-ms-bitfields option
	for mingw-targets.
	* gcc.dg/Wpadded.c: Likewise.
	* gcc.dg/bf-ms-layout-2.c: Adjust offsets to fit ms-bitfield
	structure-layout.
	* gcc.dg/di-sync-multithread.c: Replace for mingw-target the use
	for sleep by Sleep and add windows.h include for this function.
	* gcc.dg/format/dfp-printf-1.c: Adjust dg-skip-if rule for mingw
	targets.
	* gcc.dg/stack-usage-1.c (SIZE): Provide proper SIZE for x64 mingw
	target.
	* gcc.dg/tls/thr-cse-1.c: Provide proper pattern for x64 mingw
	target.
	* gcc.dg/tls/opt-11.c (memset): Use __extension__ to avoid fail
	on x64 mingw target.
	* gcc.dg/bf-ms-attrib.c: Adjust expected size for ms_struct layout.
	* gcc.dg/pr50251.c: Disable test for x64 mingw target.
	* gcc.c-torture/execute/930930-1.c (long): Replace by ptr_t to avoid
	failure on LLP64 target.

From-SVN: r184519
2012-02-23 19:10:53 +01:00
Uros Bizjak
560ad30812 re PR c/52290 (internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712)
PR c/52290
	* c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.

testsuite/ChangeLog:

	PR c/52290
	* gcc.dg/noncompile/pr52290.c: New test.

From-SVN: r184511
2012-02-23 17:34:02 +01:00
Georg-Johann Lay
f71f1418cf avr.md (code_stdname): Add ior, xor.
* config/avr/avr.md (code_stdname): Add ior, xor.
	(xior): New code iterator.
	(*<code_stdname><mode>qi.byte0): Use xior instead of ior.
	(*<code_stdname><mode>qi.byte1-3): Ditto.

From-SVN: r184509
2012-02-23 15:35:27 +00:00
Jakub Jelinek
a348dc7ff9 re PR tree-optimization/52019 (tree-ssa/ipa-split-5.c fails with -fno-tree-sra because of CLOBBERS)
PR tree-optimization/52019
	* ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
	CLOBBER stmts.

	* gcc.dg/tree-ssa/ipa-split-6.c: New test.

From-SVN: r184508
2012-02-23 15:43:43 +01:00
Richard Guenther
3762c34386 go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use build_distinct_type_copy.
2012-02-23  Richard Guenther  <rguenther@suse.de>

	* go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
	build_distinct_type_copy.

From-SVN: r184507
2012-02-23 14:30:11 +00:00
Jayant Sonar
5ddfab6d9c Contribution updates for National Semiconductor's CR16 port inclusion
From-SVN: r184506
2012-02-23 14:14:10 +00:00
Ulrich Weigand
e10e461eef acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of HAVE_INITFINI_ARRAY to work around...
gcc/
	* acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
	HAVE_INITFINI_ARRAY to work around namespace pollution in
	certain versions of newlib system headers.
	* config.in: Regenerate.
	* configure: Regenerate.
	* config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
	instead of HAVE_INITFINI_ARRAY.

	libgcc/
	* config/ia64/crtbegin.S: Use HAVE_INITFINI_ARRAY_SUPPORT
	instead of HAVE_INITFINI_ARRAY.
	* config/ia64/crtend.S: Likewise.

From-SVN: r184503
2012-02-23 10:16:39 +00:00
Edward Smith-Rowland
afe03c233e Add testsuite checks for param_type in the <random> distributions.
From-SVN: r184501
2012-02-23 02:25:00 +00:00
GCC Administrator
89f066276f Daily bump.
From-SVN: r184500
2012-02-23 00:19:48 +00:00
Kai Tietz
b1c982db4b devirt2.C: Add rule for *-*-mingw* target.
* g++.dg/opt/devirt2.C: Add rule for *-*-mingw* target.
        * g++.dg/opt/pr48549.C (long): Replace by long by __PTRDIFF_TYPE__
        derived pdiff_t type.
        * g++.dg/torture/pr49720.C: Likewise

From-SVN: r184490
2012-02-22 20:38:30 +01:00
Uros Bizjak
9517e33332 re PR target/52330 (pr50305.c: valgrind problem on invalid asm)
PR target/52330
	* config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
	is not offsettable memory reference.

testsuite/ChangeLog:

	PR target/52330
	* gcc.target/i386/pr52330.c: New test.

From-SVN: r184488
2012-02-22 20:12:09 +01:00