------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-05 18:46 -------
> If you use -fvisibility=hidden instead of -fwhole-program the result is even
> worse, both foo and array are emitted even though the resulting DSO does not
> give any access to them.

Well that is not GCC's fault really, you should use -ffunction-sections
-Wl,--gc-sections for that


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Missed optimizations with - |Missed optimizations with
                   |fwhole-program -combine     |static variable and static
                   |                            |function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30075

Reply via email to