[PATCH] Add some more PS4 driver settings related to rtti and exceptions.
Filipe Cabecinhas
filcab+llvm.phabricator at gmail.com
Thu Jan 29 07:16:16 PST 2015
Hi chandlerc,
The PS4 defaults to -fno-rtti, and has to have rtti enabled when enabling
exceptions.
This commit makes clang add the -fno-rtti by default on the PS4, unless
-frtti was passed in.
It also diagnoses misuses for the PS4:
- Exceptions need rtti. Warn and enable rtti if no rtti flag was passed,
error if -fno-rtti was passed.
I also added a more general warning for when -fno-rtti is the default
(currently it's only on the PS4) and the vptr sanitizer is on.
Fixed a few tests, due to different flag order when passing cc1 arguments.
http://reviews.llvm.org/D7250
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Tools.cpp
test/Driver/rewrite-legacy-objc.m
test/Driver/rewrite-objc.m
test/Driver/rtti-options.cpp
test/Driver/xcore-opts.c
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7250.18957.patch
Type: text/x-patch
Size: 12886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150129/94929cf8/attachment.bin>
More information about the cfe-commits
mailing list