aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-10-21 16:26:42 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-10-21 16:26:42 +0000
commitec97b83a1c851a56f911beda42d5ddb3806d5353 (patch)
tree3fddfaa0efb9ac257d1b6bce54722adc4f7519ce /gcc/function.c
parentec8aac6f55cd0f5e73e57d58f373fc3a0385bcac (diff)
downloadgcc-ec97b83a1c851a56f911beda42d5ddb3806d5353.zip
gcc-ec97b83a1c851a56f911beda42d5ddb3806d5353.tar.gz
gcc-ec97b83a1c851a56f911beda42d5ddb3806d5353.tar.bz2
function.c (record_insns, contains): Always declare and define.
* function.c (record_insns, contains): Always declare and define. (record_insns): Mark with ATTRIBUTE_UNUSED. From-SVN: r30121
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/function.c b/gcc/function.c
index c84b6d6..93ed064 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -263,10 +263,10 @@ static tree round_down PROTO((tree, int));
static rtx round_trampoline_addr PROTO((rtx));
static tree blocks_nreverse PROTO((tree));
static int all_blocks PROTO((tree, tree *));
-#if defined (HAVE_prologue) || defined (HAVE_epilogue)
-static int *record_insns PROTO((rtx));
+/* We always define `record_insns' even if its not used so that we
+ can always export `prologue_epilogue_contains'. */
+static int *record_insns PROTO((rtx)) ATTRIBUTE_UNUSED;
static int contains PROTO((rtx, int *));
-#endif /* HAVE_prologue || HAVE_epilogue */
static void put_addressof_into_stack PROTO((rtx, struct hash_table *));
static void purge_addressof_1 PROTO((rtx *, rtx, int, int,
struct hash_table *));
@@ -6424,7 +6424,6 @@ expand_function_end (filename, line, end_bindings)
/* Create an array that records the INSN_UIDs of INSNS (either a sequence
or a single insn). */
-#if defined (HAVE_prologue) || defined (HAVE_epilogue)
static int *
record_insns (insns)
rtx insns;
@@ -6486,7 +6485,6 @@ prologue_epilogue_contains (insn)
return 1;
return 0;
}
-#endif /* HAVE_prologue || HAVE_epilogue */
/* Generate the prologue and epilogue RTL if the machine supports it. Thread
this into place with notes indicating where the prologue ends and where