small struct bugs for ppc sysv4

Geoff Keating geoffk@geoffk.org
Fri Apr 26 00:46:00 GMT 2002


> Date: Fri, 26 Apr 2002 17:14:12 +1000
> From: Aldy Hernandez <aldyh@redhat.com>

> > Whoever approved this for the Red Hat local tree is not being very
> > careful.
> 
> that would be me :)
> 
> > 	How does this affect the Linux ABI?  How does this affect the AIX
> > ABI? 
> 
> well, theoretically this only gets used if and only if small structures
> are passed in registers, which is only the case for sysv4 (linux,
> eabi, etc).  
> 
> so it doesn't affect aix, and the linux abi is currently broken because
> it should be putting the small structure values in little endian
> mode.

The linux abi can't be "broken", unless function calls actually don't
work.  It is just incompatible with the SVR4 ABI, which is unfortunate
but there are lots of other incompatibilities.

> > have great concern about how this patch interracts with existing system
> 
> wonder if geoff has further comments?

You can't change the linux ABI without more investigation.  This case
might be rare, so it might help to look at the exported interfaces of
the shared libraries in a typical linux system to see if any of those
interfaces would be broken.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>



More information about the Gcc-patches mailing list