This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: static inline function body is missing
Nemanja Popov wrote:
dlx-elf-gcc -S foo.c -funit-at-a-time
Mike's suggestions are good in general, but there is another thing you
should be looking at. Since you are explicitly asking for
-funit-at-a-time, I would suggest looking in cgraph. cgraph has code to
optimize away unused static functions. You may be confusing cgraph
somehow. Take a look at cgraph_mark_needed_node and
decide_is_function_needed.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com