Re: beware of dead string constants

From: Urban Widmark (urban@svenskatest.se)
Date: Wed Nov 22 2000 - 03:27:07 EST


On Tue, 21 Nov 2000, Peter Samuelson wrote:

[someone wrote, and I am keeping it :) ]
> > > > void foo (void)
> > > > {
> > > > if (0)
> > > > printk(KERN_INFO "bar");
> > > > }
> > > >

[snip]

> Jakub Jelinek claims to have fixed this particular bug in the last week
> or so, although I have not downloaded and compiled recent CVS to verify
> this. (Didn't someone at some point have a cgi frontend to
> CVS-snapshot 'gcc -S'? I can't find it now.)

It is linked from the "Reporting bugs" page on the gcc site.
http://www.codesourcery.com/gcc-compile.shtml

And as far as I can tell the assembly output of compiling "foo" does not
contain the "bar" string (without using any -O at all ...)

GCC: (GNU) 2.97 20001121 (experimental)

/Urban

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:22 EST