c6x.md (indirect_jump_shadow): Tweak representation to make computed_jump_p return...
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 22 Aug 2011 18:00:33 +0000 (18:00 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 22 Aug 2011 18:00:33 +0000 (18:00 +0000)
* config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
to make computed_jump_p return true.

From-SVN: r177968

gcc/ChangeLog
gcc/config/c6x/c6x.md

index d11c5ceb70bf9a100a1711d3c3955a9a814de2e5..a12ce81bc01b20500eb9d9bbce14ff74d02b4e51 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
+       to make computed_jump_p return true.
+
 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
index 7935a8170599eacca250af7997f16dc4656cdc84..e8e15b2ec56328e5f18da5cf2a078cee2caa4057 100644 (file)
    (set_attr "cross" "y,n")
    (set_attr "dest_regfile" "b")])
 
+;; computed_jump_p returns true if it finds a constant; so use one in the
+;; unspec.
 (define_insn "indirect_jump_shadow"
-  [(set (pc) (unspec [(pc)] UNSPEC_JUMP_SHADOW))]
+  [(set (pc) (unspec [(const_int 1)] UNSPEC_JUMP_SHADOW))]
   ""
   ";; indirect jump occurs"
   [(set_attr "type" "shadow")])