aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-03-02 10:34:35 +0100
committerMartin Liska <mliska@suse.cz>2020-03-02 10:36:47 +0100
commit0afd41f8e6530b13421679801cf73cb6bef55553 (patch)
tree273529b1136dcb4b2fbe4e0fb9881ad802d76019 /gcc/configure.ac
parent901f462bd7518f37a33d06c568f95237f09a3664 (diff)
downloadgcc-0afd41f8e6530b13421679801cf73cb6bef55553.zip
gcc-0afd41f8e6530b13421679801cf73cb6bef55553.tar.gz
gcc-0afd41f8e6530b13421679801cf73cb6bef55553.tar.bz2
Backport 08bf7bde9f2987b1c623d272cc71fc14a1622442
Backport from mainline 2020-02-28 Martin Liska <mliska@suse.cz> PR other/93965 * configure.ac: Improve detection of ld_date by requiring either two dashes or none. * configure: Regenerate.
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 9bed32a..d6f2d5b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2580,7 +2580,7 @@ if test $in_tree_ld != yes ; then
ld_vers=`echo $ld_ver | sed -n \
-e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
fi
- ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
+ ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`