aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)Author
2004-04-27This commit was manufactured by cvs2svn to create tagapple/gcc-1744no-author
'apple-gcc-1744'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-1744@81232 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-20 PR optimization/14643Diego Novillo
* tree-ssa-alias.c (group_aliases_into): Don't add a variable to its own may-alias set. (create_alias_map_for): New. (setup_pointers_and_addressables): Call it. Fix allocation of AI->ADDRESSABLE_VARS and AI->POINTERS. If there are no addressable variables and more than one dereferenced pointers, add type tags to the ADDRESSABLE_VARS array. (get_tmt_for): Add comment about using alias set equality when checking for existing tags. testsuite/ChangeLog.tree-ssa: * gcc.dg/tree-ssa/20040319-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79728 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-19 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Fix typo.Jeff Law
Eliminate unnecessary test of VAL. * gcc.c-torture/execute/20040319-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79706 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-182004-03-18 Mark Mitchell <mark@codesourcery.com>Mark Mitchell
* c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a local scope. * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and post-increments/decrements. 2004-03-18 Mark Mitchell <mark@codesourcery.com> * gcc.dg/local1.c: New test. * gcc.dg/debug/dwarf2/c99-typedef1.c: New test. Bring over from mainline. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79649 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-18This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79648 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-17 * gcc.c-torture/compile/20040317-1.c: New test.Jeff Law
* gcc.c-torture/compile/20040317-2.c: New test. * gcc.c-torture/compile/20040317-3.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79605 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-17 PR optimization/14511Diego Novillo
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not ignore read-only variables. (may_alias_p): Fix pointer-to-var calculation when 'var' is an array. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79599 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-13 PR optimization/14553Diego Novillo
* gcc.dg/tree-ssa/20040313-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79449 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-12 PR 14204Richard Henderson
* tree-ssa.c (warn_uninit): Don't warn for hard register variables. * gcc.dg/uninit-H.c: New. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79365 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-11 * gcc.dg/tree-ssa/20040305-1.c: Change a constant to fit in aKazu Hirata
16-bit int. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79340 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-11 * tree-nested.c (convert_nonlocal_reference): Clear TREE_INVARIANTRichard Henderson
on modified ADDR_EXPRs. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79291 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-102004-03-10 Andrew Pinski <apinski@apple.com>Andrew Pinski
PR c/14475 * gcc.dg/pr14475.c: New test. 2004-03-10 Andrew Pinski <apinski@apple.com PR c/14475 * c-decl.c (check_bitfield_type_and_width): Check for null lang_type_specific when check the precision of an enum. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79272 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-09 * tree-flow-inline.h (may_propagate_copy): Do not allow propagation ofJeff Law
a constant for a virtual operand. * gcc.c-torture/compile/20040309-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79195 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-08Mainline merge as of 2004-03-07.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79121 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-08This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79120 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-05Mainline merge as of 2004-03-05.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78997 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-05This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78996 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-05 * gcc.dg/tree-ssa/20040305-1.c: New test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78988 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-04 * tree-ssa-dce.c (remove_dead_stmt): Redirect an existing edgeJeff Law
rather than deleting the old ones and creating a new one when removing a dead conditional. * testsuite/gcc.c-torture/compile/20040304-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78941 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-04Mainline merge as of 2004-03-03.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78914 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-04This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78913 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-04 * gcc.c-torture/20040303-1.c: New test.Jeff Law
* gcc.c-torture/20040303-2.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78887 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-03 * testsuite/gcc.dg/tree-ssa/tailrecursion-5.c: New test.Zdenek Dvorak
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78816 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-03 * testsuite/gcc.dg/tree-ssa/20030815-1.c: Expect 1 type cast.Diego Novillo
* testsuite/gcc.dg/tree-ssa/ssa-dce-1.c: Check after aliasing. * testsuite/gcc.dg/tree-ssa/ssa-dce-2.c: Likewise. * testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78810 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-02 PR optimization/14266Diego Novillo
* tree-ssa-alias.c (create_global_var): Mark GLOBAL_VAR for renaming. testsuite/ChangeLog.tree-ssa * gcc.dg/tree-ssa/20040302-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78774 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-02Merge to tree-ssa-20020619-merge-20040227.Richard Henderson
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78772 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-02This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78771 138bc75d-0d04-0410-961f-82ee72b054a4
2004-03-01 * tree-ssa-dom.c (true_false_expr_hash): Update comments slightly.Jeff Law
(true_false_expr_eq): Update comments slightly. Avoid using operand_equal_p, instead check the code and operands directly. * gcc.dg/tree-ssa/20030211-1.c: Update. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78702 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-28Fix test contributor's last name.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78619 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-27 * gcc.dg/warn-1.c: Update warning line.Richard Henderson
* gcc.dg/tree-ssa/20030730-1.c: Declare ggc_alloc. * gcc.dg/tree-ssa/20030730-2.c: Likewise. * gcc.dg/tree-ssa/20030917-2.c: Fix int->pointer cast. * gcc.dg/tree-ssa/20030922-2.c: XFAIL. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78584 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-27 PR optimization/14312Diego Novillo
* tree-pretty-print.c (dump_generic_node): Mark tail calls. * tree-ssa-alias.c (compute_may_aliases): Restore call to dump_referenced_vars. (compute_points_to_and_addr_escape): If the address of a variable V is stored into a non-pointer variable, mark V as call-clobbered. * tree-tailcall.c (suitable_for_tail_opt_p): Check for call-clobbered instead of TREE_ADDRESSABLE. Ignore memory tags. (optimize_tail_call): Add newline to dump output. testsuite/ChangeLog.tree-ssa * gcc.dg/tree-ssa/tailcall-2.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78572 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-27 * gcc.c-torture/execute/20040208-2.x: New file.Richard Sandiford
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78557 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-26New test.Richard Henderson
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78491 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-26This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78490 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-20 * tree-ssa-ccp.c (substitute_and_fold): Also mark new varsRichard Henderson
if fold_stmt was successful. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78181 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-20 * Makefile.in (tree-ssa-loop.o): Add tree-inline.h dependency.Zdenek Dvorak
* basic-block.h (struct reorder_block_def): Moved from cfglayout.h. (alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): New. * bb-reorder.c (copy_bb): Use cfghooks for bb duplication. * cfg.c (rbi_pool): New variable. (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New functions. * cfghooks.c (can_duplicate_block_p, duplicate_block): New functions. * cfghooks.h (struct cfg_hooks): Add can_duplicate_block_p and duplicate_block hooks. (can_duplicate_block_p, duplicate_block): Declare. * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed. (fixup_reorder_chain): Use initialize_bb_rbi. (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized. (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions. (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication. * cfglayout.h (typedef struct reorder_block_def): Moved to basic_block.h. (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration removed. * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi. (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p and duplicate_block fields. * common.opt (ftree-ch): Add. * flags.h (flag_tree_ch): Declare. * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test, copy_loop_headers): Removed. * loop-unswitch.c (unswitch_loop): Use cfghooks for bb duplication. * opts.c (decode_options): Enable flag_tree_ch at -O1. (common_handle_option): Handle -ftree_ch. * rtl.h (copy_loop_headers): Declaration removed. * timevar.def (TV_TREE_CH): New. * toplev.c (flag_tree_ch): New. (rest_of_compilation): Do not call copy_loop_headers. * tracer.c (tail_duplicate): Use cfghooks for bb duplication. * tree-cfg.c (build_tree_cfg): Call alloc_rbi_pool. (create_bb): Call initialize_bb_rbi. (delete_tree_cfg): Call free_rbi_pool. (tree_duplicate_bb): Hookize. (tree_can_duplicate_bb_p): New. (tree_cfg_hooks): Fill in can_duplicate_block_p and duplicate_block fields. * tree-flow.h (tree_duplicate_bb): Declaration removed. * tree-optimize.c (init_tree_optimization_passes): Add pass_ch. * tree-pass.h (pass_ch): Declare. * tree-ssa-loop.c: Include tree-inline.h. (call_expr_p, should_duplicate_loop_header_p, mark_defs_for_rewrite, duplicate_blocks, copy_loop_headers, gate_ch): New functions. (pass_ch): New. * doc/invoke.texi (-fdump-tree-ch, -ftree-ch): Document. * gcc.dg/tree-ssa/copy-headers.c: New test. * gcc.dg/tree-ssa/20030711-1.c: Update outcome. * gcc.dg/tree-ssa/20030714-2.c: Ditto. * gcc.dg/tree-ssa/20030807-3.c: Ditto. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78165 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-19 * gcc.c-torture/compile/20040219-1.c: New test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@78107 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-16 * gcc.dg/tree-ssa/20030807-4.c: Remove bogus test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77934 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-16 * gcc.dg/tree-ssa/20040211-1.c: New test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77933 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-16 * gcc.dg/tree-ssa/20040216-1.c: New test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77930 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-15 PR gfortran/13433Paul Brook
* trans-decl.c (gfc_build_function_decl) For functions returning CHARACTER*(*) pass an extra length argument, following g77 calling conventions. * trans-types.c (gfc_get_function_type) Ditto. * trans-expr.c (gfc_conv_function_call) Ditto. * gfortran.fortran-torture/execute/straret.f90: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77856 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-15 * gcc.c-torture/execute/20030120-3.c: Remove duplicate of 920415-1.c.Richard Henderson
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77840 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-13Mainline merge as of 2004-02-11.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77756 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-12This commit was manufactured by cvs2svn to create branchno-author
'tree-ssa-20020619-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77725 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-11 * gcc.dg/tree-ssa/20040210-1.c: New test.Jeff Law
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77656 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-11XFAILSteven Bosscher
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77645 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-11 * gcc.c-torture/execute/20000603-1.c: Resolve alias ambiguity andDiego Novillo
point to DR#236. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77633 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-10 * langhooks.h (lang_hooks_for_functions): Add missing_noreturn_ok_p.Richard Henderson
* langhooks-def.h, c-lang.c, objc/objc-lang.c (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P): New. * c-objc-common.c (c_missing_noreturn_ok_p): Return bool. (c_objc_common_init): Don't set lang_missing_noreturn_ok_p. * c-tree.h (c_missing_noreturn_ok_p): Update decl. * flow.c (lang_missing_noreturn_ok_p): Remove. cp/ * cp-lang.c (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P): New. * cp-tree.h (cp_missing_noreturn_ok_p): Declare. * decl.c (cp_missing_noreturn_ok_p): Export. (cxx_init_decl_processing): Don't set lang_missing_noreturn_ok_p. * flow.c (check_function_return_warnings): Move to tree-cfg.c. * toplev.c (rest_of_compilation): Don't call it. * tree-cfg.c (execute_warn_function_return): Move from flow.c, rename, update for tree vs rtl. (pass_warn_function_return): New. * tree-pass.h (pass_warn_function_return): Declare it. * tree-optimize.c (init_tree_optimization_passes): Run it. * function.h (struct function): Remove x_clobber_return_insn. * function.c (free_after_compilation): Don't set it. (expand_function_end): Likewise. testsuite/ * gcc.dg/noreturn-1.c: Adjust line numbers on warnings. * gcc.dg/noreturn-4.c: Likewise. * gcc.dg/noreturn-7.c: Likewise. Adjust warnings for changes to tail-call optimizations. * gcc.dg/return-type-3.c: Turn on optimization. * gcc.dg/uninit-6.c: Adjust line numbers on warnings. * gcc.dg/uninit-8.c: XFAIL. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77580 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-09 * gfortran.fortran-torture/execute/specifics.f90: Fix mod type.Feng Wang
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77551 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-09 * gcc.dg/tree-ssa/20040209-2.c: New test.Zdenek Dvorak
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77545 138bc75d-0d04-0410-961f-82ee72b054a4