Commit Graph

98830 Commits

Author SHA1 Message Date
Shujing Zhao
894e2652e1 toplev.h (inform_n, error_n): Declare.
gcc/
2010-03-01  Marco Poletti  <poletti.marco@gmail.com> 

        * toplev.h (inform_n, error_n): Declare.
        * diagnostic.c (inform_n, error_n): New function.

gcc/cp/
2010-03-01  Marco Poletti  <poletti.marco@gmail.com>

        * pt.c (redeclare_class_template): Use error_n and inform_n.

gcc/po
2010-03-01  Shujing Zhao  <pearly.zhao@oracle.com>

        * exgettext: Handle the functions that end with _n.

From-SVN: r157134
2010-03-01 09:56:41 +00:00
Tobias Burnus
fef06326e1 re PR fortran/43199 ([OOP] ICE when reading module file: find_array_spec(): Component not found)
2010-03-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43199
        * resolve.c (find_array_spec): Handle REF_COMPONENT with
        CLASS components.

2010-03-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43199
        * gfortran.dg/module_read_2.f90: New test.

From-SVN: r157133
2010-03-01 10:23:35 +01:00
Jakub Jelinek
6c6366f651 cfgexpand.c (expand_used_vars): If an artificial non-ignored var has no rtl yet when processing local_decls...
* cfgexpand.c (expand_used_vars): If an artificial non-ignored var
	has no rtl yet when processing local_decls, queue it and recheck
	if deferred stack allocation hasn't assigned it rtl.

From-SVN: r157132
2010-03-01 08:03:22 +01:00
GCC Administrator
8026c68cce Daily bump.
From-SVN: r157131
2010-03-01 00:16:50 +00:00
Kaz Kojima
826159e51b sh.c (unspec_bbr_uid): New.
* config/sh/sh.c (unspec_bbr_uid): New.
	(gen_block_redirect): Use it instead of INSN_UID.
	(gen_far_branch): Likewise.

From-SVN: r157128
2010-02-28 23:23:50 +00:00
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
Mark Mitchell
2a3dbebf6c re PR c++/42748 (warnings about 'mangling of 'va_list' has changed in GCC 4.4' not suppressed in sytem headers)
2010-02-27  Mark Mitchell  <mark@codesourcery.com>

	PR c++/42748
	* cp-tree.h (push_tinst_level): Declare.
	(pop_tinst_level): Likewise.
	* pt.c (push_tinst_level): Give it external linkage.
	(pop_tinst_level): Likewise.
	* mangle.c (mangle_decl_string): Set the source location to that
	of the decl while mangling.

2010-02-27  Mark Mitchell  <mark@codesourcery.com>

	PR c++/42748
	* g++.dg/abi/mangle11.C: Adjust mangling warning locations.
	* g++.dg/abi/mangle12.C: Likewise.
	* g++.dg/abi/mangle20-2.C: Likewise.
	* g++.dg/abi/mangle17.C: Likewise.
	* g++.dg/template/cond2.C: Likewise.
	* g++.dg/template/pr35240.C: Likewise.

From-SVN: r157124
2010-02-28 17:07:54 +00:00
Tobias Burnus
dfd65514fe re PR fortran/43205 (-finit-local-zero and -fno-automatic used together with large 2-dim variables take too long to compile)
2010-02-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43205
        * trans-expr.c (is_zero_initializer_p): Move up in the file.
        (gfc_conv_initializer): Handle zero initializer as special case.

From-SVN: r157123
2010-02-28 17:16:22 +01:00
Gerald Pfeifer
aad16db913 references.html: Adjust link to SGI's STL site.
* doc/html/ext/pb_ds/references.html: Adjust link to SGI's STL
	site.

From-SVN: r157122
2010-02-28 12:57:16 +00: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
Paolo Carlini
bea9840ef1 hash-long-double-aux.cc (hash<long double>:: operator()(long double)): Hash both -0 and +0 to 0.
2010-02-28  Paolo Carlini  <paolo.carlini@oracle.com>

       * src/hash-long-double-aux.cc (hash<long double>::
       operator()(long double)): Hash both -0 and +0 to 0.

From-SVN: r157120
2010-02-28 10:37:04 +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
GCC Administrator
d022747d9f Daily bump.
From-SVN: r157117
2010-02-28 00:17:01 +00: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
Kaz Kojima
812be315ca packed1.C: Expect warning on the SH.
* g++.dg/abi/packed1.C: Expect warning on the SH.

