This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Serious PPC stdarg problem with 2.95.2
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Serious PPC stdarg problem with 2.95.2
- From: Gunther Nikl <nikl at stn-atlas dot de>
- Date: Wed, 23 Feb 2000 18:35:52 +0100
- References: <38B4158F.AF929C15@stn-atlas.de>
- Reply-To: gnikl at informatik dot uni-rostock dot de
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