fsection-anchors for strings literal ?

Ian Lance Taylor iant@google.com
Thu Sep 27 18:42:00 GMT 2012


On Thu, Sep 27, 2012 at 3:24 AM, yon ar c'hall <yon.ar.chall@gmail.com> wrote:
>
> Is it possible to use the option -fsection-anchors on strings literal
> ? on the function name strings behind the __func__ predefined
> identifier ? If yes, what is the C syntax ?
>
> Note: on PowerPC architecture, each string literal eats a GOT entry
> (the string is recorded in the .rodata section, but access to this
> record is done via the GOT) !

The -fsection-anchors option changes the way that generated code
accesses static variables.  There is no C syntax associated with it.
It's purely a code generation option.

If PPC code is not using -fsection-anchors for string literals, please
file a bug report.  See http://gcc.gnu.org/bugs/ .

Ian



More information about the Gcc-help mailing list