public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-04-04 12:52 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:52 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=81c44937d19b3b95f801745b8859d4e63055256f
commit 81c44937d19b3b95f801745b8859d4e63055256f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 701f8d9b95..465e9d0fc1 100755
--- a/configure
+++ b/configure
@@ -6343,10 +6343,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 29fecae212..79b9400450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-31 19:04 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bddfdcef8a90b5c73fd167fb660d80f26edd05dc
commit bddfdcef8a90b5c73fd167fb660d80f26edd05dc
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 701f8d9b95..465e9d0fc1 100755
--- a/configure
+++ b/configure
@@ -6343,10 +6343,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 29fecae212..79b9400450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-29 20:27 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:27 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4bebe521eb82de71131554b2148f3d8285039a1
commit b4bebe521eb82de71131554b2148f3d8285039a1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 701f8d9b95..465e9d0fc1 100755
--- a/configure
+++ b/configure
@@ -6343,10 +6343,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 29fecae212..79b9400450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-16 18:00 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=66aee60f16119c792767ad0e188aa81de740c81c
commit 66aee60f16119c792767ad0e188aa81de740c81c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index c57b6e8785..e810148d43 100755
--- a/configure
+++ b/configure
@@ -6344,10 +6344,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 5eeabfaa6d..ecef952dee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-15 18:37 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=66aee60f16119c792767ad0e188aa81de740c81c
commit 66aee60f16119c792767ad0e188aa81de740c81c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index c57b6e8785..e810148d43 100755
--- a/configure
+++ b/configure
@@ -6344,10 +6344,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 5eeabfaa6d..ecef952dee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-11 17:22 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=92a86e2ed63559881e909c40de1f06a2ca772e03
commit 92a86e2ed63559881e909c40de1f06a2ca772e03
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index c57b6e8785..e810148d43 100755
--- a/configure
+++ b/configure
@@ -6344,10 +6344,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 5eeabfaa6d..ecef952dee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -Werror -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang
@ 2022-03-10 19:20 Adhemerval Zanella
0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2022-03-10 19:20 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6f812193d7f15061a2c9c7debfd8a69f15fd7132
commit 6f812193d7f15061a2c9c7debfd8a69f15fd7132
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 16:06:34 2022 -0300
Fix -fno-unit-at-a-time for clang
It does not support the option.
Diff:
---
configure | 32 +++++++++++++++++++++++++++++++-
configure.ac | 20 +++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index c57b6e8785..435aa8ee99 100755
--- a/configure
+++ b/configure
@@ -6344,10 +6344,40 @@ rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-unit-at-a-time" >&5
+$as_echo_n "checking for -fno-unit-at-a-time... " >&6; }
+if ${libc_cv_fno_unit_at_a_time+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat > conftest.c <<EOF
+int foo;
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time conftest.c
+ 1>&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_unit_at_a_time" >&5
+$as_echo "$libc_cv_fno_unit_at_a_time" >&6; }
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 5eeabfaa6d..2b554af3d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1490,10 +1490,28 @@ else
libc_cv_fno_toplevel_reorder=no
fi
rm -f conftest*])
+
+AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
+cat > conftest.c <<EOF
+int foo;
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time conftest.c
+ 1>&AS_MESSAGE_LOG_FD])
+then
+ libc_cv_fno_unit_at_a_time=yes
+else
+ libc_cv_fno_unit_at_a_time=no
+fi
+rm -f conftest*])
+
if test $libc_cv_fno_toplevel_reorder = yes; then
fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
else
- fno_unit_at_a_time=-fno-unit-at-a-time
+ if test $libc_cv_fno_unit_at_a_time == yes; then
+ fno_unit_at_a_time="-fno-unit-at-a-time"
+ else
+ fno_unit_at_a_time=
+ fi
fi
AC_SUBST(fno_unit_at_a_time)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-04-04 12:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:52 [glibc/azanella/clang] Fix -fno-unit-at-a-time for clang Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2022-03-31 19:04 Adhemerval Zanella
2022-03-29 20:27 Adhemerval Zanella
2022-03-16 18:00 Adhemerval Zanella
2022-03-15 18:37 Adhemerval Zanella
2022-03-11 17:22 Adhemerval Zanella
2022-03-10 19:20 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).