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
7a976aea
Commit
7a976aea
authored
Nov 08, 1996
by
David J. MacKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches from bug-gnu-utils to support more architectures
From-SVN: r13108
parent
1ac876be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
25 deletions
+53
-25
gcc/config.guess
+50
-19
gcc/config.sub
+3
-6
No files found.
gcc/config.guess
View file @
7a976aea
...
@@ -67,16 +67,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
...
@@ -67,16 +67,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
amiga:NetBSD:
*
:
*
)
amiga:NetBSD:
*
:
*
)
echo
m68k-cbm-netbsd
${
UNAME_RELEASE
}
echo
m68k-cbm-netbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
amiga:OpenBSD:
*
:
*
)
echo
m68k-cbm-openbsd
${
UNAME_RELEASE
}
exit
0
;;
arm:RISC
*
:1.[012]
*
:
*
|
arm:riscix:1.[012]
*
:
*
)
arm:RISC
*
:1.[012]
*
:
*
|
arm:riscix:1.[012]
*
:
*
)
echo
arm-acorn-riscix
${
UNAME_RELEASE
}
echo
arm-acorn-riscix
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
Pyramid
*
:OSx
*
:
*
:
*
)
Pyramid
*
:OSx
*
:
*
:
*
|
MIS
*
:OSx
*
:
*
:
*
)
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
if
test
"
`
(
/bin/universe
)
2>/dev/null
`
"
=
att
;
then
if
test
"
`
(
/bin/universe
)
2>/dev/null
`
"
=
att
;
then
echo
pyramid-pyramid-sysv3
echo
pyramid-pyramid-sysv3
else
else
echo
pyramid-pyramid-bsd
echo
pyramid-pyramid-bsd
fi
fi
exit
0
;;
exit
0
;;
NILE:
*
:
*
:dcosx
)
echo
pyramid-pyramid-svr4
exit
0
;;
sun4
*
:SunOS:5.
*
:
*
)
sun4
*
:SunOS:5.
*
:
*
)
echo
sparc-sun-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
echo
sparc-sun-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
exit
0
;;
...
@@ -104,12 +111,21 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
...
@@ -104,12 +111,21 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
atari
*
:NetBSD:
*
:
*
)
atari
*
:NetBSD:
*
:
*
)
echo
m68k-atari-netbsd
${
UNAME_RELEASE
}
echo
m68k-atari-netbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
atari
*
:OpenBSD:
*
:
*
)
echo
m68k-atari-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sun3
*
:NetBSD:
*
:
*
)
sun3
*
:NetBSD:
*
:
*
)
echo
m68k-sun-netbsd
${
UNAME_RELEASE
}
echo
m68k-sun-netbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
sun3
*
:OpenBSD:
*
:
*
)
echo
m68k-sun-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mac68k:NetBSD:
*
:
*
)
mac68k:NetBSD:
*
:
*
)
echo
m68k-apple-netbsd
${
UNAME_RELEASE
}
echo
m68k-apple-netbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
mac68k:OpenBSD:
*
:
*
)
echo
m68k-apple-openbsd
${
UNAME_RELEASE
}
exit
0
;;
RISC
*
:ULTRIX:
*
:
*
)
RISC
*
:ULTRIX:
*
:
*
)
echo
mips-dec-ultrix
${
UNAME_RELEASE
}
echo
mips-dec-ultrix
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
...
@@ -179,10 +195,10 @@ EOF
...
@@ -179,10 +195,10 @@ EOF
*
:IRIX
*
:
*
:
*
)
*
:IRIX
*
:
*
:
*
)
echo
mips-sgi-irix
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/-/_/g'
`
echo
mips-sgi-irix
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/-/_/g'
`
exit
0
;;
exit
0
;;
????????:AIX?:[12].1:2
)
# AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
????????:AIX?:[12].1:2
)
# AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo
romp-ibm-aix
# uname -m gives an 8 hex-code CPU id
echo
romp-ibm-aix
# uname -m gives an 8 hex-code CPU id
exit
0
;;
# Note that: echo "'`uname -s`'" gives 'AIX '
exit
0
;;
# Note that: echo "'`uname -s`'" gives 'AIX '
i
[34]
86:AIX:
*
:
*
)
i
?
86:AIX:
*
:
*
)
echo
i386-ibm-aix
echo
i386-ibm-aix
exit
0
;;
exit
0
;;
*
:AIX:2:3
)
*
:AIX:2:3
)
...
@@ -331,7 +347,10 @@ EOF
...
@@ -331,7 +347,10 @@ EOF
hp3[0-9][05]:NetBSD:
*
:
*
)
hp3[0-9][05]:NetBSD:
*
:
*
)
echo
m68k-hp-netbsd
${
UNAME_RELEASE
}
echo
m68k-hp-netbsd
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
i[34]86:BSD/386:
*
:
*
|
*
:BSD/OS:
*
:
*
)
hp3[0-9][05]:OpenBSD:
*
:
*
)
echo
m68k-hp-openbsd
${
UNAME_RELEASE
}
exit
0
;;
i?86:BSD/386:
*
:
*
|
*
:BSD/OS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-bsdi
${
UNAME_RELEASE
}
echo
${
UNAME_MACHINE
}
-pc-bsdi
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
*
:FreeBSD:
*
:
*
)
*
:FreeBSD:
*
:
*
)
...
@@ -340,6 +359,9 @@ EOF
...
@@ -340,6 +359,9 @@ EOF
*
:NetBSD:
*
:
*
)
*
:NetBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-netbsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
echo
${
UNAME_MACHINE
}
-unknown-netbsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
exit
0
;;
exit
0
;;
*
:OpenBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-openbsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
exit
0
;;
i
*
:CYGWIN
*
:
*
)
i
*
:CYGWIN
*
:
*
)
echo
i386-pc-cygwin32
echo
i386-pc-cygwin32
exit
0
;;
exit
0
;;
...
@@ -356,11 +378,11 @@ EOF
...
@@ -356,11 +378,11 @@ EOF
# The BFD linker knows what the default object file format is, so
# The BFD linker knows what the default object file format is, so
# first see if it will tell us.
# first see if it will tell us.
ld_help_string
=
`
ld
--help
2>&1
`
ld_help_string
=
`
ld
--help
2>&1
`
if
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: elf_i
[345]
86"
;
then
if
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: elf_i
.
86"
;
then
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnu"
;
exit
0
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnu"
;
exit
0
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: i
[345]
86linux"
;
then
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: i
.
86linux"
;
then
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnuaout"
;
exit
0
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnuaout"
;
exit
0
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: i
[345]
86coff"
;
then
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: i
.
86coff"
;
then
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnucoff"
;
exit
0
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnucoff"
;
exit
0
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: m68kelf"
;
then
elif
echo
"
$ld_help_string
"
|
grep
>
/dev/null 2>&1
"supported emulations: m68kelf"
;
then
echo
"
${
UNAME_MACHINE
}
-unknown-linux-gnu"
;
exit
0
echo
"
${
UNAME_MACHINE
}
-unknown-linux-gnu"
;
exit
0
...
@@ -396,17 +418,17 @@ EOF
...
@@ -396,17 +418,17 @@ EOF
fi
;;
fi
;;
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
# are messed up and put the nodename in both sysname and nodename.
# are messed up and put the nodename in both sysname and nodename.
i
[34]
86:DYNIX/ptx:4
*
:
*
)
i
?
86:DYNIX/ptx:4
*
:
*
)
echo
i386-sequent-sysv4
echo
i386-sequent-sysv4
exit
0
;;
exit
0
;;
i
[34]86:
*
:4.
*
:
*
|
i[34]
86:SYSTEM_V:4.
*
:
*
)
i
?86:
*
:4.
*
:
*
|
i?
86:SYSTEM_V:4.
*
:
*
)
if
grep
Novell /usr/include/link.h
>
/dev/null 2>/dev/null
;
then
if
grep
Novell /usr/include/link.h
>
/dev/null 2>/dev/null
;
then
echo
${
UNAME_MACHINE
}
-univel-sysv
${
UNAME_RELEASE
}
echo
${
UNAME_MACHINE
}
-univel-sysv
${
UNAME_RELEASE
}
else
else
echo
${
UNAME_MACHINE
}
-pc-sysv
${
UNAME_RELEASE
}
echo
${
UNAME_MACHINE
}
-pc-sysv
${
UNAME_RELEASE
}
fi
fi
exit
0
;;
exit
0
;;
i
[34]
86:
*
:3.2:
*
)
i
?
86:
*
:3.2:
*
)
if
test
-f
/usr/options/cb.name
;
then
if
test
-f
/usr/options/cb.name
;
then
UNAME_REL
=
`
sed
-n
's/.*Version //p'
</usr/options/cb.name
`
UNAME_REL
=
`
sed
-n
's/.*Version //p'
</usr/options/cb.name
`
echo
${
UNAME_MACHINE
}
-pc-isc
$UNAME_REL
echo
${
UNAME_MACHINE
}
-pc-isc
$UNAME_REL
...
@@ -437,7 +459,7 @@ EOF
...
@@ -437,7 +459,7 @@ EOF
# "miniframe"
# "miniframe"
echo
m68010-convergent-sysv
echo
m68010-convergent-sysv
exit
0
;;
exit
0
;;
M680[234]0
:
*
:R3V[567]
*
:
*
)
m68
*
:
*
:R3V[567]
*
:
*
)
test
-r
/sysV68
&&
echo
'm68k-motorola-sysv'
&&
exit
0
;;
test
-r
/sysV68
&&
echo
'm68k-motorola-sysv'
&&
exit
0
;;
3[34]??:
*
:4.0:3.0
|
3[34]??,
*
:
*
:4.0:3.0
|
4850:
*
:4.0:3.0
)
3[34]??:
*
:4.0:3.0
|
3[34]??,
*
:
*
:4.0:3.0
|
4850:
*
:4.0:3.0
)
UNAME_REL
=
4.3
UNAME_REL
=
4.3
...
@@ -451,20 +473,20 @@ EOF
...
@@ -451,20 +473,20 @@ EOF
3[34]??:
*
:4.0:
*
|
3[34]??,
*
:
*
:4.0:
*
)
3[34]??:
*
:4.0:
*
|
3[34]??,
*
:
*
:4.0:
*
)
uname
-p
2>/dev/null |
grep
86
>
/dev/null
\
uname
-p
2>/dev/null |
grep
86
>
/dev/null
\
&&
echo
i486-ncr-sysv4
&&
exit
0
;;
&&
echo
i486-ncr-sysv4
&&
exit
0
;;
m68
0[234]0:LynxOS:2.[23]
*
:
*
)
m68
*
:LynxOS:2.
*
:
*
)
echo
m68k-
lynx
-lynxos
${
UNAME_RELEASE
}
echo
m68k-
unknown
-lynxos
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
mc68030:UNIX_System_V:4.
*
:
*
)
mc68030:UNIX_System_V:4.
*
:
*
)
echo
m68k-atari-sysv4
echo
m68k-atari-sysv4
exit
0
;;
exit
0
;;
i
[34]86:LynxOS:2.[23]
*
:
*
)
i
?86:LynxOS:2.
*
:
*
)
echo
i386-
lynx
-lynxos
${
UNAME_RELEASE
}
echo
i386-
unknown
-lynxos
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
TSUNAMI:LynxOS:2.
[23]
*
:
*
)
TSUNAMI:LynxOS:2.
*
:
*
)
echo
sparc-
lynx
-lynxos
${
UNAME_RELEASE
}
echo
sparc-
unknown
-lynxos
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
rs6000:LynxOS:2.
[23]
*
:
*
)
rs6000:LynxOS:2.
*
:
*
|
PowerPC:LynxOS:2.
*
:
*
)
echo
rs6000-
lynx
-lynxos
${
UNAME_RELEASE
}
echo
rs6000-
unknown
-lynxos
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
RM
*
:SINIX-
*
:
*
:
*
)
RM
*
:SINIX-
*
:
*
:
*
)
echo
mips-sni-sysv4
echo
mips-sni-sysv4
...
@@ -477,6 +499,15 @@ EOF
...
@@ -477,6 +499,15 @@ EOF
echo
ns32k-sni-sysv
echo
ns32k-sni-sysv
fi
fi
exit
0
;;
exit
0
;;
*
:UNIX_System_V:4
*
:FTX
*
)
# From Gerald Hewes <hewes@openmarket.com>.
# How about differentiating between stratus architectures? -djm
echo
hppa1.1-stratus-sysv4
exit
0
;;
*
:
*
:
*
:FTX
*
)
# From seanf@swdc.stratus.com.
echo
i860-stratus-sysv4
exit
0
;;
mc68
*
:A/UX:
*
:
*
)
mc68
*
:A/UX:
*
:
*
)
echo
m68k-apple-aux
${
UNAME_RELEASE
}
echo
m68k-apple-aux
${
UNAME_RELEASE
}
exit
0
;;
exit
0
;;
...
...
gcc/config.sub
View file @
7a976aea
...
@@ -151,7 +151,7 @@ case $basic_machine in
...
@@ -151,7 +151,7 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
# Some are omitted here because they have special meanings below.
tahoe
|
i860
|
m68k
|
m68000
|
m88k
|
ns32k
|
arm
\
tahoe
|
i860
|
m68k
|
m68000
|
m88k
|
ns32k
|
arm
\
|
arme[lb]
|
pyramid
\
|
arme[lb]
|
pyramid
\
|
tron
|
a29k
|
580
|
i960
|
h8300
|
hppa1.0
|
hppa1.1
\
|
tron
|
a29k
|
580
|
i960
|
h8300
|
hppa
|
hppa
1.0
|
hppa1.1
\
|
alpha
|
we32k
|
ns16k
|
clipper
|
i370
|
sh
\
|
alpha
|
we32k
|
ns16k
|
clipper
|
i370
|
sh
\
|
powerpc
|
powerpcle
|
1750a
|
dsp16xx
|
mips64
|
mipsel
\
|
powerpc
|
powerpcle
|
1750a
|
dsp16xx
|
mips64
|
mipsel
\
|
pdp11
|
mips64el
|
mips64orion
|
mips64orionel
\
|
pdp11
|
mips64el
|
mips64orion
|
mips64orionel
\
...
@@ -174,7 +174,7 @@ case $basic_machine in
...
@@ -174,7 +174,7 @@ case $basic_machine in
|
sparc-
*
|
ns32k-
*
|
fx80-
*
|
arm-
*
|
c[123]
*
\
|
sparc-
*
|
ns32k-
*
|
fx80-
*
|
arm-
*
|
c[123]
*
\
|
mips-
*
|
pyramid-
*
|
tron-
*
|
a29k-
*
|
romp-
*
|
rs6000-
*
|
power-
*
\
|
mips-
*
|
pyramid-
*
|
tron-
*
|
a29k-
*
|
romp-
*
|
rs6000-
*
|
power-
*
\
|
none-
*
|
580-
*
|
cray2-
*
|
h8300-
*
|
i960-
*
|
xmp-
*
|
ymp-
*
\
|
none-
*
|
580-
*
|
cray2-
*
|
h8300-
*
|
i960-
*
|
xmp-
*
|
ymp-
*
\
|
hppa1.0-
*
|
hppa1.1-
*
|
alpha-
*
|
we32k-
*
|
cydra-
*
|
ns16k-
*
\
|
hppa
-
*
|
hppa
1.0-
*
|
hppa1.1-
*
|
alpha-
*
|
we32k-
*
|
cydra-
*
|
ns16k-
*
\
|
pn-
*
|
np1-
*
|
xps100-
*
|
clipper-
*
|
orion-
*
|
sparclite-
*
\
|
pn-
*
|
np1-
*
|
xps100-
*
|
clipper-
*
|
orion-
*
|
sparclite-
*
\
|
pdp11-
*
|
sh-
*
|
powerpc-
*
|
powerpcle-
*
|
sparc64-
*
|
mips64-
*
|
mipsel-
*
\
|
pdp11-
*
|
sh-
*
|
powerpc-
*
|
powerpcle-
*
|
sparc64-
*
|
mips64-
*
|
mipsel-
*
\
|
mips64el-
*
|
mips64orion-
*
|
mips64orionel-
*
)
|
mips64el-
*
|
mips64orion-
*
|
mips64orionel-
*
)
...
@@ -681,7 +681,7 @@ case $os in
...
@@ -681,7 +681,7 @@ case $os in
|
-amigados
*
|
-msdos
*
|
-newsos
*
|
-unicos
*
|
-aof
*
|
-aos
*
\
|
-amigados
*
|
-msdos
*
|
-newsos
*
|
-unicos
*
|
-aof
*
|
-aos
*
\
|
-nindy
*
|
-vxsim
*
|
-vxworks
*
|
-ebmon
*
|
-hms
*
|
-mvs
*
\
|
-nindy
*
|
-vxsim
*
|
-vxworks
*
|
-ebmon
*
|
-hms
*
|
-mvs
*
\
|
-clix
*
|
-riscos
*
|
-uniplus
*
|
-iris
*
|
-rtu
*
|
-xenix
*
\
|
-clix
*
|
-riscos
*
|
-uniplus
*
|
-iris
*
|
-rtu
*
|
-xenix
*
\
|
-hiux
*
|
-386bsd
*
|
-netbsd
*
|
-freebsd
*
|
-riscix
*
\
|
-hiux
*
|
-386bsd
*
|
-netbsd
*
|
-
openbsd
*
|
-
freebsd
*
|
-riscix
*
\
|
-lynxos
*
|
-bosx
*
|
-nextstep
*
|
-cxux
*
|
-aout
*
|
-elf
*
\
|
-lynxos
*
|
-bosx
*
|
-nextstep
*
|
-cxux
*
|
-aout
*
|
-elf
*
\
|
-ptx
*
|
-coff
*
|
-ecoff
*
|
-winnt
*
|
-domain
*
|
-vsta
*
\
|
-ptx
*
|
-coff
*
|
-ecoff
*
|
-winnt
*
|
-domain
*
|
-vsta
*
\
|
-udi
*
|
-eabi
*
|
-lites
*
|
-ieee
*
|
-go32
*
|
-aux
*
\
|
-udi
*
|
-eabi
*
|
-lites
*
|
-ieee
*
|
-go32
*
|
-aux
*
\
...
@@ -880,9 +880,6 @@ case $basic_machine in
...
@@ -880,9 +880,6 @@ case $basic_machine in
-sunos
*
)
-sunos
*
)
vendor
=
sun
vendor
=
sun
;;
;;
-lynxos
*
)
vendor
=
lynx
;;
-aix
*
)
-aix
*
)
vendor
=
ibm
vendor
=
ibm
;;
;;
...
...
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