Commit Graph

40069 Commits

Author SHA1 Message Date
H.J. Lu 746ecbcda2 Make TARGET_SUBTARGET32_ISA_DEFAULT the same as
TARGET_SUBTARGET64_ISA_DEFAULT for Darwin/x86.

2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
	it the same as TARGET_SUBTARGET64_ISA_DEFAULT.

From-SVN: r157125
2010-02-28 09:55:16 -08:00
Ralf Wildenhues 02a9370c66 Fix typos in documentation.
gcc/:
	* doc/invoke.texi (Warning Options, RX Options): Fix typos.
	(Warning Options): -Wno-conversion-null is valid for
	Objective-C++ as well.
	* doc/tm.texi (Named Address Spaces): Likewise.
	* doc/plugins.texi (Plugins): Replace TABs with spaces.
	* doc/tree-ssa.texi (Tree SSA): Likewise.

From-SVN: r157121
2010-02-28 12:50:39 +00:00
H.J. Lu 91ad7e13d1 Don't set the default arch for i[34567]86-*-darwin*|x86_64-*-darwin*.
2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/43202
	* config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
	by default.  Don't set the default arch for
	i[34567]86-*-darwin*|x86_64-*-darwin*.

From-SVN: r157119
2010-02-27 23:56:36 -08:00
H.J. Lu 55c4eeaa4c Restore i[34567]86-*-darwin* bootstrap.
2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/43202
	* config.gcc: Enable SSE math for i[34567]86-*-darwin* by
	default.  Set the default 32bit/64bit archs with $with_arch
	instead of $arch for i[34567]86-*-*|x86_64-*-* targets.

From-SVN: r157118
2010-02-27 23:23:31 -08:00
Richard Guenther 30bc1dca9c re PR tree-optimization/43186 (A loop in tree_unroll_loops_completely never ends)
2010-02-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43186
	* params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
	* doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
	* tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
	unroller iterations.

	* gcc.c-torture/compile/pr43186.c: Adjust testcase.

From-SVN: r157114
2010-02-27 23:28:46 +00:00
H.J. Lu c6b9174f2e Set the default 32bit/64bit archs if needed.
2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
	required and i[34567]86-*-* targets don't support 64bit ISA.

From-SVN: r157110
2010-02-27 09:44:41 -08:00
Eric Botcazou 2743db69c5 re PR ada/43096 (miscompilation of ACATS c37105a at -O2)
PR ada/43096
	* tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
	the same alias set.

From-SVN: r157102
2010-02-26 23:10:24 +00:00
H.J. Lu 4d16c0dc91 Set the default arch at least to Prescott/Pentium 4.
2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Set the default arch at least to Prescott for
	i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
	if SSE math is enabled.

From-SVN: r157101
2010-02-26 14:35:34 -08:00
Manuel López-Ibáñez 0e94b75085 diagnostic.c (diagnostic_initialize): Update.
2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* diagnostic.c (diagnostic_initialize): Update.
	(diagnostic_report_diagnostic): Test inhibit_notes_p for
	informative notes.
	* diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
	(diagnostic_inhibit_notes): New.
	* toplev.c (process_options): inhibit notes with -fcompare-debug.

From-SVN: r157100
2010-02-26 22:06:56 +00:00
Manuel López-Ibáñez 7e1542b921 re PR c/20631 (Support -std=c90 as alias for -std=c89)
2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/20631
	* doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
	* doc/standards.texi: Likewise.
	* doc/extend.texi: Likewise.
	* doc/trouble.texi: Likewise.
	* doc/cppopts.texi: Likewise. 
	* doc/install.texi: Likewise.
	* c.opt (std=c90,std=gnu90): New options.
	* c-opts.c (c_common_handle_option): Handle them.
testsuite/
	* gcc.dg/cpp/c90-pedantic.c: New.
	* gcc.dg/cpp/c90.c: New.
	* gcc.dg/gnu90-const-expr-1.c: New.
	* gcc.dg/Woverlength-strings-pedantic-c90.c: New.

From-SVN: r157096
2010-02-26 17:09:29 +00:00
Manuel López-Ibáñez 0b901e4cdc re PR c/24577 (diagnostic informative note labelled "error")
2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/24577
	* c-decl.c (undeclared_variable): Use an informative note.

From-SVN: r157095
2010-02-26 16:56:09 +00:00
Richard Guenther 3753001420 re PR tree-optimization/43186 (A loop in tree_unroll_loops_completely never ends)
2010-02-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43186
	* gimple.h (gimple_fold): Remove.
	* gimple.c (gimple_fold): Remove.  Inline into single user ...
	* tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
	Try harder for conditions.

	* gcc.c-torture/compile/pr43186.c: New testcase.

