From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 48DE93830B40; Thu, 28 Sep 2023 17:58:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48DE93830B40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923925; bh=lIsVQRI/U+sNI8BpoAak9jCzqp9NOi4KT7Km9gAiuX8=; h=From:To:Subject:Date:From; b=LDz2g70C0I2Bwq+TAlH3/rdCw0ACdnLiJba8d10UCUYRUF19ZTQAiDatuOBQWlpOH Ln+SY6cKmRwCgEbbzDq5Ryd0zfwZNFCDsoFYQFKFTzdErNNzJFF3EyJ8o5rK2bJV7f XATpAcznJXrK6SP56WVv3MTErLDmrmaNQFIC23u8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] i386: Disable some tests on clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: ed2b0cf907cf64ea57809b5fbdc50797bf6f0109 X-Git-Newrev: 69154cbc77cdb79e351386f3598f1ef0a2e7089a Message-Id: <20230928175845.48DE93830B40@sourceware.org> Date: Thu, 28 Sep 2023 17:58:45 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=69154cbc77cdb79e351386f3598f1ef0a2e7089a commit 69154cbc77cdb79e351386f3598f1ef0a2e7089a Author: Adhemerval Zanella Date: Fri Jul 28 09:34:03 2023 -0300 i386: Disable some tests on clang clang generated R_I386_PC32 instead of R_386_PLT32 for static ifoo calls, which triggers an ld issues where it can not link non-PIC and PIC objects. This seems to be a clang bug. Diff: --- elf/ifuncmain9.c | 5 +++++ sysdeps/x86/tst-ifunc-isa-1.c | 5 +++++ sysdeps/x86/tst-ifunc-isa-2.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/elf/ifuncmain9.c b/elf/ifuncmain9.c index 5fa25b6d1c..10659c9938 100644 --- a/elf/ifuncmain9.c +++ b/elf/ifuncmain9.c @@ -23,6 +23,7 @@ # include # include # include +# include /* Do not use the test framework, so that the process setup is not disturbed. */ @@ -57,6 +58,9 @@ DIAG_POP_NEEDS_COMMENT_CLANG; int main (void) { +#if defined __clang__ && defined __i386__ + return EXIT_UNSUPPORTED; +#else bool errors = false; if (implementation_called != 0) @@ -93,4 +97,5 @@ main (void) } return errors; +#endif } diff --git a/sysdeps/x86/tst-ifunc-isa-1.c b/sysdeps/x86/tst-ifunc-isa-1.c index 94c3944aec..991e70d19e 100644 --- a/sysdeps/x86/tst-ifunc-isa-1.c +++ b/sysdeps/x86/tst-ifunc-isa-1.c @@ -17,14 +17,19 @@ . */ #include +#include #include "tst-ifunc-isa.h" static int do_test (void) { +#if defined __clang__ && defined __i386__ + return EXIT_UNSUPPORTED; +#else enum isa value = foo (); enum isa expected = get_isa (); return value == expected ? EXIT_SUCCESS : EXIT_FAILURE; +#endif } #include diff --git a/sysdeps/x86/tst-ifunc-isa-2.c b/sysdeps/x86/tst-ifunc-isa-2.c index 7521bc7c38..93b617844f 100644 --- a/sysdeps/x86/tst-ifunc-isa-2.c +++ b/sysdeps/x86/tst-ifunc-isa-2.c @@ -23,12 +23,16 @@ static int do_test (void) { +#if defined __clang__ && defined __i386__ + return EXIT_UNSUPPORTED; +#else /* CPU must support SSE2. */ if (!__builtin_cpu_supports ("sse2")) return EXIT_UNSUPPORTED; enum isa value = foo (); /* All ISAs, but SSE2, are disabled by tunables. */ return value == sse2 ? EXIT_SUCCESS : EXIT_FAILURE; +#endif } #include