Commit Graph

106477 Commits

Author SHA1 Message Date
Ralf Wildenhues
996c0cb05f libiberty: documentation markup and order fixes.
libiberty/:
	* splay-tree.c: Escape wrapping newlines in texinfo markup
	with '@', to fix function declaration output rendering.
	* gather-docs: Relax and improve macro name matching to actually
	match all current names and to allow input line wrapping.
	* bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
	hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
	memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
	pexecute.txh, random.c, setenv.c, setproctitle.c,
	simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
	strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
	Wrap long texinfo input lines.
	* functions.texi: Regenerate.

From-SVN: r169783
2011-02-03 07:23:20 +00:00
Alexandre Oliva
4deef538ec re PR debug/43092 (Wrong debuginfo with VTA and -fomit-frame-pointer/-mno-accumulate-outgoing-args)
PR debug/43092
PR rtl-optimization/43494
* rtl.h (for_each_inc_dec_fn): New type.
(for_each_inc_dec): Declare.
* rtlanal.c (struct for_each_inc_dec_ops): New type.
(for_each_inc_dec_find_inc_dec): New fn.
(for_each_inc_dec_find_mem): New fn.
(for_each_inc_dec): New fn.
* dse.c (struct insn_size): Remove.
(replace_inc_dec, replace_inc_dec_mem): Remove.
(emit_inc_dec_insn_before): New fn.
(check_for_inc_dec): Use it, along with for_each_inc_dec.
(canon_address): Pass mem modes to cselib_lookup.
* cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
(cselib_lookup_from_insn): Likewise.
(cselib_subst_to_values): Likewise.
* cselib.c (find_slot_memmode): New var.
(cselib_find_slot): New fn.  Use it instead of
htab_find_slot_with_hash everywhere.
(entry_and_rtx_equal_p): Use find_slot_memmode.
(autoinc_split): New fn.
(rtx_equal_for_cselib_p): Rename and implement in terms of...
(rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
Deal with autoinc.  Special-case recursion into MEMs.
(cselib_hash_rtx): Likewise.
(cselib_lookup_mem): Infer pmode from address mode.  Distinguish
address and MEM modes.
(cselib_subst_to_values): Add memmode, pass it on.
Deal with autoinc.
(cselib_lookup): Add memmode argument, pass it on.
(cselib_lookup_from_insn): Add memmode.
(cselib_invalidate_rtx): Discard obsolete push_operand handling.
(struct cselib_record_autoinc_data): New.
(cselib_record_autoinc_cb): New fn.
(cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
mode to cselib_lookup.  Reset autoinced REGs here instead of...
(cselib_process_insn): ... here.
* var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
to cselib_lookup.
(add_uses): Likewise, also to cselib_subst_to_values.
(add_stores): Likewise.
* sched-deps.c 	(add_insn_mem_dependence): Pass mode to
cselib_subst_to_values.
(sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
* gcse.c (do_local_cprop): Adjusted.
* postreload.c (reload_cse_simplify_set): Adjusted.
(reload_cse_simplify_operands): Adjusted.
* sel-sched-dump (debug_mem_addr_value): Pass mode.

From-SVN: r169782
2011-02-03 06:04:04 +00:00
Alexandre Oliva
1551d44aba re PR tree-optimization/45122 (-funsafe-loop-optimizations causes FAIL: gcc.c-torture/execute/pr27285.c execution)
gcc/ChangeLog:
PR tree-optimization/45122
* tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
unsafe assumptions when there's more than one loop exit.
gcc/testsuite/ChangeLog:
PR tree-optimization/45122
* gcc.dg/tree-ssa/pr45122.c: New.

From-SVN: r169781
2011-02-03 06:01:40 +00:00
Michael Meissner
c94854734b Fix PR target/47272
From-SVN: r169780
2011-02-03 05:42:19 +00:00
Joseph Myers
b24d1acf7f pa-hpux10.opt: New.
* config/pa/pa-hpux10.opt: New.
	* config/hpux11.opt (pthread): New Driver option.
	* config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
	* config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.

From-SVN: r169779
2011-02-03 02:13:31 +00:00
Joseph Myers
aa18dd0f40 vms.opt: New.
* config/ia64/vms.opt: New.
	* config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.

From-SVN: r169778
2011-02-03 02:12:32 +00:00
Ian Lance Taylor
0c521d1875 Check whether we are using setjmp/longjmp exceptions.
From-SVN: r169777
2011-02-03 01:53:36 +00:00
Michael Meissner
28fc3eee79 Fix PR target/47580
From-SVN: r169776
2011-02-03 00:41:16 +00:00
GCC Administrator
1fb4a78837 Daily bump.
From-SVN: r169775
2011-02-03 00:18:15 +00:00
Joseph Myers
b5838b1f7a * config/i386/djgpp.opt (posix): New Driver option.
From-SVN: r169771
2011-02-02 22:15:37 +00:00
Gerald Pfeifer
0db8fa89b4 config.gcc (*-*-freebsd[12], [...]): Move to the unsupported targets list.
* config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
	Move to the unsupported targets list.

From-SVN: r169770
2011-02-02 22:04:43 +00:00
Peter Bergner
9cd4f22a45 re PR rtl-optimization/47525 (DCE fails to eliminate a dead call to a pure function when compiled with -maltivec)
PR rtl-optimization/47525
	* df-scan.c: Update copyright years.
	(df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
	and non-clobber DF_REF_REG_DEF for calls to const and pure functions.

From-SVN: r169768
2011-02-02 14:08:06 -06:00
Janus Weil
8e2bc95be5 re PR fortran/47082 ([OOP] ICE in gfc_conv_component_ref)
2011-02-02  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47082
	* trans-expr.c (gfc_trans_class_init_assign): Add call to
	gfc_get_derived_type.
	* module.c (read_cleanup): Do not use unique_symtrees for vtabs
	or vtypes.

2011-02-02  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47082
	* gfortran.dg/class_37.f03 : New test.


Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>

From-SVN: r169767
2011-02-02 19:51:03 +00:00
Ian Lance Taylor
932e32375a libgo: Apply upstream libtool patch.
http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00008.html

From-SVN: r169766
2011-02-02 18:41:27 +00:00
Rainer Orth
9ed8059cb1 sysv4.h (TARGET_VERSION): Remove.
* config/i386/sysv4.h (TARGET_VERSION): Remove.
	(SUBTARGET_RETURN_IN_MEMORY): Remove.
	(ASM_OUTPUT_ASCII): Remove.
	* config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.

From-SVN: r169534
2011-02-02 16:58:49 +00:00
Jeff Law
2a737389e4 re PR target/47543 (ICE: in extract_insn, at recog.c:2109 when building zlib)
PR middle-end/47543
	* reload.c (find_reloads_address): Handle reg+d address where both
	components are invalid by reloading the entire address.

From-SVN: r169533
2011-02-02 09:52:21 -07:00
Sebastian Pop
9dac82c4da Fix PR40979 and PR47044: after LIM call copy_prop and DCE to clean up.
2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
	    Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/40979
	PR bootstrap/47044
	* passes.c (init_optimization_passes): After LIM call copy_prop
	and DCE to clean up.
	* tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.

	* gcc.dg/graphite/graphite.exp (DEFAULT_VECTCFLAGS): Add -ffast-math.
	* gcc.dg/graphite/pr35356-2.c: Adjust pattern.
	* gfortran.dg/graphite/graphite.exp: Run vect_files conditionally to
	check_vect_support_and_set_flags.
	* gfortran.dg/graphite/vect-pr40979.f90: New.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r169531
2011-02-02 15:52:21 +00:00
Sebastian Pop
14dd9aabd6 Fix PR47576 and PR47555: add PARAM_SCEV_MAX_EXPR_COMPLEXITY.
2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47576
	PR tree-optimization/47555
	* doc/invoke.texi (scev-max-expr-complexity): Documented.
	* params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
	(PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
	* tree-scalar-evolution.c (follow_ssa_edge): Use
	PARAM_SCEV_MAX_EXPR_COMPLEXITY.

From-SVN: r169530
2011-02-02 15:52:08 +00:00
Ian Lance Taylor
d46efcfe97 libgo.exp: Set tmpdir.
From-SVN: r169529
2011-02-02 15:50:16 +00:00
Rainer Orth
3aa831ba82 configure.ac: Don't use libdl on mips-sgi-irix6*.
* configure.ac: Don't use libdl on mips-sgi-irix6*.
	* configure: Regenerate.

From-SVN: r169522
2011-02-02 13:58:30 +00:00
Rainer Orth
11fdd877a5 configure.ac: Don't use libdl on mips-sgi-irix6*.
* configure.ac: Don't use libdl on mips-sgi-irix6*.
	* configure: Regenerate.

From-SVN: r169521
2011-02-02 13:53:56 +00:00
Janus Weil
da285ce8e4 re PR fortran/47572 ([OOP] Invalid: Allocatable polymorphic with init expression.)
2011-02-02  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47572
	* resolve.c (resolve_fl_variable): Handle polymorphic allocatables.


2011-02-02  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47572
	* gfortran.dg/class_36.f03: New.

From-SVN: r169520
2011-02-02 14:11:50 +01:00
Richard Guenther
5cbf5c20cf re PR middle-end/47566 (ICE in vn_reference_lookup)
2011-02-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47566
	* builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.

	* gcc.dg/lto/20110201-1_0.c: New testcase.

From-SVN: r169518
2011-02-02 09:59:23 +00:00
Janne Blomqvist
aa8374708a PR 47571 Weakref trickery for clock_gettime()
From-SVN: r169517
2011-02-02 10:48:24 +02:00
Alexandre Oliva
e829c3213b re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-inline.c (declare_return_variable): Remove unused caller
variable.

From-SVN: r169516
2011-02-02 06:28:22 +00:00
Alexandre Oliva
83d707929b re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow-inline.h (clear_is_used, is_used_p): New.
* cfgexpand.c (account_used_vars_for_block): Use them.
* tree-nrv.c (tree_nrv): Likewise.
* tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
(dump_scope_block): Likewise.
(remove_unused_locals): Likewise.

From-SVN: r169515
2011-02-02 06:18:01 +00:00
Alexandre Oliva
aaa2ac931e re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-inline.c (declare_return_variable): Add result decl to
local decls only once.
* gimple-low.c (record_vars_into): Mark newly-created variables
as referenced.

From-SVN: r169514
2011-02-02 05:44:38 +00:00
Alexandre Oliva
a59d15cf9f re PR debug/47498 (-fcompare-debug failure with -fsched2-use-superblocks)
gcc/ChangeLog:
PR debug/47498
PR debug/47501
PR debug/45136
PR debug/45130
* haifa-sched.c (get_ebb_head_tail): Move notes across boundary
debug insns.
(no_real_insns_p, schedule_block, set_priorities): Drop special
treatment of boundary debug insns.
* sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
insns.
* sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
* sched-int.h (DEBUG_INSN_SCHED_P): Remove.
(BOUNDARY_DEBUG_INSN_P): Likewise.
(SCHEDULE_DEBUG_INSN_P): Likewise.
* sched-rgn.c (init_ready_list): Drop special treatment of
boundary debug insns.
* final.c (rest_of_clean_state): Clear notes' BB.
gcc/testsuite/ChangeLog:
PR debug/47498
PR debug/47501
PR debug/45136
PR debug/45130
* debug/pr47498.c: New.
* debug/pr47501.c: New.

From-SVN: r169513
2011-02-02 04:31:35 +00:00
Joseph Myers
6fc2f091e7 * config/openbsd.opt (assert=): New Driver option.
From-SVN: r169512
2011-02-02 01:21:52 +00:00
Joseph Myers
fc52338760 nto.opt: New.
* config/i386/nto.opt: New.
	* config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.

From-SVN: r169511
2011-02-02 01:05:13 +00:00
GCC Administrator
30c60047c8 Daily bump.
From-SVN: r169510
2011-02-02 00:18:47 +00:00
Joseph Myers
6d9821e521 netware.opt: New.
* config/i386/netware.opt: New.
	* config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.

From-SVN: r169506
2011-02-01 23:08:01 +00:00
Joseph Myers
cef932d4eb * config/interix.opt (posix): New Driver option.
From-SVN: r169505
2011-02-01 22:23:53 +00:00
Ian Lance Taylor
a7c48c8ec5 Test whether libgcc or kernel defines __sync_bool_compare_and_swap_4.
From-SVN: r169504
2011-02-01 21:23:07 +00:00
DJ Delorie
56490b7406 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
From-SVN: r169503
2011-02-01 16:08:55 -05:00
Ian Lance Taylor
e499b5eef4 Add __sync_bool_compare_and_swap_4 for targets which don't have it.
From-SVN: r169502
2011-02-01 20:15:13 +00:00
DJ Delorie
22843acd31 m32c.c (m32c_regno_reg_class): Return smallest reg class for A0/A1.
* config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
class for A0/A1.

From-SVN: r169501
2011-02-01 14:43:50 -05:00
Sebastian Pop
199c8f2f38 Fix PR47561: print the Graphite flags.
2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47561
	* toplev.c (process_options): Print the Graphite flags.  Add
	flag_loop_flatten to the list of options requiring Graphite.

From-SVN: r169496
2011-02-01 18:38:31 +00:00
Paolo Carlini
72660097ec re PR libstdc++/46914 (std::atomic<int*>::exchange(...) doesn't store correct value.)
2011-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/46914
	* include/bits/atomic_0.h (_ATOMIC_STORE_, _ATOMIC_MODIFY_,
	_ATOMIC_CMPEXCHNG_): Rename __v -> __w, and __m -> __n, to
	avoid name conflicts.

From-SVN: r169494
2011-02-01 18:15:39 +00:00
Benjamin Kosnik
04f089357e re PR libstdc++/47560 (FAIL: abi/header_cxxabi.c (test for excess errors))
2011-02-01  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/47560
	* config/os/hpux/os_defines.h: Remove use of macros on namespace.

From-SVN: r169491
2011-02-01 17:11:17 +00:00
Joseph Myers
926bcf2265 * config/i386/cygming.opt (posix): New Driver option.
From-SVN: r169490
2011-02-01 16:45:09 +00:00
Joseph Myers
59793c5171 vxworks.opt: New.
* config/arm/vxworks.opt: New.
	* config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.

From-SVN: r169489
2011-02-01 16:43:49 +00:00
Joseph Myers
183c38a4f9 elf.opt: New.
* config/alpha/elf.opt: New.
	* config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
	alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.

From-SVN: r169488
2011-02-01 16:42:51 +00:00
Richard Guenther
9939e416ee re PR tree-optimization/47559 (ICE: verify_stmts failed: statement marked for throw, but doesn't with -fnon-call-exceptions and noexcept)
2011-02-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47559
	* tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
	store-motion on references that can throw.

	* g++.dg/torture/pr47559.C: New testcase.

From-SVN: r169487
2011-02-01 16:15:56 +00:00
Bernd Schmidt
4a3c9687cf tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
* tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
	* tree-pass.h (TDF_CSELIB): New macro.
	* cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
	cselib_lookup): Check for it rather than for TDF_DETAILS.

From-SVN: r169482
2011-02-01 15:12:26 +00:00
Janus Weil
0f0a4367ab re PR fortran/47565 ([OOP] Segfault with TBP)
2011-02-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47565
	* trans-expr.c (gfc_conv_structure): Handle constructors for procedure
	pointer components with allocatable result.


2011-02-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47565
	* gfortran.dg/typebound_call_20.f03: New.

From-SVN: r169480
2011-02-01 15:59:40 +01:00
H.J. Lu
dd3b31fbce Check HOST_BIT_BUCKET when settting dump base/dir.
2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/47547
	* lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
	is HOST_BIT_BUCKET.

	* opts.c (finish_options): Don't add x_aux_base_name if it is
	HOST_BIT_BUCKET.

From-SVN: r169479
2011-02-01 06:42:08 -08:00
Richard Guenther
34c1de7982 re PR tree-optimization/47555 (Huge memory usage when optimizing)
2011-02-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47555
	Revert
	2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>

	* params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.

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

From-SVN: r169478
2011-02-01 14:36:00 +00:00
Sebastien Bourdeauducq
dd2804d247 re PR target/46692 (Missing LM32 multilibs for divider and sign extender)
PR gcc/46692
	* config/lm32/t-lm32: Add multilib for all CPU options.

From-SVN: r169473
2011-02-01 11:52:12 +00:00
Sebastien Bourdeauducq
fdd3083a51 MAINTAINERS (CPU Port Maintainers): Add myself.
* MAINTAINERS (CPU Port Maintainers): Add myself.

From-SVN: r169471
2011-02-01 11:02:47 +00:00