OSDN Git Service

* pa.md (return, return_internal): Modify patterns to prevent regrename
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2001 01:12:02 +0000 (01:12 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2001 01:12:02 +0000 (01:12 +0000)
mucking with the return pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38741 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.md

index 5a190cc..d5c2159 100644 (file)
@@ -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.
index d2f7ebf..1d9a3d2 100644 (file)
@@ -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.
 ;; Unconditional and other jump instructions.
 
 (define_insn "return"
-  [(return)]
+  [(return)
+   (use (reg:SI 2))
+   (const_int 0)]
   "hppa_can_use_return_insn_p ()"
   "*
 {
 ;; 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)]
   ""
   "*
 {