Should -Os imply -shared-libgcc?

Ian Lance Taylor ian@airs.com
Mon Nov 29 19:59:00 GMT 2004


It occurred to me that on appropriate platforms, -shared-libgcc will
typically generate a slightly smaller program.  Does anybody have an
opinion on whether the use of -Os on the link line should imply
-shared-libgcc?

If we do that, it suggests that the linker should accept -Os on the
command line.  Right now gcc does not pass -O options to the linker,
although the GNU linker does accept them.  But those changes are a
separate issue.

Ian



More information about the Gcc mailing list