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] |
| Other format: | [Raw text] | |
"Paulo J. Matos" <pocm@soton.ac.uk> writes:
> Which optimization levels affect gimple? > I've tried for a program to check what kind of gimple code you get > with -fdump-tree-gimple and -O0 and -O3 have different results, > however, -O3 and -O9 have exactly the same output. Will -Ox for x > 3, > generate the same gimple trees? (i.e., are done in backend of gcc?)
At present, as far as I know, the highest defined optimization level is -O3. -ONUMBER where NUMBER > 3 is equivalent to -O3. There is no particular guarantee that will remain true in the future, although there are also no current plans to change it.
That's quite curious. I always thought that O3 was different to O4, O5, ... O9. Still, beyond O3 optimizations were not safe... maybe an old gcc myth! :-)
Ian
-- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |