This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Call GNU ld with -O*


On Fri, 12 Jul 2013, Ian Lance Taylor wrote:

On Fri, Jul 12, 2013 at 7:54 AM, Marc Glisse <marc.glisse@inria.fr> wrote:

this patch makes the driver pass -O2 to GNU ld if gcc was called with -O3
(or more), -Ofast or -Os.

I don't understand why that is a good idea.

Well, you thought it was 3 years ago ;-)
http://gcc.gnu.org/ml/gcc/2010-05/msg00193.html

The linker -O option is only distantly related to the compiler -O option. It was probably a mistake to have a linker -O option at all.

Doesn't the linker produce something that is faster to link and/or smaller, with this flag?

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]