This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ginclude/varargs.h fix for 64-bit AIX
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: ginclude/varargs.h fix for 64-bit AIX
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 07 Jul 1999 01:17:04 -0600
- cc: David Edelsohn <dje at watson dot ibm dot com>, egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990704012734.A4430@cygnus.com>you write:
> On Fri, Jul 02, 1999 at 12:27:11PM -0600, Jeffrey A Law wrote:
> > > Richard> #define va_dcl int __builtin_va_alist __attribute__((_
> _mode__(
> > > __word__))); \
> > > Richard> __va_ellipsis
> > >
> > > This still does not work unless one uses "long" instead of "int
> ".
> > > What is ((mode (__word__))) suppose to mean?
> > ?!? Wasn't the whole point of changing to a long to ensure that the widt
> h
> > of that variable was the same as the word size for your target. More
> > specifically that it had a width of 32bits for the 32bit aix port and
> > 64bits for the 64bit aix port?
>
> The problem seems to be that we don't properly parse attributes in
> a K&R argument context. One quick workaround which does work is to
> use a typedef instead.
[ ... ]
Thanks. I created a ChangeLog entry and installed this change.
jeff