--- Comment #3 from rguenth at gcc dot gnu dot org 2006-02-21 10:14 ---
So you want
typedef struct {
int bar;
void *foobar
#if !NEEDED_BY_ARCH
__attribute__((readas(0)))
#endif
;
} Foo;
so Foo.foobar is NULL for !NEEDED_BY_ARCH? Why not do the proper thing
and provide accessor
--- Comment #2 from acahalan at gmail dot com 2006-02-20 03:18 ---
For variables that are commonly used in a large project, you sure wouldn't want
to be putting conditional code all over the place if you could avoid it. The
choice could be something like:
a. put #if TARGET_WANTS_XXX in
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-20 02:02 ---
Can you show an example how to use these variables? I don't understand why you
cannot use if(TARGET_WANTS_XXX)
instead of #if TARGET_WANTS_XXX.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26371