This should be safe because this is a preprocessor test; it should not exercise implicit function declarations.
* gcc.dg/cpp/wchar-1.c (main): Call __builtin_abort instead of abort. --- gcc/testsuite/gcc.dg/cpp/wchar-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/cpp/wchar-1.c b/gcc/testsuite/gcc.dg/cpp/wchar-1.c index ac9b38b80da..51ef2fb0f1d 100644 --- a/gcc/testsuite/gcc.dg/cpp/wchar-1.c +++ b/gcc/testsuite/gcc.dg/cpp/wchar-1.c @@ -14,10 +14,10 @@ int main () #if L'\x0' - 1 < 0 if (c > 0) - abort (); + __builtin_abort (); #else if (c < 0) - abort (); + __builtin_abort (); #endif return 0; base-commit: d28f4194922fe8b25310b926c126e7ec1776c71d