------- Comment #2 from davek at gcc dot gnu dot org 2010-05-17 17:02 -------
Yes, it certainly does, in fact it omits to compile any definition for 'foo'
whatsoever!
But isn't this the expected behaviour of using '-fwhole-program' on something
that is not the whole program? I'm not sure if the option is supposed to be
suitable for use when building a shared library, I'll ask on the mailing list.
--
davek at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davek at gcc dot gnu dot org
Known to work| |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42904