[PATCH] D46982: Do not enable RTTI with -fexceptions, for PS4

Sunil Srivastava via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 16 15:25:23 PDT 2018


Sunil_Srivastava created this revision.
Sunil_Srivastava added a reviewer: filcab.
Herald added a subscriber: cfe-commits.

NFC for targets other than PS4.

This patch is a change in behavior for PS4, in that PS4 will no longer enable
RTTI when -fexceptions is specified (RTTI and Exceptions are disabled by default
on PS4).  RTTI will remain disabled except for types being thrown or caught.
Also, '-fexceptions -fno-rtti' (previously prohibited on PS4) is now accepted,
as it is for other targets.

This patch removes some PS4 specific code, making the code cleaner.

Also, in the test file rtti-options.cpp, PS4 tests where the behavior is the
same as the generic x86_64-linux are removed, making the test cleaner.


Repository:
  rC Clang

https://reviews.llvm.org/D46982

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/ToolChain.h
  lib/Driver/SanitizerArgs.cpp
  lib/Driver/ToolChain.cpp
  lib/Driver/ToolChains/Clang.cpp
  test/Driver/rtti-options.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46982.147196.patch
Type: text/x-patch
Size: 10948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180516/1db12c4f/attachment-0001.bin>


More information about the cfe-commits mailing list