diff options
author | Michael Bäuerle <micha@NetBSD.org> | 2023-05-18 10:15:49 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-18 12:49:33 +0100 |
commit | 95b93adcac69536bab617e045149719ec69099ae (patch) | |
tree | 6ef2b8fb49cd6528b06757b7312cf567215aefdb | |
parent | 340cd371d63434829b7793bf4fe9d91bf58f77ec (diff) | |
download | gcc-95b93adcac69536bab617e045149719ec69099ae.zip gcc-95b93adcac69536bab617e045149719ec69099ae.tar.gz gcc-95b93adcac69536bab617e045149719ec69099ae.tar.bz2 |
gcc: Fix nonportable shell syntax in "test" and "[" commands [PR105831]
POSIX sh does not support the == for string comparisons, use = instead.
gcc/ChangeLog:
PR bootstrap/105831
* config/nvptx/gen-opt.sh: Use = operator instead of ==.
* configure.ac: Likewise.
* configure: Regenerate.
-rw-r--r-- | gcc/config/nvptx/gen-opt.sh | 2 | ||||
-rwxr-xr-x | gcc/configure | 2 | ||||
-rw-r--r-- | gcc/configure.ac | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/nvptx/gen-opt.sh b/gcc/config/nvptx/gen-opt.sh index dc10722..cab73f5 100644 --- a/gcc/config/nvptx/gen-opt.sh +++ b/gcc/config/nvptx/gen-opt.sh @@ -56,7 +56,7 @@ EnumValue Enum(ptx_isa) String(sm_$sm) Value(PTX_ISA_SM$sm) EOF - if [ "$sm" == "$last" ]; then + if [ "$sm" = "$last" ]; then # Don't end with trailing empty line. continue fi diff --git a/gcc/configure b/gcc/configure index 191f685..5f67808 100755 --- a/gcc/configure +++ b/gcc/configure @@ -6409,7 +6409,7 @@ _ACEOF if test "$enable_largefile" != no; then case "$host, $build" in *-*-aix*,*|*,*-*-aix*) - if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then + if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h diff --git a/gcc/configure.ac b/gcc/configure.ac index 0754246..cc8dd9e 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -473,7 +473,7 @@ AC_CHECK_SIZEOF(dev_t) if test "$enable_largefile" != no; then case "$host, $build" in *-*-aix*,*|*,*-*-aix*) - if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then + if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then AC_DEFINE(HOST_STAT_FOR_64BIT_INODES, stat64x, [Define which stat syscall is able to handle 64bit indodes.]) fi;; |