This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[4.4, pending commit] Use "ghost" attribute for other MIPS insns
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Jan 2008 10:25:29 +0000
- Subject: [4.4, pending commit] Use "ghost" attribute for other MIPS insns
For the record, I intend to commit this to 4.4. Regression-tested on
mips64-linux-gnu and mipsisa64-elf.
Richard
gcc/
* config/mips/mips.md (loadgp_blockage, blockage): Change type
to "ghost".
Index: gcc/config/mips/mips.md
===================================================================
--- gcc/config/mips/mips.md 2008-01-09 00:46:06.000000000 +0000
+++ gcc/config/mips/mips.md 2008-01-09 00:48:01.000000000 +0000
@@ -4311,9 +4311,9 @@ (define_insn "loadgp_blockage"
[(unspec_volatile [(reg:DI 28)] UNSPEC_BLOCKAGE)]
""
""
- [(set_attr "type" "unknown")
- (set_attr "mode" "none")
- (set_attr "length" "0")])
+ [(set_attr "type" "ghost")
+ (set_attr "mode" "none")
+ (set_attr "length" "0")])
;; Initialize $gp for RTP PIC. Operand 0 is the __GOTT_BASE__ symbol
;; and operand 1 is the __GOTT_INDEX__ symbol.
@@ -5516,9 +5516,9 @@ (define_insn "blockage"
[(unspec_volatile [(const_int 0)] UNSPEC_BLOCKAGE)]
""
""
- [(set_attr "type" "unknown")
- (set_attr "mode" "none")
- (set_attr "length" "0")])
+ [(set_attr "type" "ghost")
+ (set_attr "mode" "none")
+ (set_attr "length" "0")])
(define_expand "epilogue"
[(const_int 2)]