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]
Other format: [Raw text]

Re: [PATCH]: error with gcc-2.8.1, loop-invariant.c:1126: macro `DF_REG_SIZE' used without args


On Fri, 17 Aug 2007, Andrew Pinski wrote:

> On 8/17/07, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> > I had to use a gcc-2.8.1 binary that came with gnat on solaris to try out
> > bootstrapping ada.  When bootstrapping mainline, it complains about this
> > in stage1:
> >
> >         loop-invariant.c:1126: macro `DF_REG_SIZE' used without args
> >         make[2]: *** [loop-invariant.o] Error 1
> 
> Just a quick note.  This is only undefined behavior at compile time.
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_003.html#Question3

Empty macro arguments were undefined in C90, but are allowed in C99; the 
DR relevant in C99 context is 
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_259.htm>.

I don't know if we need to avoid empty arguments altogether in GCC or 
whether there is a safe subset of them (implemented in practice by C90 
compilers) we can use.

-- 
Joseph S. Myers
joseph@codesourcery.com


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