Projects
home:lf14:branches:Mega:23.09
glibc
_service:tar_scm:backport-clang-0017-configure-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-clang-0017-configure-Fix-check-for-fno-tree-loop-distribute-patterns.patch of Package glibc
From ffcaa3c6710fbaec084b8c66e3f480ef50aaf311 Mon Sep 17 00:00:00 2001 From: Fangrui Song <maskray@google.com> Date: Sun, 26 Sep 2021 00:15:23 -0700 Subject: [PATCH] configure: Fix check for -fno-tree-loop-distribute-patterns clang does not support -fno-tree-loop-distribute-patterns and using on __attribute__ ((__optimize__ (...))) only triggers a warning with AC_TRY_COMMAND. Add -Werror so the tests fails if compiler does not support it. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 45ee893d49..85226db392 100755 --- a/configure +++ b/configure @@ -7402,7 +7402,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 -fno-tree-loop-distribute-patterns' { { 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 7a7fe4a28a..f508411c25 100644 --- a/configure.ac +++ b/configure.ac @@ -1504,7 +1504,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 -fno-tree-loop-distribute-patterns]) then libc_cv_cc_loop_to_function=yes fi -- 2.39.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2