[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-05-23 Thread ktietz at gcc dot gnu dot org


--- Comment #5 from ktietz at gcc dot gnu dot org  2010-05-23 06:52 ---
Subject: Bug 43869

Author: ktietz
Date: Sun May 23 06:51:50 2010
New Revision: 159754

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159754
Log:
2010-05-23  Naarten Lankhorst  mlankho...@codeweavers.com

PR target/43869
* gcc.c-target/pr43869.c: New test.


Added:
trunk/gcc/testsuite/gcc.target/i386/pr43869.c   (with props)
Modified:
trunk/gcc/testsuite/ChangeLog

Propchange: trunk/gcc/testsuite/gcc.target/i386/pr43869.c
('svn:eol-style' added)

Propchange: trunk/gcc/testsuite/gcc.target/i386/pr43869.c
('svn:mime-type' added)


-- 


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-05-23 Thread ktietz at gcc dot gnu dot org


--- Comment #6 from ktietz at gcc dot gnu dot org  2010-05-23 06:52 ---
Subject: Bug 43869

Author: ktietz
Date: Sun May 23 06:52:32 2010
New Revision: 159755

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159755
Log:
2010-05-23  Naarten Lankhorst  mlankho...@codeweavers.com

PR target/43869
* config/i386/i386.c: Make sure that the correct regparm is passed.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c


-- 


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-05-23 Thread ktietz at gcc dot gnu dot org


--- Comment #7 from ktietz at gcc dot gnu dot org  2010-05-23 06:57 ---
Subject: Bug 43869

Author: ktietz
Date: Sun May 23 06:57:20 2010
New Revision: 159756

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159756
Log:
2010-05-23  Naarten Lankhorst  mlankho...@codeweavers.com

Merged from trunk
PR target/43869
* config/i386/i386.c: Make sure that the correct regparm is passed.

2010-05-23  Naarten Lankhorst  mlankho...@codeweavers.com

Merged from trunk
PR target/43869
* gcc.c-target/pr43869.c: New test.



Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr43869.c   (with
props)
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/i386/i386.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog

Propchange: branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr43869.c
('svn:eol-style' added)

Propchange: branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr43869.c
('svn:mime-type' added)


-- 


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-05-23 Thread ktietz at gcc dot gnu dot org


--- Comment #8 from ktietz at gcc dot gnu dot org  2010-05-23 07:12 ---
Fixed on trunk and back-merged to gcc-4_5 branch.


-- 

ktietz at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-04-28 Thread steven at gcc dot gnu dot org


-- 

steven at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-04-28 23:14:02
   date||


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-04-25 Thread m dot b dot lankhorst at gmail dot com


--- Comment #4 from m dot b dot lankhorst at gmail dot com  2010-04-25 
14:41 ---
Created an attachment (id=20483)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20483action=view)
Patch that fixes the testcase

It appears that SSE_REGPARM_MAX will change based on ix86_cfun_abi(), so using
SSE_REGPARM_MAX will cause sse regparm max to be 4, if calling a sysv function
from a ms_abi function. The attached patch will clean up some of the issues.

setup_incoming_varargs_64 will also assume the sysv abi now, since
setup_incoming_varargs_ms_64 is a separate function


-- 


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-04-23 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2010-04-23 18:40 ---
This works with:
GNU C (GCC) version 4.6.0 20100422 (experimental) [trunk revision 158652]
(x86_64-unknown-linux-gnu)


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|c   |target


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



[Bug target/43869] ms_abi - sysv_abi passing float arguments incorrectly

2010-04-23 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2010-04-23 18:44 ---
(In reply to comment #2)
 This works with:
 GNU C (GCC) version 4.6.0 20100422 (experimental) [trunk revision 158652]
 (x86_64-unknown-linux-gnu)
 

I take that back, it still fails, for some reason I thought the testcase was
using abort to test for a failure rather than the return value.


-- 


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