public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13557] New: GCC generates code that differs from the SPARC 64-bit System V psABI
@ 2004-01-03 21:07 kettenis at gnu dot org
  2004-01-03 21:32 ` [Bug target/13557] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: kettenis at gnu dot org @ 2004-01-03 21:07 UTC (permalink / raw)
  To: gcc-bugs

Consider the following bit of code:

struct sf { float f; };

struct sf xf;

void
foo (struct sf zf)
{
  xf = zf;
}

According to the SPARC 64-bit System V psABI this particular structure should be
passed in the %f0 register.  GCC passes the structure in %f1, which is what one
would expect for the following code:

float xf;

void
foo (float zf)
{
  xf = zf;
}

I discovered the problem while working on GDB.  I can work around the problem
there.  However it means that GCC is incompatible with the Sun compilers on
Solaris, which do pass the structure in %f0.

-- 
           Summary: GCC generates code that differs from the SPARC 64-bit
                    System V psABI
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kettenis at gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc64-unknown-freebsd5.2
  GCC host triplet: sparc64-unknown-freebsd5.2
GCC target triplet: sparc64-unknown-freebsd5.2


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-27 13:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-03 21:07 [Bug c/13557] New: GCC generates code that differs from the SPARC 64-bit System V psABI kettenis at gnu dot org
2004-01-03 21:32 ` [Bug target/13557] " pinskia at gcc dot gnu dot org
2004-01-03 22:10 ` pinskia at gcc dot gnu dot org
2004-01-03 22:49 ` kettenis at chello dot nl
2004-01-04  7:18 ` pinskia at gcc dot gnu dot org
2004-01-04 13:45 ` ebotcazou at gcc dot gnu dot org
2004-01-20  7:38 ` [Bug target/13557] deviation from the psABI for small structures cvs-commit at gcc dot gnu dot org
2004-01-20  7:41 ` cvs-commit at gcc dot gnu dot org
2004-01-20  7:45 ` ebotcazou at gcc dot gnu dot org
2004-01-27 13:05 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).