This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Serious error-causing change in new CPP's -traditional behavior
On Fri, May 12, 2000 at 09:16:43AM -0400, Dave Brolley wrote:
> Zack Weinberg wrote:
>
> > On Thu, May 11, 2000 at 05:03:46PM +0100, Richard Earnshaw wrote:
> > > What I would like to have is
> > >
> > > #define wibble(foo) mov r0, # foo
> > > .text
> > > a:
> > > wibble(4)
> > >
> > > and get the output
> > >
> > > .text
> > > a:
> > > mov r0, #4
> > >
> > > Unfortunately we get
> > >
> > > mov r0, "4"
> >
> > Alas, this may not have been what you intended, but it is the behavior
> > mandated by the standard for that #define. Whitespace between the
> > stringize operator and its argument (macro name) is not significant.
> > I don't plan to change this in assembly language mode.
>
> This should be made to work as Richard expects for -traditional
It does.
zw