From-SVN: r157113
2010-02-27 22:14:51 +00:00
Simon Martin
baae602ec0 re PR c++/42054 (ICE with invalid template parameter)
gcc/cp/

2010-02-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/42054
        * pt.c (redeclare_class_template): Return false if there are erroneous
        template parameters.

gcc/testsuite/

2010-02-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/42054:
	* g++.dg/parse/error37.C: New test.

From-SVN: r157112
2010-02-27 19:21:39 +00:00
Manuel López-Ibáñez
8416709431 re PR c/24577 (diagnostic informative note labelled "error")
2010-02-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/24577
	PR c/43192
	* gcc.dg/pr8927-1.c: Match new note.
	* gcc.dg/990506-0.c: Likewise.
	* gcc.dg/gomp/flush-2.c: Likewise.
	* gcc.dg/gomp/atomic-5.c: Likewise.
	* gcc.dg/gomp/pr34607.c: Likewise.
	* gcc.dg/pr35746.c: Likewise.
	* gcc.dg/cpp/pragma-1.c: Likewise.
	* gcc.dg/cpp/pragma-2.c: Likewise.
	* gcc.dg/pr41842.c: Likewise.
	* gcc.dg/noncompile/20040629-1.c: Likewise.
	* objc.dg/private-1.m: Likewise.

From-SVN: r157111
2010-02-27 17:48:02 +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
Tobias Burnus
cea2d589bd re PR fortran/43185 ([F2008] Implicit SAVE in MODULEs)
2010-02-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43185
        * resolve.c (resolve_fl_variable_derived): Imply SAVE
        for module variables for Fortran 2008.

2010-02-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43185
        * gfortran.dg/default_initialization_1.f90: Add -std=f2003.
        * gfortran.dg/default_initialization_4.f90: New test.

From-SVN: r157109
2010-02-27 18:25:05 +01:00
Eric Botcazou
58f1b7061e re PR ada/42253 (run time crash on null for thin pointers)
PR ada/42253
	* gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
	pointer base types are variant of each other.  Apply special treatment
	for null to fat pointer types in all cases.

From-SVN: r157107
2010-02-27 14:27:27 +00:00
GCC Administrator
cb7e3948d0 Daily bump.
From-SVN: r157105
2010-02-27 00:17:05 +00: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
H.J. Lu
482b2e5b35 Add -mno-mmx to x86 in gcc.dg/torture/stackalign/stackalign.exp.
2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/37074:
	* gcc.dg/torture/stackalign/stackalign.exp: Add -mno-mmx to x86.

From-SVN: r157089
2010-02-26 06:49:02 -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
Eric Botcazou
cac1c927c2 * g++.dg/abi/packed1.C: Expect warning on the SPARC.
From-SVN: r157079
2010-02-26 00:21:04 +00:00
GCC Administrator
bac872a35a Daily bump.
From-SVN: r157078
2010-02-26 00:17:00 +00: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
Ed Smith-Rowland
7703dc47e1 random.tcc (operator<<): Use max_digits10.
2010-02-25  Ed Smith-Rowland  <3dw4rd@verizon.net>

	* include/bits/random.tcc (operator<<): Use max_digits10.

From-SVN: r157068
2010-02-25 17:34:30 +00:00
Ed Smith-Rowland
018afad39f limits (__numeric_limits_base::max_digits10, [...]): Add.
2010-02-25  Ed Smith-Rowland  <3dw4rd@verizon.net>

	* include/std/limits (__numeric_limits_base::max_digits10,
	numeric_limits<>::max_digits10, numeric_limits<>::lowest): Add.
	* src/limits.cc: Define max_digits10.
	* config/abi/pre/gnu.ver: Adjust.
	* testsuite/18_support/numeric_limits/dr559.cc: Test max_digits10
	and lowest too.
	* testsuite/18_support/numeric_limits/lowest.cc: New.
	* testsuite/18_support/numeric_limits/max_digits10.cc: New.

From-SVN: r157067
2010-02-25 17:13:04 +00:00
Paolo Carlini
640f8e6548 functional_hash.h (__hash_combine): Remove.
2010-02-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/functional_hash.h (__hash_combine): Remove.
	(_Fnv_hash_base<>::hash(const char*, size_t)): Add defaulted
	hash parameter.
	(_Fnv_hash::__hash_combine(const _Tp&, size_t)): Add.
	* include/std/system_error (hash<system_error>): Adjust.
	* src/compatibility-c++0x.cc (hash<system_error>): Likewise.

From-SVN: r157065
2010-02-25 13:32:52 +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