Messages in this thread |  | | Date | Tue, 21 Nov 2000 21:51:45 +0100 | From | "J . A . Magallon" <> | Subject | Re: beware of dead string constants |
| |
On Tue, 21 Nov 2000 13:13:27 Jakub Jelinek wrote: > On Tue, Nov 21, 2000 at 06:02:35AM -0600, Peter Samuelson wrote: > > > > While trying to clean up some code recently (CONFIG_MCA, hi Jeff), I > > discovered that gcc 2.95.2 (i386) does not remove dead string > > constants: > > > > void foo (void) > > { > > if (0) > > printk(KERN_INFO "bar"); > > } > >
Is it related to opt level ? -O3 does auto-inlining and -O2 does not (discovered that here, auto inlining in kernel trashes the cache...)
-- Juan Antonio Magallon Lacarta #> cd /pub mailto:jamagallon@able.es #> more beer
Linux 2.2.18-pre22-vm #7 SMP Sun Nov 19 03:29:20 CET 2000 i686 unknown
- 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/
|  |