Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picolibc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Debian Electronics
toolchains
picolibc
Commits
17f8dfd3
Commit
17f8dfd3
authored
Jan 15, 2019
by
Jeff Johnston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update config.guess, config.sub to gcc master branch versions
parent
1787e9d0
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
626 additions
and
611 deletions
+626
-611
config.guess
config.guess
+73
-43
config.sub
config.sub
+553
-568
No files found.
config.guess
View file @
17f8dfd3
#! /bin/sh
#! /bin/sh
# Attempt to guess a canonical system name.
# Attempt to guess a canonical system name.
# Copyright 1992-201
8
Free Software Foundation, Inc.
# Copyright 1992-201
9
Free Software Foundation, Inc.
timestamp
=
'201
8-06-26
'
timestamp
=
'201
9-01-03
'
# This file is free software; you can redistribute it and/or modify it
# 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
# under the terms of the GNU General Public License as published by
...
@@ -50,7 +50,7 @@ version="\
...
@@ -50,7 +50,7 @@ version="\
GNU config.guess (
$timestamp
)
GNU config.guess (
$timestamp
)
Originally written by Per Bothner.
Originally written by Per Bothner.
Copyright 1992-201
8
Free Software Foundation, Inc.
Copyright 1992-201
9
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
...
@@ -84,8 +84,6 @@ if test $# != 0; then
...
@@ -84,8 +84,6 @@ if test $# != 0; then
exit
1
exit
1
fi
fi
trap
'exit 1'
1 2 15
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# temporary files to be created and, as you can see below, it is a
...
@@ -96,34 +94,38 @@ trap 'exit 1' 1 2 15
...
@@ -96,34 +94,38 @@ trap 'exit 1' 1 2 15
# Portable tmp directory creation inspired by the Autoconf team.
# Portable tmp directory creation inspired by the Autoconf team.
set_cc_for_build
=
'
tmp
=
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
# shellcheck disable=SC2172
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
trap
'test -z "$tmp" || rm -fr "$tmp"'
0 1 2 13 15
: ${TMPDIR=/tmp} ;
set_cc_for_build
()
{
:
"
${
TMPDIR
=/tmp
}
"
# shellcheck disable=SC2039
{
tmp
=
`
(
umask
077
&&
mktemp
-d
"
$TMPDIR
/cgXXXXXX"
)
2>/dev/null
`
&&
test
-n
"
$tmp
"
&&
test
-d
"
$tmp
"
;
}
||
{
tmp
=
`
(
umask
077
&&
mktemp
-d
"
$TMPDIR
/cgXXXXXX"
)
2>/dev/null
`
&&
test
-n
"
$tmp
"
&&
test
-d
"
$tmp
"
;
}
||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp
) ; } ||
{
test
-n
"
$RANDOM
"
&&
tmp
=
$TMPDIR
/cg
$$
-
$RANDOM
&&
(
umask
077
&&
mkdir
"
$tmp
"
2>/dev/null
)
;
}
||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp
) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{
tmp
=
$TMPDIR
/cg-
$$
&&
(
umask
077
&&
mkdir
"
$tmp
"
2>/dev/null
)
&&
echo
"Warning: creating insecure temp directory"
>
&2
;
}
||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
{
echo
"
$me
: cannot create a temporary directory in
$TMPDIR
"
>
&2
;
exit
1
;
}
dummy=$tmp/dummy ;
dummy
=
$tmp
/dummy
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case
${
CC_FOR_BUILD
-
}
,
${
HOST_CC
-
}
,
${
CC
-
}
in
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
,,
)
echo
"int x;"
>
"
$dummy
.c"
,,) echo "int x;" > "$dummy.c" ;
for
driver
in
cc gcc c89 c99
;
do
for c in cc gcc c89 c99 ; do
if
(
$driver
-c
-o
"
$dummy
.o"
"
$dummy
.c"
)
>
/dev/null 2>&1
;
then
if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
CC_FOR_BUILD
=
"
$driver
"
CC_FOR_BUILD="$c"; break ;
break
fi ;
fi
done ;
done
if
test
x
"
$CC_FOR_BUILD
"
=
x
;
then
if
test
x
"
$CC_FOR_BUILD
"
=
x
;
then
CC_FOR_BUILD=no_compiler_found ;
CC_FOR_BUILD
=
no_compiler_found
fi
fi
;;
;;
,,
*
)
CC_FOR_BUILD
=
$CC
;;
,,
*
)
CC_FOR_BUILD
=
$CC
;;
,
*
,
*
)
CC_FOR_BUILD
=
$HOST_CC
;;
,
*
,
*
)
CC_FOR_BUILD
=
$HOST_CC
;;
esac ; set_cc_for_build= ;'
esac
}
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
# (ghazi@noc.rutgers.edu 1994-08-24)
if
(
test
-f
/.attbin/uname
)
>
/dev/null 2>&1
;
then
if
test
-f
/.attbin/uname
;
then
PATH
=
$PATH
:/.attbin
;
export
PATH
PATH
=
$PATH
:/.attbin
;
export
PATH
fi
fi
...
@@ -138,7 +140,7 @@ Linux|GNU|GNU/*)
...
@@ -138,7 +140,7 @@ Linux|GNU|GNU/*)
# We could probably try harder.
# We could probably try harder.
LIBC
=
gnu
LIBC
=
gnu
eval
"
$set_cc_for_build
"
set_cc_for_build
cat
<<-
EOF
> "
$dummy
.c"
cat
<<-
EOF
> "
$dummy
.c"
#include <features.h>
#include <features.h>
#if defined(__UCLIBC__)
#if defined(__UCLIBC__)
...
@@ -199,7 +201,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
...
@@ -199,7 +201,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
os
=
netbsdelf
os
=
netbsdelf
;;
;;
arm
*
|
i386|m68k|ns32k|sh3
*
|
sparc|vax
)
arm
*
|
i386|m68k|ns32k|sh3
*
|
sparc|vax
)
eval
"
$set_cc_for_build
"
set_cc_for_build
if
echo
__ELF__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
if
echo
__ELF__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
|
grep
-q
__ELF__
|
grep
-q
__ELF__
then
then
...
@@ -383,13 +385,26 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
...
@@ -383,13 +385,26 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
echo
sparc-hal-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|sed
-e
's/[^.]*//'
`
"
echo
sparc-hal-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|sed
-e
's/[^.]*//'
`
"
exit
;;
exit
;;
sun4
*
:SunOS:5.
*
:
*
|
tadpole
*
:SunOS:5.
*
:
*
)
sun4
*
:SunOS:5.
*
:
*
|
tadpole
*
:SunOS:5.
*
:
*
)
echo
sparc-sun-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|
sed
-e
's/[^.]*//'
`
"
set_cc_for_build
SUN_ARCH
=
sparc
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
(
echo
'#ifdef __sparcv9'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
then
SUN_ARCH
=
sparcv9
fi
fi
echo
"
$SUN_ARCH
"
-sun-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|sed
-e
's/[^.]*//'
`
"
exit
;;
exit
;;
i86pc:AuroraUX:5.
*
:
*
|
i86xen:AuroraUX:5.
*
:
*
)
i86pc:AuroraUX:5.
*
:
*
|
i86xen:AuroraUX:5.
*
:
*
)
echo
i386-pc-auroraux
"
$UNAME_RELEASE
"
echo
i386-pc-auroraux
"
$UNAME_RELEASE
"
exit
;;
exit
;;
i86pc:SunOS:5.
*
:
*
|
i86xen:SunOS:5.
*
:
*
)
i86pc:SunOS:5.
*
:
*
|
i86xen:SunOS:5.
*
:
*
)
eval
"
$set_cc_for_build
"
set_cc_for_build
SUN_ARCH
=
i386
SUN_ARCH
=
i386
# If there is a compiler, see if it is configured for 64-bit objects.
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
...
@@ -482,7 +497,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
...
@@ -482,7 +497,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
echo
clipper-intergraph-clix
"
$UNAME_RELEASE
"
echo
clipper-intergraph-clix
"
$UNAME_RELEASE
"
exit
;;
exit
;;
mips:
*
:
*
:UMIPS
|
mips:
*
:
*
:RISCos
)
mips:
*
:
*
:UMIPS
|
mips:
*
:
*
:RISCos
)
eval
"
$set_cc_for_build
"
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
#ifdef __cplusplus
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
#include <stdio.h> /* for printf() prototype */
...
@@ -579,7 +594,7 @@ EOF
...
@@ -579,7 +594,7 @@ EOF
exit
;;
exit
;;
*
:AIX:2:3
)
*
:AIX:2:3
)
if
grep
bos325 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
if
grep
bos325 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
eval
"
$set_cc_for_build
"
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
#include <sys/systemcfg.h>
#include <sys/systemcfg.h>
...
@@ -660,7 +675,7 @@ EOF
...
@@ -660,7 +675,7 @@ EOF
esac
esac
fi
fi
if
[
"
$HP_ARCH
"
=
""
]
;
then
if
[
"
$HP_ARCH
"
=
""
]
;
then
eval
"
$set_cc_for_build
"
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
#define _HPUX_SOURCE
#define _HPUX_SOURCE
...
@@ -700,7 +715,7 @@ EOF
...
@@ -700,7 +715,7 @@ EOF
esac
esac
if
[
"
$HP_ARCH
"
=
hppa2.0w
]
if
[
"
$HP_ARCH
"
=
hppa2.0w
]
then
then
eval
"
$set_cc_for_build
"
set_cc_for_build
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
...
@@ -726,7 +741,7 @@ EOF
...
@@ -726,7 +741,7 @@ EOF
echo
ia64-hp-hpux
"
$HPUX_REV
"
echo
ia64-hp-hpux
"
$HPUX_REV
"
exit
;;
exit
;;
3050
*
:HI-UX:
*
:
*
)
3050
*
:HI-UX:
*
:
*
)
eval
"
$set_cc_for_build
"
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
#include <unistd.h>
#include <unistd.h>
int
int
...
@@ -840,6 +855,17 @@ EOF
...
@@ -840,6 +855,17 @@ EOF
*
:BSD/OS:
*
:
*
)
*
:BSD/OS:
*
:
*
)
echo
"
$UNAME_MACHINE
"
-unknown-bsdi
"
$UNAME_RELEASE
"
echo
"
$UNAME_MACHINE
"
-unknown-bsdi
"
$UNAME_RELEASE
"
exit
;;
exit
;;
arm:FreeBSD:
*
:
*
)
UNAME_PROCESSOR
=
`
uname
-p
`
set_cc_for_build
if
echo
__ARM_PCS_VFP |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
|
grep
-q
__ARM_PCS_VFP
then
echo
"
${
UNAME_PROCESSOR
}
"
-unknown-freebsd
"
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
"
-gnueabi
else
echo
"
${
UNAME_PROCESSOR
}
"
-unknown-freebsd
"
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
"
-gnueabihf
fi
exit
;;
*
:FreeBSD:
*
:
*
)
*
:FreeBSD:
*
:
*
)
UNAME_PROCESSOR
=
`
/usr/bin/uname
-p
`
UNAME_PROCESSOR
=
`
/usr/bin/uname
-p
`
case
"
$UNAME_PROCESSOR
"
in
case
"
$UNAME_PROCESSOR
"
in
...
@@ -881,7 +907,7 @@ EOF
...
@@ -881,7 +907,7 @@ EOF
echo
"
$UNAME_MACHINE
"
-pc-uwin
echo
"
$UNAME_MACHINE
"
-pc-uwin
exit
;;
exit
;;
amd64:CYGWIN
*
:
*
:
*
|
x86_64:CYGWIN
*
:
*
:
*
)
amd64:CYGWIN
*
:
*
:
*
|
x86_64:CYGWIN
*
:
*
:
*
)
echo
x86_64-
unknown
-cygwin
echo
x86_64-
pc
-cygwin
exit
;;
exit
;;
prep
*
:SunOS:5.
*
:
*
)
prep
*
:SunOS:5.
*
:
*
)
echo
powerpcle-unknown-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|sed
-e
's/[^.]*//'
`
"
echo
powerpcle-unknown-solaris2
"
`
echo
"
$UNAME_RELEASE
"
|sed
-e
's/[^.]*//'
`
"
...
@@ -922,7 +948,7 @@ EOF
...
@@ -922,7 +948,7 @@ EOF
echo
"
$UNAME_MACHINE
"
-unknown-linux-
"
$LIBC
"
echo
"
$UNAME_MACHINE
"
-unknown-linux-
"
$LIBC
"
exit
;;
exit
;;
arm
*
:Linux:
*
:
*
)
arm
*
:Linux:
*
:
*
)
eval
"
$set_cc_for_build
"
set_cc_for_build
if
echo
__ARM_EABI__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
if
echo
__ARM_EABI__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
|
grep
-q
__ARM_EABI__
|
grep
-q
__ARM_EABI__
then
then
...
@@ -971,7 +997,7 @@ EOF
...
@@ -971,7 +997,7 @@ EOF
echo
"
$UNAME_MACHINE
"
-unknown-linux-
"
$LIBC
"
echo
"
$UNAME_MACHINE
"
-unknown-linux-
"
$LIBC
"
exit
;;
exit
;;
mips:Linux:
*
:
*
|
mips64:Linux:
*
:
*
)
mips:Linux:
*
:
*
|
mips64:Linux:
*
:
*
)
eval
"
$set_cc_for_build
"
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
#undef CPU
#undef CPU
#undef
${
UNAME_MACHINE
}
#undef
${
UNAME_MACHINE
}
...
@@ -1285,7 +1311,7 @@ EOF
...
@@ -1285,7 +1311,7 @@ EOF
exit
;;
exit
;;
*
:Darwin:
*
:
*
)
*
:Darwin:
*
:
*
)
UNAME_PROCESSOR
=
`
uname
-p
`
||
UNAME_PROCESSOR
=
unknown
UNAME_PROCESSOR
=
`
uname
-p
`
||
UNAME_PROCESSOR
=
unknown
eval
"
$set_cc_for_build
"
set_cc_for_build
if
test
"
$UNAME_PROCESSOR
"
=
unknown
;
then
if
test
"
$UNAME_PROCESSOR
"
=
unknown
;
then
UNAME_PROCESSOR
=
powerpc
UNAME_PROCESSOR
=
powerpc
fi
fi
...
@@ -1358,6 +1384,7 @@ EOF
...
@@ -1358,6 +1384,7 @@ EOF
# "uname -m" is not consistent, so use $cputype instead. 386
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
# is converted to i386 for consistency with other x86
# operating systems.
# operating systems.
# shellcheck disable=SC2154
if
test
"
$cputype
"
=
386
;
then
if
test
"
$cputype
"
=
386
;
then
UNAME_MACHINE
=
i386
UNAME_MACHINE
=
i386
else
else
...
@@ -1414,6 +1441,9 @@ EOF
...
@@ -1414,6 +1441,9 @@ EOF
amd64:Isilon
\
OneFS:
*
:
*
)
amd64:Isilon
\
OneFS:
*
:
*
)
echo
x86_64-unknown-onefs
echo
x86_64-unknown-onefs
exit
;;
exit
;;
*
:Unleashed:
*
:
*
)
echo
"
$UNAME_MACHINE
"
-unknown-unleashed
"
$UNAME_RELEASE
"
exit
;;
esac
esac
echo
"
$0
: unable to guess system type"
>
&2
echo
"
$0
: unable to guess system type"
>
&2
...
...
config.sub
View file @
17f8dfd3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment