public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14547] New: [3.4 Regression] Passing _Complex long double does not follow the ABI
@ 2004-03-12  8:21 rth at gcc dot gnu dot org
  2004-03-12 10:03 ` [Bug target/14547] " cvs-commit at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-03-12  8:21 UTC (permalink / raw)
  To: gcc-bugs

The SPLIT_COMPLEX_ARGS code added to 3.4 is not sufficiently general.  On Alpha,
_Complex float and _Complex double are supposed to be split, while _Complex long
double is passed by invisible reference, just like plain long double.

This ABI problem is noticed by gcc.dg/compat/scalar-by-value-3, since we do in
fact do the right thing in va_arg(), but can trivially be seen by examining the
code generated for 

   void foo(_Complex long double);
   void bar(void) { foo(0); }

Patch in progress...

-- 
           Summary: [3.4 Regression] Passing _Complex long double does not
                    follow the ABI
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code, ABI
          Severity: critical
          Priority: P2
         Component: target
        AssignedTo: rth at gcc dot gnu dot org
        ReportedBy: rth at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: alpha*-*-*


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


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

end of thread, other threads:[~2004-03-16  0:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-12  8:21 [Bug target/14547] New: [3.4 Regression] Passing _Complex long double does not follow the ABI rth at gcc dot gnu dot org
2004-03-12 10:03 ` [Bug target/14547] " cvs-commit at gcc dot gnu dot org
2004-03-12 10:08 ` rth at gcc dot gnu dot org
2004-03-12 15:29 ` pinskia at gcc dot gnu dot org
2004-03-13 16:27 ` mark at codesourcery dot com
2004-03-13 19:18 ` rth at redhat dot com
2004-03-15 16:14 ` mark at codesourcery dot com
2004-03-15 23:23 ` cvs-commit at gcc dot gnu dot org
2004-03-16  0:24 ` rth at gcc dot gnu dot org
2004-03-16  0:28 ` pinskia 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).