[Bug lto/41681] Feature request half way option between dynamic and static linking.
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 13 09:46:00 GMT 2009
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-10-13 09:46 -------
So your half-way would be only useful for static analysis, but not for any
optimization decision. Consider a function currently being
void doIt() {}
in the shared library. Now, if GCC sees the body it can deduce that calls
to it are useless and it will DCE them. Next, the shared library
implementation
changes to
void doIt() { printf("Hello"); }
which is perfectly valid. Thus, GCC has miscompiled the program.
So - it's not going to work in any way that will give extra information
to GCC.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41681
More information about the Gcc-bugs
mailing list