lkml.org 
[lkml]   [2000]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Alexander Viro wrote:
>
>
> if (CONFIG_FOO) {
> ....
> } else {
> ....
> }

There are a zillion reasons why this technique is superior
to using `#ifdef CONFIG_FOO'. But, alas, gcc fumbles
the ball:

> cat t.c
foo()
{
if (0)
bar("hhhhhhh");
}
> gcc -O2 -c t.c
> strings t.o | grep hhh
hhhhhhh

This was raised with the gcc guys 4-5 weeks ago
and might now be fixed. I'm too bandwidth-deprived
to check.
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.161 / U:2.124 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site