Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d4c74acc
Commit
d4c74acc
authored
Sep 23, 2009
by
Nick Clifton
Committed by
Nick Clifton
Sep 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config.sub, config.guess: Update from upstream sources.
From-SVN: r152065
parent
3c5ce3af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
83 deletions
+52
-83
ChangeLog
+4
-0
config.guess
+41
-80
config.sub
+7
-3
No files found.
ChangeLog
View file @
d4c74acc
2009-09-23 Nick Clifton <nickc@redhat.com>
* config.sub, config.guess: Update from upstream sources.
2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2009-09-22 Loren J. Rittle <ljrittle@acm.org>
* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Remove stray $$r/.
* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Remove stray $$r/.
...
...
config.guess
View file @
d4c74acc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
# Free Software Foundation, Inc.
timestamp
=
'2009-0
6-10
'
timestamp
=
'2009-0
9-23
'
# 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
...
@@ -27,16 +27,16 @@ timestamp='2009-06-10'
...
@@ -27,16 +27,16 @@ timestamp='2009-06-10'
# the same distribution terms that you use for the rest of that program.
# the same distribution terms that you use for the rest of that program.
# Originally written by Per Bothner
<per@bothner.com>.
# Originally written by Per Bothner
. Please send patches (context
#
Please send patches to <config-patches@gnu.org>. Submit a context
#
diff format) to <config-patches@gnu.org> and include a ChangeLog
#
diff and a properly formatted ChangeLog
entry.
# entry.
#
#
# This script attempts to guess a canonical system name similar to
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it exits with 1.
# exits with 0. Otherwise, it exits with 1.
#
#
#
The plan is that this can be called by configure scripts if you
#
You can get the latest version of this script from:
#
don't specify an explicit build system type.
#
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
me
=
`
echo
"
$0
"
| sed
-e
's,.*/,,'
`
me
=
`
echo
"
$0
"
| sed
-e
's,.*/,,'
`
...
@@ -854,6 +854,20 @@ EOF
...
@@ -854,6 +854,20 @@ EOF
i
*
86:Minix:
*
:
*
)
i
*
86:Minix:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-minix
echo
${
UNAME_MACHINE
}
-pc-minix
exit
;;
exit
;;
alpha:Linux:
*
:
*
)
case
`
sed
-n
'/^cpu model/s/^.*: \(.*\)/\1/p'
< /proc/cpuinfo
`
in
EV5
)
UNAME_MACHINE
=
alphaev5
;;
EV56
)
UNAME_MACHINE
=
alphaev56
;;
PCA56
)
UNAME_MACHINE
=
alphapca56
;;
PCA57
)
UNAME_MACHINE
=
alphapca56
;;
EV6
)
UNAME_MACHINE
=
alphaev6
;;
EV67
)
UNAME_MACHINE
=
alphaev67
;;
EV68
*
)
UNAME_MACHINE
=
alphaev68
;;
esac
objdump
--private-headers
/bin/sh |
grep
-q
ld.so.1
if
test
"
$?
"
=
0
;
then
LIBC
=
"libc1"
;
else
LIBC
=
""
;
fi
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
${
LIBC
}
exit
;;
arm
*
:Linux:
*
:
*
)
arm
*
:Linux:
*
:
*
)
eval
$set_cc_for_build
eval
$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
\
...
@@ -876,6 +890,9 @@ EOF
...
@@ -876,6 +890,9 @@ EOF
frv:Linux:
*
:
*
)
frv:Linux:
*
:
*
)
echo
frv-unknown-linux-gnu
echo
frv-unknown-linux-gnu
exit
;;
exit
;;
i
*
86:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-linux-gnu
exit
;;
ia64:Linux:
*
:
*
)
ia64:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
exit
;;
exit
;;
...
@@ -911,29 +928,12 @@ EOF
...
@@ -911,29 +928,12 @@ EOF
or32:Linux:
*
:
*
)
or32:Linux:
*
:
*
)
echo
or32-unknown-linux-gnu
echo
or32-unknown-linux-gnu
exit
;;
exit
;;
ppc:Linux:
*
:
*
)
echo
powerpc-unknown-linux-gnu
exit
;;
ppc64:Linux:
*
:
*
)
echo
powerpc64-unknown-linux-gnu
exit
;;
alpha:Linux:
*
:
*
)
case
`
sed
-n
'/^cpu model/s/^.*: \(.*\)/\1/p'
< /proc/cpuinfo
`
in
EV5
)
UNAME_MACHINE
=
alphaev5
;;
EV56
)
UNAME_MACHINE
=
alphaev56
;;
PCA56
)
UNAME_MACHINE
=
alphapca56
;;
PCA57
)
UNAME_MACHINE
=
alphapca56
;;
EV6
)
UNAME_MACHINE
=
alphaev6
;;
EV67
)
UNAME_MACHINE
=
alphaev67
;;
EV68
*
)
UNAME_MACHINE
=
alphaev68
;;
esac
objdump
--private-headers
/bin/sh |
grep
-q
ld.so.1
if
test
"
$?
"
=
0
;
then
LIBC
=
"libc1"
;
else
LIBC
=
""
;
fi
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
${
LIBC
}
exit
;;
padre:Linux:
*
:
*
)
padre:Linux:
*
:
*
)
echo
sparc-unknown-linux-gnu
echo
sparc-unknown-linux-gnu
exit
;;
exit
;;
parisc64:Linux:
*
:
*
|
hppa64:Linux:
*
:
*
)
echo
hppa64-unknown-linux-gnu
exit
;;
parisc:Linux:
*
:
*
|
hppa:Linux:
*
:
*
)
parisc:Linux:
*
:
*
|
hppa:Linux:
*
:
*
)
# Look for CPU level
# Look for CPU level
case
`
grep
'^cpu[^a-z]*:'
/proc/cpuinfo 2>/dev/null | cut
-d
' '
-f2
`
in
case
`
grep
'^cpu[^a-z]*:'
/proc/cpuinfo 2>/dev/null | cut
-d
' '
-f2
`
in
...
@@ -942,8 +942,11 @@ EOF
...
@@ -942,8 +942,11 @@ EOF
*
)
echo
hppa-unknown-linux-gnu
;;
*
)
echo
hppa-unknown-linux-gnu
;;
esac
esac
exit
;;
exit
;;
parisc64:Linux:
*
:
*
|
hppa64:Linux:
*
:
*
)
ppc64:Linux:
*
:
*
)
echo
hppa64-unknown-linux-gnu
echo
powerpc64-unknown-linux-gnu
exit
;;
ppc:Linux:
*
:
*
)
echo
powerpc-unknown-linux-gnu
exit
;;
exit
;;
s390:Linux:
*
:
*
|
s390x:Linux:
*
:
*
)
s390:Linux:
*
:
*
|
s390x:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-ibm-linux
echo
${
UNAME_MACHINE
}
-ibm-linux
...
@@ -966,58 +969,6 @@ EOF
...
@@ -966,58 +969,6 @@ EOF
xtensa
*
:Linux:
*
:
*
)
xtensa
*
:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
exit
;;
exit
;;
i
*
86:Linux:
*
:
*
)
# The BFD linker knows what the default object file format is, so
# first see if it will tell us. cd to the root directory to prevent
# problems with other programs or directories called `ld' in the path.
# Set LC_ALL=C to ensure ld outputs messages in English.
ld_supported_targets
=
`
cd
/
;
LC_ALL
=
C ld
--help
2>&1
\
| sed
-ne
'/supported targets:/!d
s/[ ][ ]*/ /g
s/.*supported targets: *//
s/ .*//
p'
`
case
"
$ld_supported_targets
"
in
elf32-i386
)
TENTATIVE
=
"
${
UNAME_MACHINE
}
-pc-linux-gnu"
;;
esac
# Determine whether the default compiler is a.out or elf
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#include <features.h>
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
LIBC=gnu
# else
LIBC=gnulibc1
# endif
# else
LIBC=gnulibc1
# endif
#else
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
LIBC=gnu
#else
LIBC=gnuaout
#endif
#endif
#ifdef __dietlibc__
LIBC=dietlibc
#endif
EOF
eval
"
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null | sed
-n
'
/^LIBC/{
s: ::g
p
}'
`
"
test
x
"
${
LIBC
}
"
!=
x
&&
{
echo
"
${
UNAME_MACHINE
}
-pc-linux-
${
LIBC
}
"
exit
}
test
x
"
${
TENTATIVE
}
"
!=
x
&&
{
echo
"
${
TENTATIVE
}
"
;
exit
;
}
;;
i
*
86:DYNIX/ptx:4
*
:
*
)
i
*
86:DYNIX/ptx:4
*
:
*
)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# earlier versions are messed up and put the nodename in both
# earlier versions are messed up and put the nodename in both
...
@@ -1247,6 +1198,16 @@ EOF
...
@@ -1247,6 +1198,16 @@ EOF
*
:Darwin:
*
:
*
)
*
:Darwin:
*
:
*
)
UNAME_PROCESSOR
=
`
uname
-p
`
||
UNAME_PROCESSOR
=
unknown
UNAME_PROCESSOR
=
`
uname
-p
`
||
UNAME_PROCESSOR
=
unknown
case
$UNAME_PROCESSOR
in
case
$UNAME_PROCESSOR
in
i386
)
eval
$set_cc_for_build
if
[
"
$CC_FOR_BUILD
"
!=
'no_compiler_found'
]
;
then
if
(
echo
'#ifdef __LP64__'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
then
UNAME_PROCESSOR
=
"x86_64"
fi
fi
;;
unknown
)
UNAME_PROCESSOR
=
powerpc
;;
unknown
)
UNAME_PROCESSOR
=
powerpc
;;
esac
esac
echo
${
UNAME_PROCESSOR
}
-apple-darwin
${
UNAME_RELEASE
}
echo
${
UNAME_PROCESSOR
}
-apple-darwin
${
UNAME_RELEASE
}
...
...
config.sub
View file @
d4c74acc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
# Free Software Foundation, Inc.
timestamp
=
'2009-0
8-17
'
timestamp
=
'2009-0
9-23
'
# This file is (in principle) common to ALL GNU software.
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# The presence of a machine in this file suggests that SOME GNU software
...
@@ -32,13 +32,16 @@ timestamp='2009-08-17'
...
@@ -32,13 +32,16 @@ timestamp='2009-08-17'
# Please send patches to <config-patches@gnu.org>. Submit a context
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
# diff and a properly formatted
GNU
ChangeLog entry.
#
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# This file is supposed to be the same for all GNU packages
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# that are meaningful with *any* GNU software.
...
@@ -284,6 +287,7 @@ case $basic_machine in
...
@@ -284,6 +287,7 @@ case $basic_machine in
|
pdp10
|
pdp11
|
pj
|
pjl
\
|
pdp10
|
pdp11
|
pj
|
pjl
\
|
powerpc
|
powerpc64
|
powerpc64le
|
powerpcle
|
ppcbe
\
|
powerpc
|
powerpc64
|
powerpc64le
|
powerpcle
|
ppcbe
\
|
pyramid
\
|
pyramid
\
|
rx
\
|
score
\
|
score
\
|
sh
|
sh[1234]
|
sh[24]a
|
sh[24]aeb
|
sh[23]e
|
sh[34]eb
|
sheb
|
shbe
|
shle
|
sh[1234]le
|
sh3ele
\
|
sh
|
sh[1234]
|
sh[24]a
|
sh[24]aeb
|
sh[23]e
|
sh[34]eb
|
sheb
|
shbe
|
shle
|
sh[1234]le
|
sh3ele
\
|
sh64
|
sh64le
\
|
sh64
|
sh64le
\
...
@@ -368,7 +372,7 @@ case $basic_machine in
...
@@ -368,7 +372,7 @@ case $basic_machine in
|
pdp10-
*
|
pdp11-
*
|
pj-
*
|
pjl-
*
|
pn-
*
|
power-
*
\
|
pdp10-
*
|
pdp11-
*
|
pj-
*
|
pjl-
*
|
pn-
*
|
power-
*
\
|
powerpc-
*
|
powerpc64-
*
|
powerpc64le-
*
|
powerpcle-
*
|
ppcbe-
*
\
|
powerpc-
*
|
powerpc64-
*
|
powerpc64le-
*
|
powerpcle-
*
|
ppcbe-
*
\
|
pyramid-
*
\
|
pyramid-
*
\
|
romp-
*
|
rs6000-
*
\
|
romp-
*
|
rs6000-
*
|
rx-
*
\
|
sh-
*
|
sh[1234]-
*
|
sh[24]a-
*
|
sh[24]aeb-
*
|
sh[23]e-
*
|
sh[34]eb-
*
|
sheb-
*
|
shbe-
*
\
|
sh-
*
|
sh[1234]-
*
|
sh[24]a-
*
|
sh[24]aeb-
*
|
sh[23]e-
*
|
sh[34]eb-
*
|
sheb-
*
|
shbe-
*
\
|
shle-
*
|
sh[1234]le-
*
|
sh3ele-
*
|
sh64-
*
|
sh64le-
*
\
|
shle-
*
|
sh[1234]le-
*
|
sh3ele-
*
|
sh64-
*
|
sh64le-
*
\
|
sparc-
*
|
sparc64-
*
|
sparc64b-
*
|
sparc64v-
*
|
sparc86x-
*
|
sparclet-
*
\
|
sparc-
*
|
sparc64-
*
|
sparc64b-
*
|
sparc64v-
*
|
sparc86x-
*
|
sparclet-
*
\
...
...
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