aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-04-28 04:45:12 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-04-28 04:45:12 +0000
commit5251b8b3505902ee4c5f49d8c58c42f2950ba6c1 (patch)
tree097a4454cae0a6804ad11961c8971610f939615b /gcc/alias.c
parent08b7ff1e1dda0bb35741ad8156bf31ba5151ddea (diff)
downloadgcc-5251b8b3505902ee4c5f49d8c58c42f2950ba6c1.zip
gcc-5251b8b3505902ee4c5f49d8c58c42f2950ba6c1.tar.gz
gcc-5251b8b3505902ee4c5f49d8c58c42f2950ba6c1.tar.bz2
always define HAVE_epilogue
gcc/ChangeLog: 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * defaults.h (gen_epilogue): New function. (HAVE_epilogue): Add default definition to false. * alias.c (init_alias_analysis): don't check if HAVE_epilogue is defined. * cfgrtl.c (cfg_layout_finalize): Likewise. * df-scan.c: Likewise. * function.c (thread_prologue_and_epilogue_insns): Likewise. (reposition_prologue_and_epilogue_notes): Likewise. * reorg.c (find_end_label): Likewise. * toplev.c: Likewise. From-SVN: r222506
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 8f48660..7d9a3d9 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -2925,15 +2925,19 @@ init_alias_analysis (void)
{
rtx note, set;
-#if defined (HAVE_prologue) || defined (HAVE_epilogue)
+#if defined (HAVE_prologue)
+ static const bool prologue = true;
+#else
+ static const bool prologue = false;
+#endif
+
/* The prologue/epilogue insns are not threaded onto the
insn chain until after reload has completed. Thus,
there is no sense wasting time checking if INSN is in
the prologue/epilogue until after reload has completed. */
- if (reload_completed
+ if ((prologue || HAVE_epilogue) && reload_completed
&& prologue_epilogue_contains (insn))
continue;
-#endif
/* If this insn has a noalias note, process it, Otherwise,
scan for sets. A simple set will have no side effects