PR c++/19498
* pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
if substitution of template args did not succeed.
* g++.dg/template/instantiate7.C: New test.
From-SVN: r102818
(ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
config/stormy16/stormy16.c (xstormy16_below100_symbol): Check symbol flags
instead of symbol name mangling.
(xstormy16_asm_output_aligned_common): Likewise. Also simplify code since
the bss100_section cass is the only case where the below100 code will be
triggered.
(xstormy16_encode_section_info): Encode below100 attribute using the
SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling the name.
(xstormy16_strip_name_encoding): Delete - this function is no longer needed.
(TARGET_STRIP_NAME_ENCODING): Undefine.
config/stormy16/stormy16-protos.h: Delete prototype for
xstormy16_strip_name_encoding.
From-SVN: r102810
PR c/23113
* stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
specially. Check for side effects only for COND_EXPR.
* c-typeck.c (c_finish_stmt_expr): Mark statement expression
return with TREE_NO_WARNING.
testsuite:
* gcc.dg/Wunused-value-1.c: New test.
From-SVN: r102805
PR rtl-optimization/23233
* loop.c (combine_movables): Require the modes to be the same.
(move_movables): Remove handling of cases where the replacement
had a different mode to the original.
From-SVN: r102804
PR fortran/18833
PR fortran/20850
* primary.c (match_varspec): If equiv_flag, don't look at sym's
attributes, call gfc_match_array_ref up to twice and don't do any
substring or component processing.
* resolve.c (resolve_equivalence): Transform REF_ARRAY into
REF_SUBSTRING or nothing if needed. Check that substrings
don't have zero length.
* gfortran.dg/equiv_1.f90: New test.
* gfortran.dg/equiv_2.f90: New test.
* gfortran.fortran-torture/execute/equiv_2.f90: New test.
* gfortran.fortran-torture/execute/equiv_3.f90: New test.
* gfortran.fortran-torture/execute/equiv_4.f90: New test.
From-SVN: r102801
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
PR tree-optimization/23128
* tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
subtraction wrap, and set TREE_OVERFLOW if they do.
From-SVN: r102800
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
PR c++/22514
* name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
sorrycount or errorcount are nonzero.
From-SVN: r102799
2005-08-05 Thomas Koenig <Thomas.Koenig@online.de>
* trans-expr.c (gfc_build_builtin_function_decls): Mark
stop_numeric and stop_string as non-returning.
From-SVN: r102782
* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
* gcc.dg/tree-ssa/loop-1.c: For sh*-*-*, look for function calls
instead of constant loads / pool entries.
From-SVN: r102769
* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
* gcc.dg/tree-ssa/loop-1.c: FOr sh*-*-*, look for function calls
instead of constant loads / pool entries.
From-SVN: r102768
PR 21529
* params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
* params.h (SRA_MAX_STRUCTURE_COUNT): New.
* tree-sra.c (decide_block_copy): Use it. Disable element copy
if we'd have to instantiate too many members.
From-SVN: r102761
2005-08-04 Paul Thomas <pault@gcc.gnu.org>
* transfer.c (data_transfer_init): Truncate file in
sequential WRITE when last_record == 0, rather than
current_record. Cures problem on RH9.
From-SVN: r102746
2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
* tree.h (fold_build1): Change to macro and call fold_build1_stat.
(fold_build2): Likewise.
(fold_build3): Likewise.
(fold_build1_stat): New function prototype.
(fold_build2_stat): Likewise.
(fold_build3_stat): Likewise.
* fold-const.c (fold_build1): Rename to ..
(fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
through to build1_stat.
(fold_build2): Rename to ..
(fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
through to build2_stat.
(fold_build3): Rename to ..
(fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
through to build3_stat.
From-SVN: r102743
2005-08-04 Paul Brook <paul@codesourcery.com>
* trans-expr.c (gfc_conv_expr, gfc_conv_expr_type): Update comments.
(gfc_conv_expr_lhs): Fix assertion.
(gfc_conv_expr_val): Merge post block. Set se.expr to new value.
* trans.h: Move and update comments.
From-SVN: r102729
* configure.ac: Don't use GCC_NO_EXECUTABLES or clear
GLIBCXX_IS_NATIVE on Darwin crosses.
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring
the testsuite just because there's no symbol versioning.
* configure: Regenerate.
From-SVN: r102718
* profile.c (branch_prob): Split edges with goto locus on them
to get proper line counts.
* tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
* gcov-1.C: Fix switch counts.
* gcov-4b.c: Likewise.
From-SVN: r102717
2005-08-03 Paul Brook <paul@codesourcery.com>
* function.c (assign_parms): Round current_function_args_size
to PARM_BOUNDARY, not STACK_BOUNDARY.
From-SVN: r102713