On 12 November 2013 15:21, Paolo Bonzini <pbonz...@redhat.com> wrote:
> Il 12/11/2013 16:13, Peter Maydell ha scritto:
>>>> >>
>>>> >> -O1 then for clang.
>>> >
>>> > We can even test in configure for the exact optimizations we want, in
>>> > fact.  But I think -O1 doesn't sacrifice debuggability that much:
>> I'm afraid I still don't see why you'd want to sacrifice it
>> at all,
>
> Is this FUD or do you have examples of bad debuggability of -O1 code?

The clang manpage says specifically "Note that Clang debug
information works best at -O0. ", and I see no reason to
disbelieve it. In particular, they don't say "we definitely
will never add an optimization to -O1 that makes the debug
info much worse".

-- PMM

Reply via email to