r249655 - Stop messing with the 'g' group of options in CompilerInvocation.

Dimitry Andric via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 19 09:32:29 PDT 2016


> On 08 Oct 2015, at 06:24, Douglas Katzman via cfe-commits <cfe-commits at lists.llvm.org> wrote:
> 
> Author: dougk
> Date: Wed Oct  7 23:24:12 2015
> New Revision: 249655
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=249655&view=rev
> Log:
> Stop messing with the 'g' group of options in CompilerInvocation.
> 
> With this change, most 'g' options are rejected by CompilerInvocation.
> They remain only as Driver options. The new way to request debug info
> from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}"
> and "-dwarf-version={2|3|4}". In the absence of a command-line option
> to specify Dwarf version, the Toolchain decides it, rather than placing
> Toolchain-specific logic in CompilerInvocation.
> 
> Also fix a bug in the Windows compatibility argument parsing
> in which the "rightmost argument wins" principle failed.
> 
> Differential Revision: http://reviews.llvm.org/D13221

This change causes an assertion failure if -g is combined with -save-temps.  I've created https://llvm.org/bugs/show_bug.cgi?id=26999, but I was unable to put you on CC there, since you don't appear to have a Bugzilla account.

Can you please have a look at it?

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160319/ce050ae4/attachment.sig>


More information about the cfe-commits mailing list