From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id 6E9F93857C7E; Thu, 7 Oct 2021 20:14:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E9F93857C7E Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc/maskray/clang] x86_64: Improve configure to catch incomplete Clang support X-Act-Checkin: glibc X-Git-Author: Fangrui Song X-Git-Refname: refs/heads/maskray/clang X-Git-Oldrev: f208e0d7f71a0b776284c009ba4273fe7d8f1aaa X-Git-Newrev: bd540e09ed18c3dc264c1922a5dcdea45d71af4b Message-Id: <20211007201404.6E9F93857C7E@sourceware.org> Date: Thu, 7 Oct 2021 20:14:04 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 20:14:04 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bd540e09ed18c3dc264c1922a5dcdea45d71af4b commit bd540e09ed18c3dc264c1922a5dcdea45d71af4b Author: Fangrui Song Date: Sat Sep 25 23:36:15 2021 -0700 x86_64: Improve configure to catch incomplete Clang support Diff: --- sysdeps/x86_64/configure | 2 ++ sysdeps/x86_64/configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 585279f83d..c3145e6030 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -30,6 +30,8 @@ if ${libc_cv_asm_mpx+:} false; then : else cat > conftest.s <<\EOF bndmov %bnd0,(%rsp) + bnd + jmp *%r11 EOF if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index 29e14033c0..3c935d66e1 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -14,6 +14,8 @@ dnl Check whether asm supports Intel MPX AC_CACHE_CHECK(for Intel MPX support, libc_cv_asm_mpx, [dnl cat > conftest.s <<\EOF bndmov %bnd0,(%rsp) + bnd + jmp *%r11 EOF if AC_TRY_COMMAND(${CC-cc} -c $ASFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then libc_cv_asm_mpx=yes