This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A bug present in 3.2
On Mon, 2003-10-27 at 01:09, Stelios Xanthakis wrote:
> static inline int f ()
> {
> static int i __attribute__ ((__section__(".gnu.linkonce.d.i")));
> return i++;
> }
That is an interesting looking trick, but it isn't clear if we can make
it work. Having the variable be both static and in a linkonce section
seems somehow contradictory to me.
The immediate problem seems to be with ld. I suggest you mention it on
the binutils mailing list.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com