]> granicus.if.org Git - clang/commit
Add some more PS4 driver settings related to rtti and exceptions.
authorFilipe Cabecinhas <me@filcab.net>
Thu, 29 Jan 2015 23:56:43 +0000 (23:56 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 29 Jan 2015 23:56:43 +0000 (23:56 +0000)
commitd816be98bb6273f653377c8ed75efecccff51ad8
tree0fa37b7ad493e96e6e815551dee7c2ae81821a7a
parentc863fa3468fd62b4e709fadc8c0713422da568e4
Add some more PS4 driver settings related to rtti and exceptions.

Summary:
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.

Reviewers: chandlerc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D7250

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227518 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Tools.cpp
test/Driver/rtti-options.cpp [new file with mode: 0644]