[cfe-dev] Clangs equivalent to GCCs -Og flag?

David Blaikie dblaikie at gmail.com
Wed Jul 29 10:13:20 PDT 2015


On Wed, Jul 29, 2015 at 8:42 AM, Dan Walmsley <dan at walms.co.uk> wrote:

> Thanks,
>
>     Perhaps there might be some documentation somewhere that would give me
> an idea of which optimizations to enable individually?
>

Not really - optimized debug info is still pretty lacking in Clang. Even
the most common/basic optimizations (SROA, for example) are going to pretty
heavily impact debuggability today.

- Dave


>
> Dan
>
> ------------------------------
> Date: Wed, 29 Jul 2015 06:40:06 -0700
> Subject: Re: [cfe-dev] Clangs equivalent to GCCs -Og flag?
> From: dblaikie at gmail.com
> To: dan at walms.co.uk
> CC: cfe-dev at cs.uiuc.edu
>
>
>
> On Jul 29, 2015 3:23 AM, "Dan Walmsley" <dan at walms.co.uk> wrote:
> >
> > GCC has a debug level flag of -Og which enables all optimizers that
> won't degrade the debugging experience greatly.
> >
> > Does clang have an equivalent?
>
> No, clang had no equivalent at this time.
>
> >
> > Thanks in advance.
> >
> > Dan
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150729/8717282b/attachment.html>


More information about the cfe-dev mailing list