This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][ARM] Set prologue_use length to 0?


Hi,

While analyzing a PR I noticed this funny insn length for a non-insn
"prologue_use":

@(insn 98 97 99 PR40499.c:22 (unspec:SI [
@            (reg/f:SI 13 sp)
@        ] 6) 341 {prologue_use} (nil))
@ 0x0018
        @ sp needed for prologue        @ 98    prologue_use    [length = 4]


I'm guessing that a comment has no length. Can an ARM maintainer
please see if the patch at the bottom of this mail is OK, and commit
it for me if yes?

Ciao!
Steven


* arm.md (prologue_use): Set length of fake insn to 0.

---- 8< ----
Index: arm.md
===================================================================
--- arm.md	(revision 148472)
+++ arm.md	(working copy)
@@ -10813,10 +10813,11 @@

 (define_insn "prologue_use"
   [(unspec:SI [(match_operand:SI 0 "register_operand" "")]
UNSPEC_PROLOGUE_USE)]
   ""
   "%@ %0 needed for prologue"
+  [(set_attr "length" "0")]
 )


 ;; Patterns for exception handling

---- 8< ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]