summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-09 21:34:48 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-09 21:34:48 +0000
commit2fa45ffba4a736e4cfb23969d8ec0ae28218b871 (patch)
tree58bb012590aec488fde42e0e9d1e32fb5f588290
parent710ed3da8b2ca007d29d00b7b5ad72cf540caf7f (diff)
downloadppe42-gcc-2fa45ffba4a736e4cfb23969d8ec0ae28218b871.tar.gz
ppe42-gcc-2fa45ffba4a736e4cfb23969d8ec0ae28218b871.zip
* pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
on TARGET_64BIT before pic register restore. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56985 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.md8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6d167bc0892..6df6abd98d6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
+ on TARGET_64BIT before pic register restore.
+
2002-09-09 David Edelsohn <edelsohn@gnu.org>
* doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 29fe1c874e6..5da3806eec7 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -7455,6 +7455,12 @@
"flag_pic"
"
{
+ /* On the 64-bit port, we need a blockage because there is
+ confusion regarding the dependence of the restore on the
+ frame pointer. As a result, the frame pointer and pic
+ register restores sometimes are interchanged erroneously. */
+ if (TARGET_64BIT)
+ emit_insn (gen_blockage ());
/* Restore the PIC register using hppa_pic_save_rtx (). The
PIC register is not saved in the frame in 64-bit ABI. */
emit_move_insn (pic_offset_table_rtx, hppa_pic_save_rtx ());
@@ -7466,6 +7472,8 @@
"flag_pic"
"
{
+ if (TARGET_64BIT)
+ emit_insn (gen_blockage ());
/* Restore the PIC register. Hopefully, this will always be from
a stack slot. The only registers that are valid after a
builtin_longjmp are the stack and frame pointers. */
OpenPOWER on IntegriCloud