[EMAIL PROTECTED] (Kris Kennaway) writes: > Can you say "gimmick"? :-) gcc often produces demonstrably broken code for > optimisation levels higher than -O. That -O is safe seems to be a persistent myth. GCC also produces broken code for -O and no optimization in some cases, sometimes while producing working code for higher optimization levels... I wouldn't state e.g. that -O2 produces broken code any more often than -O, this may have been true for version X.Y.Z but is certainly not universally true. I believe that the reasons the FreeBSD build uses -O are the fact that especially with older versions of gcc, -O2 slowed down compilation considerably for little noticable performance improvement (as for -O3, automatic inlining is generally undesirable), and it is always best to only have to test the system with a single set of flags. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: What are the best gcc optimization options for P... Pedro F. Giffuni
- RE: What are the best gcc optimization options for P... Alexander N. Kabaev
- Re: What are the best gcc optimization options ... Reinier Bezuidenhout
- Re: What are the best gcc optimization opti... Alexey N. Dokuchaev
- Re: What are the best gcc optimization options for P... Kris Kennaway
- Re: What are the best gcc optimization options ... Matthew Dillon
- Re: What are the best gcc optimization opti... Kenneth Wayne Culver
- Re: What are the best gcc optimization ... Matthew Dillon
- Re: What are the best gcc optimizat... Kenneth Wayne Culver
- Re: What are the best gcc optimizat... Martin Minkus
- Re: What are the best gcc optimization options ... Ville-Pertti Keinonen
- Re: What are the best gcc optimization opti... Adrian Chadd
- Re: What are the best gcc optimization ... Martin Cracauer
- Re: What are the best gcc optimizat... Adrian Chadd
- Re: What are the best gcc optimizat... Martin Cracauer
- Re: What are the best gcc optimizat... Adrian Chadd
- Re: What are the best gcc optimizat... Martin Cracauer
- Re: What are the best gcc optimization options for P... David Malone
- Re: What are the best gcc optimization options for P... Martin Cracauer