summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-02-28 17:52:57 +0100
committerMartin Liska <mliska@suse.cz>2020-02-28 17:53:27 +0100
commit08bf7bde9f2987b1c623d272cc71fc14a1622442 (patch)
tree8ea6217202937b3b53beebd0fb571963c893afd1 /gcc/configure
parent18396541e4793382a989a23f41f5deb347610234 (diff)
Improve detection of ld_date.
PR other/93965 * configure.ac: Improve detection of ld_date by requiring either two dashes or none. * configure: Regenerate.
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index f55cdb8c77f..5381e107bce 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -23384,7 +23384,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]*\)'`