This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Should -Os imply -shared-libgcc?
- From: Ian Lance Taylor <ian at airs dot com>
- To: gcc at gcc dot gnu dot org
- Date: 29 Nov 2004 14:45:59 -0500
- Subject: Should -Os imply -shared-libgcc?
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