[libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675 has now been resolved in GCC 11, so we can remove those workarounds. Differential Revision: https://reviews.llvm.org/D109188
This commit is contained in:
parent
adfd12e6d1
commit
d9eb6c7cf5
|
@ -14,23 +14,15 @@
|
||||||
|
|
||||||
// UNSUPPORTED: no-exceptions
|
// UNSUPPORTED: no-exceptions
|
||||||
|
|
||||||
// FIXME: GCC doesn't allow turning off the warning for exceptions being caught
|
// Compilers emit warnings about exceptions of type 'Child' being caught by
|
||||||
// by earlier handlers, which this test is exercising. We have to disable
|
// an earlier handler of type 'Base'. Congrats, you've just diagnosed the
|
||||||
// warnings altogether to remove the error.
|
// behavior under test.
|
||||||
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
|
// ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
|
||||||
// ADDITIONAL_COMPILE_FLAGS: -Wno-error
|
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
// Clang emits warnings about exceptions of type 'Child' being caught by
|
|
||||||
// an earlier handler of type 'Base'. Congrats clang, you've just
|
|
||||||
// diagnosed the behavior under test.
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang diagnostic ignored "-Wexceptions"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct B
|
struct B
|
||||||
{
|
{
|
||||||
static int count;
|
static int count;
|
||||||
|
|
|
@ -14,23 +14,15 @@
|
||||||
|
|
||||||
// UNSUPPORTED: no-exceptions
|
// UNSUPPORTED: no-exceptions
|
||||||
|
|
||||||
// FIXME: GCC doesn't allow turning off the warning for exceptions being caught
|
// Compilers emit warnings about exceptions of type 'Child' being caught by
|
||||||
// by earlier handlers, which this test is exercising. We have to disable
|
// an earlier handler of type 'Base'. Congrats, you've just diagnosed the
|
||||||
// warnings altogether to remove the error.
|
// behavior under test.
|
||||||
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
|
// ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
|
||||||
// ADDITIONAL_COMPILE_FLAGS: -Wno-error
|
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
// Clang emits warnings about exceptions of type 'Child' being caught by
|
|
||||||
// an earlier handler of type 'Base'. Congrats clang, you've just
|
|
||||||
// diagnosed the behavior under test.
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang diagnostic ignored "-Wexceptions"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct B
|
struct B
|
||||||
{
|
{
|
||||||
static int count;
|
static int count;
|
||||||
|
|
|
@ -14,23 +14,15 @@
|
||||||
|
|
||||||
// UNSUPPORTED: no-exceptions
|
// UNSUPPORTED: no-exceptions
|
||||||
|
|
||||||
// FIXME: GCC doesn't allow turning off the warning for exceptions being caught
|
// Compilers emit warnings about exceptions of type 'Child' being caught by
|
||||||
// by earlier handlers, which this test is exercising. We have to disable
|
// an earlier handler of type 'Base'. Congrats, you've just diagnosed the
|
||||||
// warnings altogether to remove the error.
|
// behavior under test.
|
||||||
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
|
// ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
|
||||||
// ADDITIONAL_COMPILE_FLAGS: -Wno-error
|
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
// Clang emits warnings about exceptions of type 'Child' being caught by
|
|
||||||
// an earlier handler of type 'Base'. Congrats clang, you've just
|
|
||||||
// diagnosed the behavior under test.
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang diagnostic ignored "-Wexceptions"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct B
|
struct B
|
||||||
{
|
{
|
||||||
static int count;
|
static int count;
|
||||||
|
|
|
@ -8,24 +8,16 @@
|
||||||
|
|
||||||
// UNSUPPORTED: no-exceptions
|
// UNSUPPORTED: no-exceptions
|
||||||
|
|
||||||
// FIXME: GCC doesn't allow turning off the warning for exceptions being caught
|
// Compilers emit warnings about exceptions of type 'Child' being caught by
|
||||||
// by earlier handlers, which this test is exercising. We have to disable
|
// an earlier handler of type 'Base'. Congrats, you've just diagnosed the
|
||||||
// warnings altogether to remove the error.
|
// behavior under test.
|
||||||
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
|
// ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
|
||||||
// ADDITIONAL_COMPILE_FLAGS: -Wno-error
|
|
||||||
|
|
||||||
// The fix for PR17222 made it in the dylib for macOS 10.10
|
// The fix for PR17222 made it in the dylib for macOS 10.10
|
||||||
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.9
|
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.9
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Clang emits warnings about exceptions of type 'Child' being caught by
|
|
||||||
// an earlier handler of type 'Base'. Congrats clang, you've just
|
|
||||||
// diagnosed the behavior under test.
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang diagnostic ignored "-Wexceptions"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __cplusplus < 201103L
|
#if __cplusplus < 201103L
|
||||||
#define DISABLE_NULLPTR_TESTS
|
#define DISABLE_NULLPTR_TESTS
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,18 +26,10 @@
|
||||||
|
|
||||||
// UNSUPPORTED: no-exceptions
|
// UNSUPPORTED: no-exceptions
|
||||||
|
|
||||||
// FIXME: GCC doesn't allow turning off the warning for exceptions being caught
|
// Compilers emit warnings about exceptions of type 'Child' being caught by
|
||||||
// by earlier handlers, which this test is exercising. We have to disable
|
// an earlier handler of type 'Base'. Congrats, you've just diagnosed the
|
||||||
// warnings altogether to remove the error.
|
// behavior under test.
|
||||||
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
|
// ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
|
||||||
// ADDITIONAL_COMPILE_FLAGS: -Wno-error
|
|
||||||
|
|
||||||
// Clang emits warnings about exceptions of type 'Child' being caught by
|
|
||||||
// an earlier handler of type 'Base'. Congrats clang, you've just
|
|
||||||
// diagnosed the behavior under test.
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang diagnostic ignored "-Wexceptions"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue