Doko,

Could you try this patch - I am testing it but am not set up for
building ada.

Ramana

diff --git a/gcc/config/arm/vfp.md b/gcc/config/arm/vfp.md
index e2165a8..30d4d14 100644
--- a/gcc/config/arm/vfp.md
+++ b/gcc/config/arm/vfp.md
@@ -182,6 +182,10 @@
    (set_attr "arch"           "t2,any,any,any,a,t2,any,any,any,any,any,any")]
 )
 
+;; If we ever measure the exact lengths for the various 
+;; operands for Thumb2, make sure to take care of it with the 
+;; ce_count attribute value below. At the moment
+;; it assumes that the length of every instruction is 4.
 (define_insn "*movdi_vfp_cortexa8"
   [(set (match_operand:DI 0 "nonimmediate_di_operand" 
"=r,r,r,r,r,r,m,w,!r,w,w, Uv")
        (match_operand:DI 1 "di_operand"              
"r,rDa,Db,Dc,mi,mi,r,r,w,w,Uvi,w"))]
@@ -217,6 +221,7 @@
    (set_attr "predicable"    "yes")
    (set_attr "pool_range"     "*,*,*,*,1020,4096,*,*,*,*,1020,*")
    (set_attr "neg_pool_range" "*,*,*,*,1008,0,*,*,*,*,1008,*")
+   (set (attr "ce_count") (div (attr "length") (const_int 4)))
    (set_attr "arch"           "t2,any,any,any,a,t2,any,any,any,any,any,any")]
  )

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/810328

Title:
  [armel/thumb] gnat ftbfs in trunk 20110709

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-linaro/+bug/810328/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to