[Bug target/65780] [5/6 Regression] Uninitialized common handling in executables

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 16 11:53:00 GMT 2015


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

--- Comment #20 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #16)
> (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.

I guess it won't hurt.



More information about the Gcc-bugs mailing list