This is the mail archive of the gcc-bugs@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]

[Bug debug/31004] arm ABI bug in transfer structure on the 4th parameter



------- Comment #2 from rearnsha at gcc dot gnu dot org  2009-12-23 15:20 -------
Fixed by Paul's patch:

http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00378.html

Prior to this patch, when debugging the testcase I see:

(gdb) 
subfunc (a=492, b=2097148, c=0, d=...) at test.c:9
9               printf("a %x b %x c %x d.y %x d.z %x\n",a,b,c,d.y,d.z);

With the patch, I see:
subfunc (a=0, b=1, c=2, d=...) at test.c:9
9               printf("a %x b %x c %x d.y %x d.z %x\n",a,b,c,d.y,d.z);
(gdb) p d
$1 = {y = 3, z = 4}


-- 

rearnsha at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31004


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