Re: Clarification on section variable attribute usage [try #2]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please never send a message to both gcc@xxxxxxxxxxx and
gcc-help@xxxxxxxxxxxx  Thanks.  I've dropped gcc@xxxxxxxxxxx from this
reply.

Franck Bui-Huu <vagabon.xyz@xxxxxxxxx> writes:

> Since at least 3.4, the GCC manual says:
> 
>      Use the `section' attribute with an _initialized_ definition of a
>      _global_ variable, as shown in the example.  GCC issues a warning
>      and otherwise ignores the `section' attribute in uninitialized
>      variable declarations.
> 
> but this doesn't seem correct.

Yes, I'm fairly sure that is no longer correct.  gcc is now smart
enough to not treat a variable with a section attribute as a common
variable.  I think the documentation is simply wrong.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux