You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems GCC ignores section attributes for static members of a template class. This causes the interned strings to be stored in .rodata instead of the custom interned sections .interned_strings. This is currently supported by clang (at least from version 10), but GCC silently ignores the section attribute and does not even provide a warning message.
We still need to keep the operator _intern because there is no easy way
to translate it into a macro.
Added a pragma message to notify the user of the problem and let them
know user string interning is not currently possible on GCC.
Relates to #79.
Change-Id: Ia1c51d59f7df41cf9e1e98d3ed4834e53128da5a
We still need to keep the operator _intern because there is no easy way
to translate it into a macro.
Added a pragma message to notify the user of the problem and let them
know user string interning is not currently possible on GCC.
Relates to #79.
Change-Id: Ia1c51d59f7df41cf9e1e98d3ed4834e53128da5a
We still need to keep the operator _intern because there is no easy way
to translate it into a macro.
Added a pragma message to notify the user of the problem and let them
know user string interning is not currently possible on GCC.
Relates to #79.
Change-Id: Ia1c51d59f7df41cf9e1e98d3ed4834e53128da5a
It seems
GCC
ignores section attributes for static members of a template class. This causes the interned strings to be stored in.rodata
instead of the custom interned sections.interned_strings
. This is currently supported byclang
(at least from version 10), butGCC
silently ignores the section attribute and does not even provide a warning message.https://stackoverflow.com/questions/36279162/section-attribute-of-a-function-template-is-silently-ignored-in-gcc
https://stackoverflow.com/questions/54040665/gcc-section-attribute-ignored-in-a-templated-function
https://stackoverflow.com/questions/42513904/is-attribute-section-something-on-a-static-member-of-a-template-class
https://answers.launchpad.net/gcc-arm-embedded/+question/615576
It appears to be reported as a bug in
GCC
too:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70435
The text was updated successfully, but these errors were encountered: