This is the mail archive of the gcc@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]

Re: -O1 & -O2


On Thu, Jul 13, 2000 at 02:26:48PM -0700, Rob Emanuele wrote:
> If anyone could point me to where I can get a list of the
> optimizations that -O1, -O2, and -O3 turn on, I'd appreciate
> it.

The simplest approach is to look in toplev.c (find the line testing optimize >=
1) and then possibly in the machine dependent config/<machine>/<machine>.[ch]
OPTIMIZATION_OPTIONS macro which overrides the toplev definition (though
OPTIMIZATION_OPTIONS is not supposed to change the MI options).

Another approach is to look in the documentation of the -O switches.

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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