[Patch] Driver: Warn on -mcmode=kernel on Darwin

Vedant Kumar vsk at apple.com
Fri Jul 24 16:39:55 PDT 2015


I’ve attached an updated patch which passes check-clang.

The old patch neglected to specify a warning group. Please ignore it.

vedant

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcmodel-kernel-darwin.patch
Type: application/octet-stream
Size: 1315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150724/736ebb8e/attachment.obj>
-------------- next part --------------


On Jul 24, 2015, at 3:58 PM, Vedant Kumar <vsk at apple.com> wrote:

> The 'kernel' mcmodel is not fully supported on Darwin (PR 19131741).
> 
> This patch causes the driver to spit out a warning when users pass -mcmodel=kernel in.
> 
> I was asked to add this warning because the alternatives are (1) crashing mysteriously in SelectionDAG, or (2) erroring out in the driver.
> 
> Since I don't have commit rights yet, I'd appreciate someone looking over this patch and guiding it into trunk.
> 
> thanks!
> vedant
> 
> <mcmodel-kernel-darwin.patch>



More information about the cfe-commits mailing list