Serious PPC stdarg problem with 2.95.2

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Wed Feb 23 10:06:00 GMT 2000


At 18:35 23.02.00 , Gunther Nikl wrote:
> > >several really bogus code parts. (Look for !!!!)
> > >
> > Maybe because it doesn't happen? :-)
> >
> > Do you have any modification in your sources? On powerpc-linux-gnu this
> > works just fine as the appended source shows.
>
>   Yes, there is a change: structure elements are only wordaligned... This
>   clashes with the way gcc creates the va_list structure. The question is:
>   should gcc obey a requested structere layout?
>   The problem wasn't visible before because the va_list structure was created
>   in "va-ppc.h" thus getting the requested alignment.

What do you mean with word-aligned? The minimum alignment for the PPC SYSV 
ABI is 32bit anyway. Did you change it to be half-word (16-bit) aligned 
(which sounds like a very bad idea)? This is an ABI change and if you do 
that YOU have to make sure all the corresponding places in the compiler are 
changed as well. A lot of routines in the backend are tailored to a 
specific ABI convention.

Franz.



More information about the Gcc-bugs mailing list