1. 25 Jun, 2004 26 commits
  2. 24 Jun, 2004 14 commits
    • c-decl.c (c_in_iteration_stmt, [...]): Remove. · 506e2710
      	* c-decl.c (c_in_iteration_stmt, c_in_case_stmt): Remove.
      	(c_break_label, c_cont_label): New.
      	(start_function): Update initializations.
      	(c_push_function_context): Update saves.
      	(c_pop_function_context): Update restores.
      	* c-parse.in: Update expected conflicts.
      	(stmt_count, compstmt_count): Remove.  Remove all updates.
      	(if_prefix, simple_if, do_stmt_start): Remove.
      	(lineno_labeled_stmt): Remove.
      	(lineno_labels): New.
      	(c99_block_lineno_labeled_stmt): Use it.
      	(lineno_stmt, lineno_label): Don't clear EXPR_LOCUS before calling
      	annotate_with_locus.
      	(select_or_iter_stmt): Replace by ...
      	(condition, if_statement_1, if_statement_2, if_statement,
      	start_break, start_continue, while_statement, do_statement,
      	for_cond_expr, for_incr_expr, for_statement, switch_statement): New.
      	(stmt): Split out ...
      	(stmt_nocomp): ... this.  Use c_finish_bc_stmt, c_finish_goto_label,
      	c_finish_goto_ptr.
      	* c-semantics.c (add_stmt): Don't add line numbers to labels.
      	* c-tree.h: Update prototypes.
      	(struct language_function): Remove x_in_iteration_stmt, x_in_case_stmt;
      	add x_break_label, x_cont_label, x_switch_stack.
      	(c_switch_stack): Declare.
      	* c-typeck.c (c_finish_goto_label, c_finish_goto_ptr): New.
      	(c_finish_return): Return the statement.
      	(c_switch_stack): Rename from switch_stack; export.
      	(if_elt, if_stack, if_stack_space, if_stack_pointer): Remove.
      	(c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_begin_else,
      	c_finish_else): Remove.
      	(c_finish_if_stmt): Rewrite to perform the entire operation.
      	(c_begin_while_stmt, c_finish_while_stmt_cond, c_finish_while_stmt,
      	c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
      	c_finish_for_stmt_incr, c_finish_for_stmt): Remove.
      	(c_finish_loop): New.
      	(c_finish_bc_stmt): New.
      	(c_finish_expr_stmt): Return the statement.  Split out...
      	(c_process_expr_stmt): ... this.  Don't add locus to error marks.
      	* gimplify.c (gimplify_cond_expr): Accept NULL type statements.
      	* tree-gimple.c (is_gimple_stmt): Likewise.
      	* tree-pretty-print.c (dump_generic_node <COND_EXPR>): Likewise.
      	(print_struct_decl): Delete empty compound statement.
      	* objc/objc-act.c (objc_build_throw_stmt): Return the statement.
      	* objc/objc-act.h: Update decl.
      
      From-SVN: r83620
      Richard Henderson committed
    • tree-pretty-print.c (dump_generic_node, [...]): Don't look at TYPE_METHODS… · 6e6e49b1
      tree-pretty-print.c (dump_generic_node, [...]): Don't look at TYPE_METHODS unless RECORD_TYPE or UNION_TYPE.
      
      	* tree-pretty-print.c (dump_generic_node, case TYPE_DECL):
      	Don't look at TYPE_METHODS unless RECORD_TYPE or UNION_TYPE.
      
      From-SVN: r83619
      Richard Kenner committed
    • objc-act.c (build_objc_method_call): Save the lookup_object so we do not call it twice. · c6381771
      2004-06-24  Andrew Pinski  <apinski@apple.com>
      
              * objc-act.c (build_objc_method_call): Save the lookup_object
              so we do not call it twice.
      
      From-SVN: r83618
      Andrew Pinski committed
    • Minor comment and whitespace changes · 500b9b49
      From-SVN: r83617
      Richard Kenner committed
    • tree-ssa-dom.c (real_avail_expr_hash): New. · 940db2c8
              * tree-ssa-dom.c (real_avail_expr_hash): New.
              (tree_ssa_dominator_optimize): Use it in the htab.
      
      From-SVN: r83616
      Richard Henderson committed
    • Minor updating of comments. · c2484a8b
      From-SVN: r83615
      Richard Kenner committed
    • Minor whitespace changes · 7120d046
      From-SVN: r83613
      Richard Kenner committed
    • tree-mudflap.c (mx_register_decls): Add third (type) argument to synthesized __mf_unregister call. · 2be480af
      2004-06-24  Frank Ch. Eigler  <fche@redhat.com>
      
      	* tree-mudflap.c (mx_register_decls): Add third (type) argument
      	to synthesized __mf_unregister call.
      
      From-SVN: r83612
      Frank Ch. Eigler committed
    • Adopt splay trees for object database. · cfbd22d7
      2004-06-24  Frank Ch. Eigler  <fche@redhat.com>
      
      	Adopt splay trees for object database.
      	* Makefile.am: Copy splay-tree.* from libiberty.
      	* Makefile.in, testsuite/Makefile.in: Regenerated.
      	* mf-runtime.h.in (__mf_unregister): Add third parameter (type).
      	* mf-hooks[123].c (*): Add new third parameter to mf_unregister.
      	* mf-impl.h (BEGIN_PROTECT): Remove some trace text.
      	* mf-runtime.c: Rewrite code dealing with object database to use
      	libiberty splay trees.  Remove tree liveness aging option.
      	* testsuite/libmudflap.c/fail18-frag.c: Add volatile flag.
      
      From-SVN: r83611
      Frank Ch. Eigler committed
    • re PR middle-end/15239 (suboptimal mult-by-const expansion cost limit) · 79066482
      
      	PR middle-end/15239
      	* expmed.c (expand_mult): Remove artificial restriction on the
      	maximum cost of a synthetic multiplication sequence.
      
      From-SVN: r83610
      Roger Sayle committed
    • re PR tree-optimization/16115 (double-destruction problem with argument passing… · 3db4a9b4
      re PR tree-optimization/16115 (double-destruction problem with argument passing via temporary (breaks auto_ptr))
      
              PR c++/16115
              * decl.c (grokparms): Give the PARM_DECL reference type if the
              parameter is passed by invisible reference.
      
      From-SVN: r83609
      Jason Merrill committed
    • combine.c (distribute_notes): Don't delete sets to global register variables. · de7c79cc
      2004-06-24  Eric Christopher  <echristo@redhat.com>
      
      	* combine.c (distribute_notes): Don't delete sets to
      	global register variables.
      
      From-SVN: r83606
      Eric Christopher committed
    • i386.md (ffsdi2, clzdi2): New expanders. · d413e3cc
      	* config/i386/i386.md (ffsdi2, clzdi2): New expanders.
      	(ffs_rex64): New splitter.
      	(ffsdi_1, ctzdi2, bsr_rex64): New instructions.
      
      From-SVN: r83604
      Jakub Jelinek committed
    • darwin7.h (MATH_LIBRARY): Remove. · d42093a1
      gcc/ChangeLog:
              * config/darwin7.h (MATH_LIBRARY): Remove.
              (LIB_SPEC): Define.
              * config/darwin.h (MATH_LIBRARY): Define always to empty.
              (LIB_SPEC): Only define if not already defined.
      
      libstdc++/ChangeLog:
      	* linkage.m4: Remove check for libmx.
      	* configure: Regenerate.
      
      libgfortran/ChangeLog:
      	* configure.ac: Remove check for libmx.
      	* configure: Regenerate.
      
      From-SVN: r83603
      Andrew Pinski committed