PR tree-optimization/35085
* tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
for operand entry oe2 in addition to operand entry oe3 in order to
expose more opportunities for vectorizer sum reduction.
From-SVN: r132168
2008-02-06 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35049
PR c++/35096
* typeck.c (structural_comptypes): Call cp_comptypes.
(comptypes): New; called from the C/C++ common bits to perform
strict checks.
(cp_comptypes): Renamed from comptypes, which is already used,
with a different signature, by the C++ front end.
(build_reinterpret_cast_1): Call cp_comptypes.
(ptr_reasonably_similar): Ditto.
* decl.c (decls_match): Ditto.
* cvt.c (convert_to_reference): Ditto.
* cp-tree.h (same_type_p): Ditto.
(same_or_base_type_p): Ditto.
(comptypes): Rename to cp_comptypes.
* pt.c (canonical_type_parameter): Call cp_comptypes.
2008-02-06 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35049
PR c++/35096
* g++.dg/ext/vector13.C: New.
From-SVN: r132152
* config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
inside the clobber with a match_operand and duplicated operand
number in the constraint.
(ineqbranchsi): Delete redundant comment.
From-SVN: r132143
PR documentation/30330
* doc/invoke.texi (C++ Dialect Options)
(Objective-C and Objective-C++ Dialect Options, Warning Options):
For each warning option -Wfoo that allows -Wno-foo, ensure both
-Wfoo and -Wno-foo are listed in the option index. Fix index
entry of -Wswitch-default, index -Wnormalized= including the
`=', and -Wlarger-than-@var{len} including @var{len}.
From-SVN: r132131
2008-02-05 Tobias Burnus <burnus@net-b.de>
PR fortran/35093
* data.c (gfc_assign_data_value): Only free "size" if
it has not already been freed.
From-SVN: r132128
PR c++/33553
* pt.c (tsubst) <case INTEGER_TYPE>: Don't issue error if max is
value dependent expression.
* g++.dg/template/array19.C: New test.
From-SVN: r132126
* config/i386/i386.md (floatunssisf2): Use
ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
(floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
Macroize expander using MODEF mode iterator.
From-SVN: r132125
2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
PR target/35084
* config/i386/i386.c (ix86_function_sseregparm): Add an arg
to indicate if a message should be generated.
(init_cumulative_args): Updated.
(function_value_32): Likewise.
From-SVN: r132122
2008-02-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34945
* array.c (match_array_element_spec): Remove check for negative
array size.
(gfc_resolve_array_spec): Add check for negative size.
2008-02-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34945
* gfortran.dg/bounds_check_13.f: New test.
From-SVN: r132121
2008-02-05 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35074
* decl2.c (save_template_attributes): When we're modifying the
TYPE_MAIN_VARIANT to add new attributes, be sure to also modify
all of the other variants to add those same attributes. Otherwise,
the main variant will be inconsistent with those other variants.
2008-02-05 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35074
* g++.dg/ext/attrib30.C: New.
From-SVN: r132120
2008-02-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32315
* data.c (gfc_assign_data_value): Add bounds check for array
references.
2008-02-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32315
* gfortran.dg/data_bounds_1.f90: New test.
From-SVN: r132113
PR 33738
* tree-vrp.c (vrp_evaluate_conditional): With
-Wtype-limits, emit a warning when comparing against a
constant outside the natural range of OP0's type.
testsuite/ChangeLog
PR 33738
* testsuite/g++.dg/warn/pr33738.C: New.
From-SVN: r132111
* lib/target-supports.exp (check_effective_target_hard_float): Only
use the preprocessor tests for mips*-*-* and xtensa-*-*. For all
other targets, grep for a call insn in the rtl expand dump for an
add of two doubles.
(target_compile): Support generating rtl dumps as output.
From-SVN: r132102
2008-02-04 Richard Guenther <rguenther@suse.de>
PR middle-end/33631
* expr.c (count_type_elements): Give for unions instead of
guessing.
* gcc.c-torture/execute/pr33631.c: New testcase.
From-SVN: r132096
2008-02-04 Richard Guenther <rguenther@suse.de>
PR java/35035
* decl.c (record_builtin_java_type): Make jboolean a
integer type again where its mode doesn't match that of bool.
From-SVN: r132095
2008-02-04 Richard Guenther <rguenther@suse.de>
PR middle-end/35043
* gimplify.c (gimplify_init_ctor_eval): Convert array indices
to TYPE_DOMAINs base type instead of using bitsizetype here.
* gcc.c-torture/compile/pr35043.c: New testcase.
From-SVN: r132091