[Bug target/14547] New: [3.4 Regression] Passing _Complex long double does not follow the ABI

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 12 08:21:00 GMT 2004


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



More information about the Gcc-bugs mailing list