After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 388184 - Mis-determination of gcc "inline" semantics
Mis-determination of gcc "inline" semantics
Status: RESOLVED DUPLICATE of bug 315437
Product: glib
Classification: Platform
Component: general
2.12.x
Other Mac OS
: Normal critical
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-12-21 07:19 UTC by Daniel Macks
Modified: 2007-09-26 19:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2006-12-21 07:19:12 UTC
in glib-2.12.4, gutils.h around line 99 uses defined(__GNUC__) as the primary determination for how to define G_INLINE_FUNC. Now gcc has changed the semantics of "inline", such that this is no longer a valid assumption.

http://gcc.gnu.org/ml/gcc/2006-11/msg00006.html

One result is that compiling against glib can fail with multiply-defined symbol errors because the "inline"d symbols are exposed.

Need to use a feature test for the actual behavior of "inline" to decide how to define, rather than assuming a certain behavior of a given compiler or other platform test.
Comment 2 Björn Lindqvist 2007-09-26 19:20:17 UTC
Dupe of #315437 I think.


*** This bug has been marked as a duplicate of 315437 ***