This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ginclude/varargs.h fix for 64-bit AIX


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]