From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 039A33857C4F; Thu, 9 Feb 2023 19:47:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 039A33857C4F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675972033; bh=Y2dNFnf5a4oejgyZt+ybNx6ZkjjjVn1HvXJ6z8tpefA=; h=From:To:Subject:Date:From; b=MoOu7Clsbx05SCpDf1oPN1TFtzYmxYf71CUzgKTqXXSkldo371V1yuY3CwLlnSSuz STvcpTUjjEhWnehnn21CEZJduIt8HZO/n/o2bJGwPn9aJzlX55Yr411GUQhuLdc+qq MZTDf5keXGWPpdjyzP3X4Y137MXEcS01mCLhMVt0= 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] configure: Check -fno-tree-loop-distribute-patterns X-Act-Checkin: glibc X-Git-Author: Fangrui Song X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 230f8759ce295d5d3d598658333e0898c3aa7497 X-Git-Newrev: 855fd4947bf25a43bf0e64460029c4c9616b6237 Message-Id: <20230209194713.039A33857C4F@sourceware.org> Date: Thu, 9 Feb 2023 19:47:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=855fd4947bf25a43bf0e64460029c4c9616b6237 commit 855fd4947bf25a43bf0e64460029c4c9616b6237 Author: Fangrui Song Date: Sun Sep 26 00:15:23 2021 -0700 configure: Check -fno-tree-loop-distribute-patterns Diff: --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c5a831e3cd..f1fddbfeb6 100755 --- a/configure +++ b/configure @@ -6166,7 +6166,7 @@ __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) foo (void) {} EOF libc_cv_cc_loop_to_function=no -if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' +if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? diff --git a/configure.ac b/configure.ac index 88a6a88220..1b39d19735 100644 --- a/configure.ac +++ b/configure.ac @@ -1512,7 +1512,7 @@ __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) foo (void) {} EOF libc_cv_cc_loop_to_function=no -if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c]) +if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c]) then libc_cv_cc_loop_to_function=yes fi