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
* 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
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 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 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-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 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
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 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
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-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
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 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
* 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
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-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 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
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