This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65780] [5/6 Regression] Uninitialized common handling in executables
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Apr 2015 11:41:32 +0000
- Subject: [Bug target/65780] [5/6 Regression] Uninitialized common handling in executables
- Auto-submitted: auto-generated
- References: <bug-65780-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #13)
> Check flag_pic isn't necessary. For non-PIC, the same code sequence
> and relocation are used to access defined and undefined symbols, common
> or not.
What do you mean by is not necessary? Without that, you'll return false from
targetm.binds_local_p for DECL_COMMON in the testcase say on i686-linux, or if
you have old linker.