[v2,4/4] Remove configure fno_unit_at_a_time

Message ID 20220512125931.523712-5-adhemerval.zanella@linaro.org
State Committed
Commit f39ff483f320878b2a2950353d05747eae623216
Headers
Series Remove fno_unit_at_a_time configure check |

Checks

Context Check Description
dj/TryBot-32bit success Build for i686

Commit Message

Adhemerval Zanella May 12, 2022, 12:59 p.m. UTC
  Since it is not used any longer.
---
 config.make.in |  1 -
 configure      | 32 --------------------------------
 configure.ac   | 19 -------------------
 3 files changed, 52 deletions(-)
  

Comments

Fangrui Song May 12, 2022, 5:07 p.m. UTC | #1
On 2022-05-12, Adhemerval Zanella wrote:
>Since it is not used any longer.

Thanks for removing obsoleted GCC option:)

Reviewed-by: Fangrui Song <maskray@google.com>

>---
> config.make.in |  1 -
> configure      | 32 --------------------------------
> configure.ac   | 19 -------------------
> 3 files changed, 52 deletions(-)
>
>diff --git a/config.make.in b/config.make.in
>index fff4c78dd0..d7c416cbea 100644
>--- a/config.make.in
>+++ b/config.make.in
>@@ -68,7 +68,6 @@ have-selinux = @have_selinux@
> have-libaudit = @have_libaudit@
> have-libcap = @have_libcap@
> have-cc-with-libunwind = @libc_cv_cc_with_libunwind@
>-fno-unit-at-a-time = @fno_unit_at_a_time@
> bind-now = @bindnow@
> use-default-link = @use_default_link@
> have-cxx-thread_local = @libc_cv_cxx_thread_local@
>diff --git a/configure b/configure
>index 716dc041b6..ff2c406b3b 100755
>--- a/configure
>+++ b/configure
>@@ -620,7 +620,6 @@ libc_cv_cc_loop_to_function
> libc_cv_cc_submachine
> libc_cv_cc_nofma
> libc_cv_mtls_dialect_gnu2
>-fno_unit_at_a_time
> libc_cv_has_glob_dat
> libc_cv_fpie
> libc_cv_z_execstack
>@@ -6226,37 +6225,6 @@ fi
> $as_echo "$libc_cv_has_glob_dat" >&6; }
>
>
>-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
>-$as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
>-if ${libc_cv_fno_toplevel_reorder+:} false; then :
>-  $as_echo_n "(cached) " >&6
>-else
>-  cat > conftest.c <<EOF
>-int foo;
>-EOF
>-if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
>-			    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_toplevel_reorder=yes
>-else
>-  libc_cv_fno_toplevel_reorder=no
>-fi
>-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; }
>-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
>-fi
>-
>-
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
> $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
> if ${libc_cv_mtls_dialect_gnu2+:} false; then :
>diff --git a/configure.ac b/configure.ac
>index d08ad4d64e..eb5bc6a131 100644
>--- a/configure.ac
>+++ b/configure.ac
>@@ -1383,25 +1383,6 @@ fi
> rm -f conftest*])
> AC_SUBST(libc_cv_has_glob_dat)
>
>-AC_CACHE_CHECK(for -fno-toplevel-reorder -fno-section-anchors, libc_cv_fno_toplevel_reorder, [dnl
>-cat > conftest.c <<EOF
>-int foo;
>-EOF
>-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
>-			    conftest.c 1>&AS_MESSAGE_LOG_FD])
>-then
>-  libc_cv_fno_toplevel_reorder=yes
>-else
>-  libc_cv_fno_toplevel_reorder=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
>-fi
>-AC_SUBST(fno_unit_at_a_time)
>-
> AC_CACHE_CHECK([for -mtls-dialect=gnu2], libc_cv_mtls_dialect_gnu2,
> [dnl
> cat > conftest.c <<EOF
>-- 
>2.34.1
>
  

Patch

diff --git a/config.make.in b/config.make.in
index fff4c78dd0..d7c416cbea 100644
--- a/config.make.in
+++ b/config.make.in
@@ -68,7 +68,6 @@  have-selinux = @have_selinux@
 have-libaudit = @have_libaudit@
 have-libcap = @have_libcap@
 have-cc-with-libunwind = @libc_cv_cc_with_libunwind@
-fno-unit-at-a-time = @fno_unit_at_a_time@
 bind-now = @bindnow@
 use-default-link = @use_default_link@
 have-cxx-thread_local = @libc_cv_cxx_thread_local@
diff --git a/configure b/configure
index 716dc041b6..ff2c406b3b 100755
--- a/configure
+++ b/configure
@@ -620,7 +620,6 @@  libc_cv_cc_loop_to_function
 libc_cv_cc_submachine
 libc_cv_cc_nofma
 libc_cv_mtls_dialect_gnu2
-fno_unit_at_a_time
 libc_cv_has_glob_dat
 libc_cv_fpie
 libc_cv_z_execstack
@@ -6226,37 +6225,6 @@  fi
 $as_echo "$libc_cv_has_glob_dat" >&6; }
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
-$as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
-if ${libc_cv_fno_toplevel_reorder+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat > conftest.c <<EOF
-int foo;
-EOF
-if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
-			    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_toplevel_reorder=yes
-else
-  libc_cv_fno_toplevel_reorder=no
-fi
-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; }
-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
-fi
-
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
diff --git a/configure.ac b/configure.ac
index d08ad4d64e..eb5bc6a131 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1383,25 +1383,6 @@  fi
 rm -f conftest*])
 AC_SUBST(libc_cv_has_glob_dat)
 
-AC_CACHE_CHECK(for -fno-toplevel-reorder -fno-section-anchors, libc_cv_fno_toplevel_reorder, [dnl
-cat > conftest.c <<EOF
-int foo;
-EOF
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
-			    conftest.c 1>&AS_MESSAGE_LOG_FD])
-then
-  libc_cv_fno_toplevel_reorder=yes
-else
-  libc_cv_fno_toplevel_reorder=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
-fi
-AC_SUBST(fno_unit_at_a_time)
-
 AC_CACHE_CHECK([for -mtls-dialect=gnu2], libc_cv_mtls_dialect_gnu2,
 [dnl
 cat > conftest.c <<EOF