cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: gcc warnings in non-debug builds

From: Yang Tse <yangsita_at_gmail.com>
Date: Fri, 3 Oct 2008 01:15:09 +0200

2008/10/2, Patrick Monnerat wrote:

> > I suppose that with --enable-debug we want CFLAGS with '-g -O2' for
> debug builds to actually exercise the '-O2' optimizations and be able to
> properly 'dbg' coredumps. True?
>
> Personally, I really hate real debugging with -O2, because optimization
> hides some variables, delays some assignments, causes strange jumpy
> stepping in gdb, etc. I rather use -O0.
> [...]

Yep I understand your reasons and why others do different. It is
obvious that it is impossible to make fit one size for all.

So probably another new option such as --enable-optimize[=FLAGS] or
something similar should be considered. I think I'll go this route.

-- 
-=[Yang]=-
Received on 2008-10-03