aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2008-09-23 15:08:15 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2008-09-23 15:08:15 +0200
commit5c0466b537af28f3cf7aff8d29c884a3c5725459 (patch)
tree713f8a64e6ccf7e7bfd5473edd43495fd7cb70d1 /gcc/ipa-prop.c
parent4a2095e27167b9b55ff84ad4121dfbc4f7342c9f (diff)
downloadgcc-5c0466b537af28f3cf7aff8d29c884a3c5725459.zip
gcc-5c0466b537af28f3cf7aff8d29c884a3c5725459.tar.gz
gcc-5c0466b537af28f3cf7aff8d29c884a3c5725459.tar.bz2
cgraph.c (cgraph_free_edge): Use sizeof(*e).
2008-09-23 Martin Jambor <mjambor@suse.cz> * cgraph.c (cgraph_free_edge): Use sizeof(*e). (cgraph_node_remove_callees): New temporary f. Hold the next item in f when looping. (cgraph_node_remove_callers): Likewise. * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED. (ipa_node_removal_hook): Likewise. * doc/gimple.texi (gimple_copy_call_skip_args): Changed to gimple_call_copy_skip_args and moved to the gimple_call section. * gimple.c (gimple_copy_call_skip_args): Renamed to gimple_call_copy_skip_args. Changed al users. From-SVN: r140590
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index e741feb..16d9bed 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -1108,8 +1108,7 @@ ipa_free_all_node_params (void)
/* Hook that is called by cgraph.c when an edge is removed. */
static void
-ipa_edge_removal_hook (struct cgraph_edge *cs,
- void *data __attribute__ ((unused)))
+ipa_edge_removal_hook (struct cgraph_edge *cs, void *data ATTRIBUTE_UNUSED)
{
/* During IPA-CP updating we can be called on not-yet analyze clones. */
if (VEC_length (ipa_edge_args_t, ipa_edge_args_vector)
@@ -1121,8 +1120,7 @@ ipa_edge_removal_hook (struct cgraph_edge *cs,
/* Hook that is called by cgraph.c when a node is removed. */
static void
-ipa_node_removal_hook (struct cgraph_node *node,
- void *data __attribute__ ((unused)))
+ipa_node_removal_hook (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED)
{
ipa_free_node_params_substructures (IPA_NODE_REF (node));
}