This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inline functiion in GCC
On Fri, Aug 06, 2004 at 02:20:11PM -0700, James E Wilson wrote:
> Paul Brook wrote:
> > Like most compilers, gcc generates very poor code if you don't turn
> > optimization on.
>
> But don't most compilers emit optimized code by default nowadays? We
> would eliminate some of the questions we get if we defaulted to -O1
> instead of -O0.
The problem is that neither -O0 nor -O1 is really ideal for default code.
-O0 generates needlessly crappy code, but -O1 does not preserve
source correspondence closely enough to avoid problems with debugging or
with code coverage or profiling measurements.