public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden
@ 2012-08-06 8:12 wbrana at gmail dot com
2012-08-06 8:31 ` [Bug lto/54187] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: wbrana at gmail dot com @ 2012-08-06 8:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54187
Bug #: 54187
Summary: liblto_plugin.so broken with -fvisibility=hidden
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: wbrana@gmail.com
liblto_plugin.so is broken if BOOT_CFLAGS includes -fvisibility=hidden
build system should add -fvisibility=normal for building liblto_plugin.so to
fix it
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/54187] liblto_plugin.so broken with -fvisibility=hidden
2012-08-06 8:12 [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden wbrana at gmail dot com
@ 2012-08-06 8:31 ` rguenth at gcc dot gnu.org
2012-08-06 8:58 ` wbrana at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-06 8:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54187
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-06 08:31:02 UTC ---
What do you gain with -fvisibility-hidden? Nothing, as for non-shared objects
it is already the default. Not for GCC though because of our plugin API
(thus, --disable-plugins).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/54187] liblto_plugin.so broken with -fvisibility=hidden
2012-08-06 8:12 [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden wbrana at gmail dot com
2012-08-06 8:31 ` [Bug lto/54187] " rguenth at gcc dot gnu.org
@ 2012-08-06 8:58 ` wbrana at gmail dot com
2012-08-06 9:29 ` wbrana at gmail dot com
2012-08-06 10:45 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: wbrana at gmail dot com @ 2012-08-06 8:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54187
--- Comment #2 from wbrana <wbrana at gmail dot com> 2012-08-06 08:57:43 UTC ---
Executables are smaller and loads faster with -fvisibility=hidden.
Since which version -fvisibility=hidden is enabled by default?
4.7.2 pre doesn't use -fvisibility=hidden by default.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/54187] liblto_plugin.so broken with -fvisibility=hidden
2012-08-06 8:12 [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden wbrana at gmail dot com
2012-08-06 8:31 ` [Bug lto/54187] " rguenth at gcc dot gnu.org
2012-08-06 8:58 ` wbrana at gmail dot com
@ 2012-08-06 9:29 ` wbrana at gmail dot com
2012-08-06 10:45 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: wbrana at gmail dot com @ 2012-08-06 9:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54187
wbrana <wbrana at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|WONTFIX |
--- Comment #3 from wbrana <wbrana at gmail dot com> 2012-08-06 09:29:09 UTC ---
I was wrong 4.7.2 pre is using -fvisibility=hidden by default, but cc1 isn't
built with -fvisibility=hidden.
Why it isn't possible to have cc1 built with -fvisibility=hidden and
liblto_plugin.so built without -fvisibility=hidden?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/54187] liblto_plugin.so broken with -fvisibility=hidden
2012-08-06 8:12 [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden wbrana at gmail dot com
` (2 preceding siblings ...)
2012-08-06 9:29 ` wbrana at gmail dot com
@ 2012-08-06 10:45 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-06 10:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54187
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-06 10:45:38 UTC ---
All ELF executables have hidden visibility by default if you not export all
dynamic symbols with -Wl,--export-dynamic. That's what we need for GCC plugins
(_not_ the linker plugin), because plugin shared objects need to be able to
bind to all cc1 symbols. Thus, disable GCC plugins.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-06 10:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-06 8:12 [Bug lto/54187] New: liblto_plugin.so broken with -fvisibility=hidden wbrana at gmail dot com
2012-08-06 8:31 ` [Bug lto/54187] " rguenth at gcc dot gnu.org
2012-08-06 8:58 ` wbrana at gmail dot com
2012-08-06 9:29 ` wbrana at gmail dot com
2012-08-06 10:45 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).