From-SVN: r157093
2010-02-26 16:01:52 +00:00
Jakub Jelinek 095c7b3cbd re PR debug/43190 (Used pointer typedefs eliminated from debug info)
PR debug/43190
	* function.c (used_types_insert): Don't skip through named pointer
	types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
	and it is different from the main variant's type.

	* c-c++-common/dwarf2/pr43190.c: New test.

From-SVN: r157092
2010-02-26 16:58:57 +01:00
Nick Clifton a1e205cf51 * config/rx/rx.md (sminsi3): Remove bogus alternative.
From-SVN: r157091
2010-02-26 15:32:27 +00:00
H.J. Lu a3af5e2615 Support --with-fpmath=sse for x86.
2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Support --with-fpmath=sse for x86.

	* config/i386/ssemath.h: New.

	* doc/install.texi (--with-fpmath=sse): Documented.

From-SVN: r157090
2010-02-26 06:52:01 -08:00
Richard Guenther 2f81659160 re PR tree-optimization/43188 ("error: alignment of array elements is greater than element size")
2010-02-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43188
	* tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
	vector types of over-aligned element type.

	* gcc.c-torture/compile/pr43188.c: New testcase.

From-SVN: r157088
2010-02-26 13:34:38 +00:00
H.J. Lu 7ce321b3e3 Correct expand_vec_perm_blend in i386.c for V8HImode merge.
gcc/

2010-02-26  Uros Bizjak  <ubizjak@gmail.com>

	PR target/43175
	* config/i386/i386.c (expand_vec_perm_blend): Use correct
	operands in V8HImode subregs.  Fix operand order in VEC_MERGE
	rtx.

gcc/testsuite/

2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/43175
	* gcc.target/i386/vperm-v4si-2-sse4.c: New.

