From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0FD253834E6E; Thu, 9 Jun 2022 13:15:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FD253834E6E 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: 1173e8b43aeba37e9415cf8e86b915cc620e6137 X-Git-Newrev: 48812a7a8947bc2dded840be02948a5ae023058d Message-Id: <20220609131525.0FD253834E6E@sourceware.org> Date: Thu, 9 Jun 2022 13:15:25 +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, 09 Jun 2022 13:15:25 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48812a7a8947bc2dded840be02948a5ae023058d commit 48812a7a8947bc2dded840be02948a5ae023058d 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 83009454a8..779c7b8891 100755 --- a/configure +++ b/configure @@ -6431,7 +6431,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 06bb2d79e7..d9c8872a5f 100644 --- a/configure.ac +++ b/configure.ac @@ -1505,7 +1505,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