https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411

--- Comment #37 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Rainer Orth from comment #35)
> Fixed for GCC 8.1.

Please consider comment 17:
The behaviour of a shared library also depends on whether the executable
is linked with or without values-xpg6.o. The author of the shared library
may not expect this and may not have tested in this situation.

Can you please address this through documentation? As a shared library
author, I find it extremely nasty to become aware of this tricky issue
only after the fact.

It could be some text such as
"Note about Solaris: If you develop a shared library that makes use of
functionality that is specified differently in C99 than in C90, you need
to make sure that the library works fine either way. Whether C99 compliant
definitions or C90 compliant definitions are in effect, depends whether the
executable(!) is created with "gcc -std=c99" versus "gcc -std=c90"."

Reply via email to