From-SVN: r157087
2010-02-26 05:18:17 -08:00
Jan Kratochvil b55b184a4a * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
From-SVN: r157086
2010-02-26 11:54:26 +00:00
Jakub Jelinek 6764d92cee Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
* Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
	* var-tracking.c: Include diagnostic.h.
	(debug_dv): New function.
	(dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.

From-SVN: r157085
2010-02-26 12:03:46 +01:00
Jakub Jelinek 5a30996511 re PR debug/43160 (Wrong debug info in guality/vla-1.c (f1))
PR debug/43160
	* var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
	(add_value_chain, add_value_chains, remove_value_chain,
	remove_value_chains): Handle DEBUG_EXPRs.
	(check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.

From-SVN: r157084
2010-02-26 12:02:39 +01:00
Jakub Jelinek e7140c8da2 re PR debug/43161 (Wrong debug info in guality/vla-1.c (f2))
PR debug/43161
	* regcprop.c (struct queued_debug_insn_change): New type.
	(struct value_data_entry): Add debug_insn_changes field.
	(struct value_data): Add n_debug_insn_changes field.
	(debug_insn_changes_pool): New variable.
	(free_debug_insn_changes, apply_debug_insn_changes,
	cprop_find_used_regs_1, cprop_find_used_regs): New functions.
	(kill_value_one_regno): Call free_debug_insn_changes if needed.
	(init_value_data): Clear debug_insn_changes and n_debug_insn_changes
	fields.
	(replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
	changes for them.
	(copyprop_hardreg_forward_1): Don't call apply_change_group for
	DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
	changes, call cprop_find_used_regs via note_stores.
	(copyprop_hardreg_forward): When copying vd from predecessor
	which has any queued DEBUG_INSN changes, make sure the pointers are
	cleared.  At the end call df_analyze and then if there are any
	DEBUG_INSN changes queued at the end of some basic block for still
	live registers, apply them.
	(pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.

From-SVN: r157083
2010-02-26 12:01:28 +01:00
Uros Bizjak 894b386f8e config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
* config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
	(arm*-*-*): Ditto.

From-SVN: r157082
2010-02-26 09:17:00 +01:00
H.J. Lu 3fd7763031 Set default arch/cpu for i[34567]86-*-*|x86_64-*-* targets.
2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
	targets.  Set the default with_cpu/with_arch from arch/cpu.
	Allow x86-64 and native for with_cpu/with_arch.

From-SVN: r157081
2010-02-25 18:37:40 -08:00
Nicolas Benoit 4b9c607584 ebitmap.c: Change calls to verify_popcount with calls to sbitmap_verify_popcount.
2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>

	* ebitmap.c: Change calls to verify_popcount with calls to
	sbitmap_verify_popcount.
	(ebitmap_clear_bit): Fixed map->cacheindex test and
	map>cache update when bit clearing results in an empty
	element.

From-SVN: r157080
2010-02-25 20:51:27 -05:00
Michael Meissner 2fcd8e02d6 Fix PR target/43154
From-SVN: r157074
2010-02-25 22:26:55 +00:00
Gerald Pfeifer f61ae06585 extend.texi (Symbol-Renaming Pragmas): Fix spelling of #pragma extern_prefix.
* doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
	#pragma extern_prefix.

From-SVN: r157072
2010-02-25 20:48:57 +00:00
Jakub Jelinek 0679656478 re PR debug/43166 (ICE in simplify_subreg on fortran code)
PR debug/43166
	* cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
	BLKmode, assert op0 is a MEM and just adjust its mode.

	* trans-common.c (build_common_decl): Also update DECL_MODE,
	and DECL_SIZE when encountering a larger common block and call
	layout_decl.

	* gfortran.dg/debug/pr43166.f: New test.

From-SVN: r157063
2010-02-25 11:50:24 +01:00
Jakub Jelinek 7d5d39bb9d re PR debug/43165 (ice in simplify_subreg, at simplify-rtx.c:5146)
PR debug/43165
	* cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
	if bitpos isn't multiple of mode's bitsize.

	* gcc.dg/torture/pr43165.c: New test.

From-SVN: r157062
2010-02-25 11:41:52 +01:00
Manuel López-Ibáñez 124e0d274a c.opt (-ftemplate-depth=): New.
2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* c.opt (-ftemplate-depth=): New.
	(-ftemplate-depth-): Deprecate.
	* optc-gen.awk: Handle -ftemplate-depth=.
	* opth-gen.awk: Likewise.
	* c-opts.c (c_common_handle_option): Likewise.
	* doc/invoke.texi (-ftemplate-depth-): Replace with
	-ftemplate-depth=.
cp/
	* pt.c (push_tinst_level): Replace -ftemplate-depth- with 
	-ftemplate-depth=.

From-SVN: r157054
2010-02-24 20:41:01 +00:00
Jason Merrill 0e7750a010 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
From-SVN: r157053
2010-02-24 14:26:45 -05:00
Rainer Orth c26238f4ed cfg.c (alloc_aux_for_block): Remove inline.
* cfg.c (alloc_aux_for_block): Remove inline.
	(alloc_aux_for_edge): Likewise.

From-SVN: r157045
2010-02-24 15:27:46 +00:00
Rainer Orth bef64e0fad * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
From-SVN: r157043
2010-02-24 14:40:32 +00:00
Rainer Orth 68ba2afe7c sol2.h (NO_DBX_BNSYM_ENSYM): Define.
* config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
	* config/i386/sol2-gas.h: New file.
	* config.gcc (i[34567]86-*-solaris2*): Use it.

From-SVN: r157042
2010-02-24 13:57:20 +00:00
Manuel López-Ibáñez 2d2e923fc1 re PR c/43128 (c-c++-common/pr41779.c doesn't work)
2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/43128
	* c-typeck.c (ep_convert_and_check): New.
	(build_conditional_expr): Use it.
	(build_binary_op): Likewise.
testsuite/	
	* c-c++-common/pr41779.c: Update.

From-SVN: r157040
2010-02-24 13:09:37 +00:00
Jakub Jelinek a46368b25d * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
From-SVN: r157033
2010-02-24 11:51:15 +01:00
Jakub Jelinek 2e9577924b re PR debug/43150 (Proper debug info for debugging VLAs)
PR debug/43150
	* gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
	bounds even for -O+.
	* var-tracking.c (track_expr_p): If !need_rtl, don't mandate
	expr needs to have DECL_NAME set.

	* gcc.dg/guality/vla-1.c: New test.

From-SVN: r157032
2010-02-24 11:50:13 +01:00
Nick Clifton 12a54f548b mep.c: Include gimple.h.
* config/mep/mep.c: Include gimple.h.
        (mep_function_uses_sp): Delete unused function.
        (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
        parameters.  Use unsigned integers to count args.  Return a
        NULL_RTX instead of an error_mark_node.  Toidy up formatting.

From-SVN: r157031
2010-02-24 09:39:57 +00:00
Jakub Jelinek 8f40ad5019 re PR target/43107 (ICE: SIGSEGV with -O3 -mavx)
PR target/43107
	* config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
	greater or equal to nelt instead of 2 * nelt.
	(expand_vec_perm_1): When op0 and op1 are equal, mask indexes
	with nelt - 1.

	* gcc.target/i386/pr43107.c: New test.

From-SVN: r157022
2010-02-23 23:52:20 +01:00
Jason Merrill 3adcf52c82 re PR debug/42800 (VLA DW_AT_upper_bound is no longer emitted)
PR debug/42800
	* cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
	in cfun->local_decls even if they have register types.

From-SVN: r157014
2010-02-23 13:32:09 -05:00
Jason Merrill a3b20e90b1 re PR c++/42837 (FAIL: g++.dg/abi/packed1.C execution test)
PR c++/42837
	* stor-layout.c (place_field): Don't warn about unnecessary DECL_PACKED
	if the type is packed.

From-SVN: r157013
2010-02-23 13:31:58 -05:00
Jakub Jelinek 5ead99faad re PR target/43139 (ICE in output_operand)
PR target/43139
	* config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
	GOTOFF relocs, even when the base reg isn't pic pointer.

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

From-SVN: r157011
2010-02-23 18:05:56 +01:00
Michael Matz 2a8e30fbf3 re PR debug/43077 (VTA issues caused by SSA expand)
PR debug/43077
	* cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
	(expand_gimple_basic_block): Generate and use debug temps if there
	are debug uses left after the last real use of TERed ssa names.
	Unlink debug immediate uses when they are expanded.

testsuite/
	PR debug/43077
	* gcc.dg/guality/pr43077-1.c: New test.

From-SVN: r157009
2010-02-23 16:41:52 +00:00
Manuel López-Ibáñez 38170f34f3 re PR target/43123 (wrong value for march or mtune produces confusing output)
2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR 43123
	* config/i386/i386.c (override_options): Reorganise to provide
	better error messages.
testsuite/
	* gcc.dg/march.c: New.
	* gcc.dg/march-generic.c: New.
	* gcc.dg/mtune.c: New.

From-SVN: r157007
2010-02-23 15:51:42 +00:00
Sebastian Pop 0f9c8f569d Add ChangeLog entries.
From-SVN: r156999
2010-02-23 13:00:21 +00:00
Manuel López-Ibáñez a98c281937 re PR c++/43126 ("at this point in file" warnings are upside down)
2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c++/43126
	* c-typeck.c (convert_arguments): Print declaration location.
	* c-common.c (validate_nargs): Rename as
	builtin_function_validate_nargs.
	(check_builtin_function_arguments): Update.
cp/
	* typeck.c (convert_arguments): Update error message.
	
testsuite/
	* gcc.dg/cleanup-1.c: Update.
	* gcc.dg/func-args-1.c: Update.
	* gcc.dg/format/sentinel-1.c: Update.
	* g++.old-deja/g++.jason/scoping10.C: Update.
	* g++.old-deja/g++.ns/lookup5.C: Update.
	* g++.dg/ext/cleanup-1.C: Update.
	* g++.dg/parse/varmod1.C: Update.
	* g++.dg/parse/error33.C: Update.
	* g++.dg/expr/call3.C: Update.
	* g++.dg/func-args-1.C: New.

From-SVN: r156979
2010-02-22 22:30:45 +00:00
Richard Guenther ea2edf88ee re PR middle-end/43045 ([lto] ICE non-trivial conversion at assignment)
2010-02-22  Richard Guenther  <rguenther@suse.de>

	PR lto/43045
	* tree-inline.c (declare_return_variable): Use the type of
	the call stmt lhs if available.

	* gfortran.dg/lto/20100222-1_0.f03: New testcase.
	* gfortran.dg/lto/20100222-1_1.c: Likewise.

From-SVN: r156966
2010-02-22 15:53:27 +00:00
Duncan Sands 669887fc19 If a pass occurs in several pass lists...
If a pass occurs in several pass lists, like pass_cleanup_eh which occurs in
both all_small_ipa_passes and all_passes, make sure all instances of it are
considered for replacement/insertion when ref_pass_instance_number is zero,
not just the instance in the first pass list.

From-SVN: r156961
2010-02-22 14:18:10 +00:00
Richard Guenther 9efc83f4ba re PR middle-end/42749 (-O2 and verify_stmts failed again)
2010-02-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/42749
	* tree-tailcall.c (adjust_return_value_with_ops): Drop update
	parameter.  Do arithmetic in the original type.
	(update_accumulator_with_ops): Likewise.
	(adjust_accumulator_values): Adjust.

	* gcc.c-torture/compile/pr42749.c: New testcase.

From-SVN: r156960
2010-02-22 14:09:26 +00:00
Andreas Krebbel 0a88561f0a s390.md ("movqi"): Re-add the mem->mem alternative.
2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
	(QI to BLKmode splitter): New splitter.

From-SVN: r156959
2010-02-22 14:05:16 +00:00
H.J. Lu 5c91eb02f6 Turn on X86_TUNE_INTER_UNIT_MOVES for Atom.
2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (initial_ix86_tune_features): Turn on
	X86_TUNE_INTER_UNIT_MOVES for m_ATOM.

From-SVN: r156957
2010-02-22 05:44:24 -08:00