Hi guys, this is my first patch for config and I'm not sure how you prefer to get patches against the git repository, but hope this works?
I tested this by running the new config.guess on FreeBSD/i386 and FreeBSD/amd64 systems and verifying the output was adjusted in the former case and unchanged in the latter (plus a bootstrap and run of GCC head with this script on i586-unknown-freebsd10.3). Gerald 2017-03-04 Gerald Pfeifer <ger...@pfeifer.com> * config.guess (*:FreeBSD:*:*): Refactor CPU handling. Canonicalize i386-*-freebsd* to i586-*-freebsd*. --- ChangeLog | 5 +++++ config.guess | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39b611a..2e6cf3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-03-04 Gerald Pfeifer <ger...@pfeifer.com> + + * config.guess (*:FreeBSD:*:*): Refactor CPU handling. + Canonicalize i386-*-freebsd* to i586-*-freebsd*. + 2017-02-07 Ben Elliston <b...@gnu.org> Reported by Hugues Lefebvre <hugues.lefeb...@lusis.fr>. diff --git a/config.guess b/config.guess index 1000e2b..6787494 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2017 Free Software Foundation, Inc. -timestamp='2017-02-07' +timestamp='2017-03-04' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -837,10 +837,11 @@ EOF UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; esac + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin -- 2.11.1 _______________________________________________ config-patches mailing list config-patches@gnu.org https://lists.gnu.org/mailman/listinfo/config-patches