aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-08-06re PR c/23113 (The -Wunused (value computed is not used) option missed an ↵Joseph Myers5-29/+59
important case) 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
2005-08-06re PR rtl-optimization/23233 (Loop optimisation ICE for subreg addresses)Richard Sandiford4-30/+22
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
2005-08-06re PR fortran/18833 (ICE 'missing spec' on integer/char equivalence)Jakub Jelinek9-19/+267
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-06re PR tree-optimization/23128 (VRP fails for unsigned values)James A. Morrison6-3/+109
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-06re PR debug/22514 (ICE in force_decl_die with invalid code after error)James A. Morrison4-0/+27
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-06Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r102792.2
2005-08-05re PR middle-end/21728 (Nonlocal goto from an unused nested function)Richard Henderson3-3/+31
PR 21728 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into FORCED_LABEL labels. From-SVN: r102786
2005-08-05Correct PR#Mark Mitchell1-1/+1
From-SVN: r102785
2005-08-05re PR c++/19063 (ICE on invalid template parameter)Mark Mitchell2-3/+10
* name-lookup.c (pushtag): Remove accidental commit from: 2004-12-21 Mark Mitchell <mark@codesourcery.com> PR c++/19063 * decl.c (grokdeclarator): Return error_mark_node, not void_type_node, to indicate errors. * parser.c (cp_parser_template_parameter_list): Robustify. (cp_parser_template_parameter): Likewise. From-SVN: r102784
2005-08-05trans-expr.c (gfc_build_builtin_function_decls): Mark stop_numeric and ↵Thomas Koenig2-0/+10
stop_string as non-returning. 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
2005-08-05re PR middle-end/23135 (find_reloads_toplev -> find_reloads_subreg_address ↵J"orn Rennecke2-2/+9
uses wrong reload type) PR middle-end/23135 * reload.c (find_reloads_subreg_address): Pass down TYPE unchanged. Change all callers except find_reloads_toplev. From-SVN: r102772
2005-08-05intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.Joern Rennecke1-0/+7
* 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
2005-08-05intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.Joern Rennecke1-1/+5
* 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
2005-08-05builtin-wctype-1.c: Use __WINT_TYPE__ for TEST_TO_WCTYPE.David Edelsohn2-1/+6
* gcc.dg/torture/builtin-wctype-1.c: Use __WINT_TYPE__ for TEST_TO_WCTYPE. From-SVN: r102767
2005-08-05* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.Joern Rennecke1-1/+1
From-SVN: r102766
2005-08-05genattrtab.c (current_alternative_string): Remove.Michael Matz2-48/+16
* genattrtab.c (current_alternative_string): Remove. (SIMPLIFY_ALTERNATIVE): Ditto. (attr_alt_bit_p): Ditto. (alternative_name): Make const char *. (evaluate_eq_attr): Remove use of above things. (simplify_test_exp): Ditto. (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 . (simplify_test_exp <AND>): Correct typo (test 'right' not 'left'). From-SVN: r102765
2005-08-04Fix problem pointed out by Gunther Nikl on gcc list.James E Wilson13-13/+15
* config/ptx4.h, config/sol2.h, config/arm/freebsd.h, config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h, config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h, config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h (LINK_SPEC): Delete useless %{Wl,*:%*} item. From-SVN: r102762
2005-08-04re PR middle-end/21529 (code size regression (+40%) with -Os from GCC-3.4.3 ↵Richard Henderson4-11/+34
to 4.1) 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-05Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r102753.2
2005-08-04re PR middle-end/21291 (can't find a register in class 'GENERAL_REGS' while ↵Richard Henderson3-41/+156
reloading 'asm') PR 21291 * tree-outof-ssa.c (coalesce_asm_operands): New. (coalesce_ssa_name): Use it. Split out ... (coalesce_phi_operands, coalesce_result_decls): ... these. From-SVN: r102751
2005-08-04read-rtl.c (read_quoted_string): Break if EOF.Paul Brook2-1/+5
2005-08-04 Paul Brook <paul@codesourcery.com> * read-rtl.c (read_quoted_string): Break if EOF. From-SVN: r102749
2005-08-04builtin-wctype-1.c: Use __WCHAR_TYPE__ and __WINT_TYPE__ in generated ↵Danny Smith2-17/+37
prototypes if possible. * gcc.dg/torture/builtin-wctype-1.c: Use __WCHAR_TYPE__ and __WINT_TYPE__ in generated prototypes if possible. From-SVN: r102747
2005-08-04Add Ian to function.c ChangeLog entry.David Edelsohn1-0/+1
From-SVN: r102745
2005-08-04tree.h (fold_build1): Change to macro and call fold_build1_stat.Andrew Pinski3-10/+34
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-04function.c (assign_stack_local_1): Do not correct stack slot address if ↵David Edelsohn2-1/+6
allocation size is smaller than mode size. * function.c (assign_stack_local_1): Do not correct stack slot address if allocation size is smaller than mode size. From-SVN: r102742
2005-08-04re PR tree-optimization/22037 (internal compiler error: verify_ssa failed)Diego Novillo5-7/+43
PR 22037 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename. (tree_merge_blocks): Propagate anything allowed by may_propagate_copy. Clarify documentation. * passes.c (execute_todo): If cleanup_tree_cfg invalidated the SSA form, schedule an update if necessary. testsuite/ChangeLog PR 22037 * g++.dg/tree-ssa/pr22037.C: From-SVN: r102740
2005-08-04update-cunroll.c: Fix mistakes in scan-tree-dump-times directive.Richard Henderson2-1/+6
* gcc.dg/tree-ssa/update-cunroll.c: Fix mistakes in scan-tree-dump-times directive. From-SVN: r102739
2005-08-04install.texi (Binaries): Remove broken link to Sinix/Reliant Unix binaries.Gerald Pfeifer2-4/+5
* doc/install.texi (Binaries): Remove broken link to Sinix/Reliant Unix binaries. From-SVN: r102734
2005-08-04* config/crx/crx.h: Inhibit -lm to be linked per default.Paul Woegerer1-0/+3
From-SVN: r102733
2005-08-03re PR middle-end/23221 (-fstack-protector does not protect tail call functions)Richard Henderson4-1/+12
PR 23221 * function.c (stack_protect_epilogue): Export. * tree.h (stack_protect_epilogue): Declare. * calls.c (expand_call): Call it. From-SVN: r102731
2005-08-04trans-expr.c (gfc_conv_expr, [...]): Update comments.Paul Brook3-11/+22
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
2005-08-04Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r102722.2
2005-08-03gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.Eric Christopher3-90/+96
2005-08-03 Eric Christopher <echristo@apple.com> * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all. * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp spec. From-SVN: r102719
2005-08-03profile.c (branch_prob): Split edges with goto locus on them to get proper ↵Jan Hubicka6-4/+50
line counts. * 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-03function.c (assign_parms): Round current_function_args_size to ↵Paul Brook2-3/+7
PARM_BOUNDARY, not STACK_BOUNDARY. 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
2005-08-03* g++.dg/tree-ssa/pr14814.C: xfail test for &this count.Jeff Law2-3/+7
From-SVN: r102712
2005-08-03* config/i386/i386.c (x86_elf_aligned_common)Geoffrey Keating2-0/+7
(x86_output_aligned_bss): Don't try to use symbols that aren't defined. From-SVN: r102711
2005-08-03reload.c (find_reloads_subreg_address): Pass down TYPE unchanged.J"orn Rennecke2-0/+138
gcc: * reload.c (find_reloads_subreg_address): Pass down TYPE unchanged. Change all callers except find_reloads_toplev. gcc/testsuite: * gcc.c-torture/execute/pr23135.c: New test. From-SVN: r102706
2005-08-03re PR tree-optimization/23157 (incorrect sharing of tree nodes regression)Zdenek Dvorak2-0/+7
PR tree-optimization/23157 * tree-scalar-evolution.c (scev_const_prop): Unshare trees before emitting them. From-SVN: r102704
2005-08-03contrib.texi: Mention crx.Paul Woegerer5-1/+83
* doc/contrib.texi: Mention crx. * doc/extend.texi: Document crx extensions. * doc/install.texi: Document crx install. * doc/invoke.texi: Document crx options. * doc/md.texi: Document crx constraints. From-SVN: r102700
2005-08-03re PR tree-optimization/19899 (ICE: tree check: expected real_cst, have ↵Volker Reichelt6-3/+57
integer_cst in const_binop, at fold-const.c:1490 with -ftree-vectorize -msse2) PR tree-optimization/19899 * Makefile.in (tree-scalar-evolution.o): Add real.h. * tree-scalar-evolution.c: Include real.h. (add_to_evolution): Build constant -1 of correct type. * gcc.dg/tree-ssa/scev-1.c: New test. * gcc.dg/tree-ssa/scev-2.c: New test. From-SVN: r102695
2005-08-03re PR target/18582 (Internal compiler error with arrays of type V2DF)Richard Sandiford2-0/+29
PR target/18582 * testsuite/gcc.dg/torture/pr18582-1.c: New test. From-SVN: r102690
2005-08-03cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.Jan Hubicka8-4/+96
* cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag. * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case profile updating for complette unrolling. * loop-unroll.c (peel_loop_completely): Use it. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise. (tree_unroll_loops_completely): Disable code growing unrolling of cold loops. * update-conroll.c: New testcase. * update-conroll-2.c: New testcase. From-SVN: r102687
2005-08-03combine.c (can_change_dest_mode): New function.Paul Brook2-24/+43
2005-08-03 Paul Brook <paul@codesourcery.com> * combine.c (can_change_dest_mode): New function. (try_combine, simplify_set): Use it. From-SVN: r102686
2005-08-03hpux.h (MEMBER_TYPE_FORCES_BLK): Only force TFmode to BLKmode.Eric Botcazou2-8/+7
* config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force TFmode to BLKmode. From-SVN: r102685
2005-08-03install.texi (Specific): Adjust link to openavr.org.Gerald Pfeifer2-7/+11
* doc/install.texi (Specific): Adjust link to openavr.org. (Specific): Remove broken reference to GCC 2.8.1 for OS/2. (Binaries): Adjust HP-UX Porting Center link. (Binaries): Adjust Free Software Foundation ordering link. (Binaries): Remove broken link to Sinix/Reliant Unix binaries. From-SVN: r102683
2005-08-02convert.c (convert_to_integer): Use fold_build1 instead of build1 when ↵Andrew Pinski2-1/+6
converting an integer to an integer. 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu> * convert.c (convert_to_integer): Use fold_build1 instead of build1 when converting an integer to an integer. From-SVN: r102680
2005-08-02combine.c (combine_instructions): Don't use reg_equal/equiv results if the ↵Richard Henderson2-3/+11
mode doesn't match. * combine.c (combine_instructions): Don't use reg_equal/equiv results if the mode doesn't match. From-SVN: r102679
2005-08-02constant_substring.f: New test.David Edelsohn3-0/+27
* gfortran.dg/constant_substring.f: New test. * gfortran.dg/pr22491.f: New test. From-SVN: r102677
2005-08-02re PR fortran/22491 (character array parameters do not reduce)David Edelsohn2-2/+32
PR fortran/22491 * expr.c (simplify_parameter_variable): Do not copy the subobject references if the expression value is a constant. * expr.c (gfc_simplify_expr): Evaluate constant substrings. From-SVN: r102676