Serious PPC stdarg problem with 2.95.2
Gunther Nikl
nikl@stn-atlas.de
Wed Feb 23 09:39:00 GMT 2000
Franz Sirl <Franz.Sirl-kernel@lauterbach.com> wrote:
>
> At 03:25 23.02.00 , Ralph Schmidt wrote:
>
> >I have a serious problems with the System V.4 stdargs support since
> >2.95.2. I use the ppc-amigaos 68k/ppc crosscompiler which may be the cause
> >of this but i somehow doubt that as the old 2.91.57 va_ppc.h works for me
> >with 2.95.2. Please look at the documented asm below as it contains
If the pre 2.95(.x) va-ppc.h works thats only by luck because the referenced
internal structure still has the old layout. GCC really wants its release
stdarg stuff.
> >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.
Gunther
More information about the Gcc-bugs
mailing list