From e65a066b6394e6771eb15ac9cfd34f973dacba80 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 12 Oct 2020 15:00:57 +0100 Subject: [PATCH] testsuite, Darwin, Arm64 : Skip tests with an unsupported API. The "OBJC_OLD_DISPATCH_PROTOTYPES" workaround is explicitly disabled for arm64 in the system headers. (cherry picked from commit 700ecd7f434828071a7da57570c619399e8d620b) Signed-off-by: Kirill A. Korinsky --- gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm | 1 + gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm | 1 + 2 files changed, 2 insertions(+) diff --git gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm index bdaef9828ca..b28788d1ea4 100644 --- gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm +++ gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm @@ -19,6 +19,7 @@ /* { dg-do run } */ /* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */ +/* { dg-skip-if "API unsupported" { arm64*-*-darwin* aarch64*-*-darwin* } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-additional-options "-DOBJC_OLD_DISPATCH_PROTOTYPES" { target { *-*-darwin* } } } */ diff --git gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm index ae39026c2d3..68f0c8cc37c 100644 --- gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm +++ gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm @@ -6,6 +6,7 @@ /* { dg-do run } */ /* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */ +/* { dg-skip-if "API unsupported" { arm64*-*-darwin* aarch64*-*-darwin* } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-additional-options "-DOBJC_OLD_DISPATCH_PROTOTYPES" { target { *-*-darwin* } } } */ -- 2.42.1