------- Comment #2 from hubicka at gcc dot gnu dot org  2010-08-22 07:38 -------
This is because C frontend implements this by calling
cgraph_mark_node_if_needed and the function ends up not being needed for LTO or
whole program.
This is a hack, since even if I make things needed, whole program will then be
penalized.

How this function is different from GNU C
inline int f()
alone? If it is equivalent, is there some chance that C frontend would set the
flags same way? (I.e. not setting EXTERN flag on the function)


-- 

hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com,
                   |                            |joseph at codesourcery dot
                   |                            |com
          Component|lto                         |c
   Last reconfirmed|2010-08-01 12:29:48         |2010-08-22 07:38:09
               date|                            |


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

Reply via email to