This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove kludge in gimple_call_flags
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 8 Apr 2011 16:34:22 +0200 (CEST)
- Subject: [PATCH] Remove kludge in gimple_call_flags
Now as we don't have to handle removed stmts all the time remove
this kludge.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
Richard.
2011-04-08 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_call_flags): Remove kludge.
Index: gcc/gimple.c
===================================================================
--- gcc/gimple.c (revision 172180)
+++ gcc/gimple.c (working copy)
@@ -1784,16 +1784,7 @@ gimple_call_flags (const_gimple stmt)
if (decl)
flags = flags_from_decl_or_type (decl);
else
- {
- tree t = TREE_TYPE (gimple_call_fn (stmt));
- /* ??? We can end up being called from gimple_set_modified from
- gsi_remove in which case the function being called can
- be a released SSA name. Give up in that case. */
- if (t)
- flags = flags_from_decl_or_type (gimple_call_fntype (stmt));
- else
- flags = 0;
- }
+ flags = flags_from_decl_or_type (gimple_call_fntype (stmt));
if (stmt->gsbase.subcode & GF_CALL_NOTHROW)
flags |= ECF_NOTHROW;