This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50669] no warning for unused globals
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Oct 2011 19:34:48 +0000
- Subject: [Bug c/50669] no warning for unused globals
- Auto-submitted: auto-generated
- References: <bug-50669-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50669
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-09 19:34:48 UTC ---
(In reply to comment #2)
> I could understand this for libraries. However, when linking as an executable
> binary, could the global really be still exported?
Yes. In fact this is how plugins work in GCC.