This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386-unknown-freebsd -> i586-unknown-freebsd (was: [Patch wwwdocs] Add aarch64-none-linux-gnu as a primary platform for GCC-7)
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at foss dot arm dot com>, Andreas Tobler <andreast at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 4 Mar 2017 17:40:26 +0100 (CET)
- Subject: i386-unknown-freebsd -> i586-unknown-freebsd (was: [Patch wwwdocs] Add aarch64-none-linux-gnu as a primary platform for GCC-7)
- Authentication-results: sourceware.org; auth=none
- References: <5742CA86.10200@foss.arm.com> <CAFiYyc2xYL0116_ucua3kkHDAE9P7mpurTVJoWL8QOsqcdTa+Q@mail.gmail.com> <alpine.LSU.2.20.1605232342040.2874@anthias.pfeifer.com> <CAFiYyc04WYGawMfhqXT+RqZer0XatbJ=gXwabfDT9HDHU=HVvQ@mail.gmail.com>
On Tue, 24 May 2016, Richard Biener wrote:
>> As Jeff noted, i386 actually is the "marketing" name used for the
>> platform, GCC has been defaulting to i486 for ages, and I upgraded
>> to i586 last year:
>>
>> 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
>>
>> * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
>> Remove support for FreeBSD 5 and earlier.
> Can we update to a non-marketing name then, like i586-unknown-freebsd please?
> config.gcc accepts i[34567]86-*-freebsd*. It at least confused me.
Sooo, I finally got to submitting the patch below to the config.guess
maintainers.
When/if this has been accepted, is it okay to pull the latest config.guess
into GCC even at this stage of the release process? (We're only looking
at this change and the addition of nsx-tandem compared to what we have
right now.)
Gerald
2017-03-04 Gerald Pfeifer <gerald@pfeifer.com>
* config.guess (*:FreeBSD:*:*): Refactor CPU handling.
Canonicalize i386-*-freebsd* to i586-*-freebsd*.
diff --git a/config.guess b/config.guess
index 1000e2b..180375c 100755
--- a/config.guess
+++ b/config.guess
@@ -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