This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for middle-end/12526 to TREE_SIDE_EFFECTS handling inbuild()
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 03:06:45 -0500
- Subject: Re: PATCH for middle-end/12526 to TREE_SIDE_EFFECTS handling inbuild()
- References: <wvlislncszw.fsf@prospero.boston.redhat.com>
And the tree-ssa specific bit:
2003-11-14 Jason Merrill <jason@redhat.com>
PR middle-end/12526
* tree-cfg.c (call_expr_flags): Move to calls.c.
* tree-flow.h: Move prototype to tree.h.
*** tree-cfg.c.~1~ 2003-11-12 11:02:39.000000000 -0500
--- tree-cfg.c 2003-11-13 16:54:59.000000000 -0500
*************** is_ctrl_altering_stmt (tree t)
*** 2282,2308 ****
}
- /* Return flags associated with the function called by T (see ECF_* in
- rtl.h) */
-
- int
- call_expr_flags (tree t)
- {
- int flags;
- tree decl = get_callee_fndecl (t);
-
- if (decl)
- flags = flags_from_decl_or_type (decl);
- else
- {
- t = TREE_OPERAND (t, 0);
- flags = flags_from_decl_or_type (TREE_TYPE (TREE_TYPE (t)));
- }
-
- return flags;
- }
-
-
/* Return true if T is a computed goto. */
bool
--- 2282,2287 ----
*** tree-flow.h.~1~ 2003-11-12 11:02:39.000000000 -0500
--- tree-flow.h 2003-11-13 16:55:25.000000000 -0500
*************** extern tree first_stmt (basic_block);
*** 449,455 ****
extern tree last_stmt (basic_block);
extern tree *last_stmt_ptr (basic_block);
extern edge find_taken_edge (basic_block, tree);
- extern int call_expr_flags (tree);
extern void remove_useless_stmts (tree *);
extern basic_block tree_split_edge (edge);
extern void bsi_move_before (block_stmt_iterator, block_stmt_iterator);
--- 449,454 ----