Re: No way to fix __initlocaldata for gcc2.7.x?

Gabor Kuti (ksx@sch.bme.hu)
Tue, 17 Nov 1998 19:59:55 +0100 (MET)


> What the problem is:
> in include/linux/init.h it is said that due to a bug in gcc 2.7.x we
> should use __initlocaldata for local variables [not in file scope] which
> is defined to be __initdata when gcc version is greater than 2.8.
> otherwise it is blank [so it won't be in the init segment..].
>
> My variables _must_ be in my new segment and I can't require to compile
> with 2.8 [I think several ppl use 2.7.2 - me too :)].
> The only solution I can think of that I use global variables for the file
> scope :( [bad, bad..]

<replying to myself>
Well I have about 7-8 variables that need to be in my new __nosavedata
segment.. Isn't that much so they will be global for file scope...

But I still want to know what is this bug anyway in gcc-2.7.x?

Seasons
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
"One who has time to complain has time to submit patches." <chinese proverb>
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

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