aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2001-01-06 01:12:02 +0000
committerJeff Law <law@gcc.gnu.org>2001-01-05 18:12:02 -0700
commitd492b0963ab57d52f0caa7b660b20d62b3f39b49 (patch)
tree5c47af8d13623a8f7413da3a7eff9afb0a530df0
parent476e49bde182202f26794b2531a209a0c6432055 (diff)
downloadgcc-d492b0963ab57d52f0caa7b660b20d62b3f39b49.zip
gcc-d492b0963ab57d52f0caa7b660b20d62b3f39b49.tar.gz
gcc-d492b0963ab57d52f0caa7b660b20d62b3f39b49.tar.bz2
pa.md (return, [...]): Modify patterns to prevent regrename mucking with the return pointer.
* pa.md (return, return_internal): Modify patterns to prevent regrename mucking with the return pointer. From-SVN: r38741
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.md9
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a190cc..d5c2159 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * pa.md (return, return_internal): Modify patterns to prevent regrename
+ mucking with the return pointer.
+
2001-01-05 Mike Stump <mrs@wrs.com>
* varasm.c (assemble_name): Ensure we output the stripped name.
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index d2f7ebf..1d9a3d2 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -1,5 +1,5 @@
;;- Machine description for HP PA-RISC architecture for GNU C compiler
-;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
+;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
;; Free Software Foundation, Inc.
;; Contributed by the Center for Software Science at the University
;; of Utah.
@@ -5467,7 +5467,9 @@
;; Unconditional and other jump instructions.
(define_insn "return"
- [(return)]
+ [(return)
+ (use (reg:SI 2))
+ (const_int 0)]
"hppa_can_use_return_insn_p ()"
"*
{
@@ -5482,7 +5484,8 @@
;; epilogues so as not to confuse jump and reorg.
(define_insn "return_internal"
[(return)
- (use (reg:SI 2))]
+ (use (reg:SI 2))
+ (const_int 1)]
""
"*
{