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
6f7ccafa
Commit
6f7ccafa
authored
10 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: GOARCH values for ppc64 BE & LE
ppc64 for BE ppc64le for LE issue 8654 From-SVN: r217941
parent
12829505
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
7 deletions
+45
-7
libgo/configure
+32
-3
libgo/configure.ac
+11
-2
libgo/go/go/build/syslist.go
+1
-1
libgo/testsuite/gotest
+1
-1
No files found.
libgo/configure
View file @
6f7ccafa
...
...
@@ -637,6 +637,8 @@ LIBGO_IS_S390X_FALSE
LIBGO_IS_S390X_TRUE
LIBGO_IS_S390_FALSE
LIBGO_IS_S390_TRUE
LIBGO_IS_PPC64LE_FALSE
LIBGO_IS_PPC64LE_TRUE
LIBGO_IS_PPC64_FALSE
LIBGO_IS_PPC64_TRUE
LIBGO_IS_PPC_FALSE
...
...
@@ -11119,7 +11121,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
_LT_EOF
#line 1112
2
"configure"
#line 1112
4
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -11225,7 +11227,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
_LT_EOF
#line 112
28
"configure"
#line 112
30
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -13622,6 +13624,7 @@ is_m68k=no
mips_abi
=
unknown
is_ppc
=
no
is_ppc64
=
no
is_ppc64le
=
no
is_s390
=
no
is_s390x
=
no
is_sparc
=
no
...
...
@@ -13734,13 +13737,27 @@ _ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
is_ppc
=
yes
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
#error 64be
#endif
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
is_ppc64le
=
yes
else
is_ppc64
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
if
test
"
$is_ppc
"
=
"yes"
;
then
GOARCH
=
ppc
el
se
el
if
test
"
$is_ppc64
"
=
"yes"
;
then
GOARCH
=
ppc64
else
GOARCH
=
ppc64le
fi
;;
s390
*
-
*
-
*
)
...
...
@@ -13880,6 +13897,14 @@ else
LIBGO_IS_PPC64_FALSE
=
fi
if
test
$is_ppc64le
=
yes
;
then
LIBGO_IS_PPC64LE_TRUE
=
LIBGO_IS_PPC64LE_FALSE
=
'#'
else
LIBGO_IS_PPC64LE_TRUE
=
'#'
LIBGO_IS_PPC64LE_FALSE
=
fi
if
test
$is_s390
=
yes
;
then
LIBGO_IS_S390_TRUE
=
LIBGO_IS_S390_FALSE
=
'#'
...
...
@@ -15691,6 +15716,10 @@ if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
as_fn_error
"conditional
\"
LIBGO_IS_PPC64
\"
was never defined.
Usually this means the macro was only invoked conditionally."
"
$LINENO
"
5
fi
if
test
-z
"
${
LIBGO_IS_PPC64LE_TRUE
}
"
&&
test
-z
"
${
LIBGO_IS_PPC64LE_FALSE
}
"
;
then
as_fn_error
"conditional
\"
LIBGO_IS_PPC64LE
\"
was never defined.
Usually this means the macro was only invoked conditionally."
"
$LINENO
"
5
fi
if
test
-z
"
${
LIBGO_IS_S390_TRUE
}
"
&&
test
-z
"
${
LIBGO_IS_S390_FALSE
}
"
;
then
as_fn_error
"conditional
\"
LIBGO_IS_S390
\"
was never defined.
Usually this means the macro was only invoked conditionally."
"
$LINENO
"
5
...
...
This diff is collapsed.
Click to expand it.
libgo/configure.ac
View file @
6f7ccafa
...
...
@@ -194,6 +194,7 @@ is_m68k=no
mips_abi=unknown
is_ppc=no
is_ppc64=no
is_ppc64le=no
is_s390=no
is_s390x=no
is_sparc=no
...
...
@@ -266,11 +267,18 @@ changequote([,])dnl
#ifdef _ARCH_PPC64
#error 64-bit
#endif],
[is_ppc=yes], [is_ppc64=yes])
[is_ppc=yes],
[AC_COMPILE_IFELSE([
#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
#error 64be
#endif],
[is_ppc64le=yes],[is_ppc64=yes])])
if test "$is_ppc" = "yes"; then
GOARCH=ppc
el
se
el
if test "$is_ppc64" = "yes"; then
GOARCH=ppc64
else
GOARCH=ppc64le
fi
;;
s390*-*-*)
...
...
@@ -310,6 +318,7 @@ AM_CONDITIONAL(LIBGO_IS_MIPSN64, test $mips_abi = n64)
AM_CONDITIONAL(LIBGO_IS_MIPSO64, test $mips_abi = o64)
AM_CONDITIONAL(LIBGO_IS_PPC, test $is_ppc = yes)
AM_CONDITIONAL(LIBGO_IS_PPC64, test $is_ppc64 = yes)
AM_CONDITIONAL(LIBGO_IS_PPC64LE, test $is_ppc64le = yes)
AM_CONDITIONAL(LIBGO_IS_S390, test $is_s390 = yes)
AM_CONDITIONAL(LIBGO_IS_S390X, test $is_s390x = yes)
AM_CONDITIONAL(LIBGO_IS_SPARC, test $is_sparc = yes)
...
...
This diff is collapsed.
Click to expand it.
libgo/go/go/build/syslist.go
View file @
6f7ccafa
...
...
@@ -5,4 +5,4 @@
package
build
const
goosList
=
"darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows "
const
goarchList
=
"386 amd64 amd64p32 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 s390 s390x sparc sparc64 "
const
goarchList
=
"386 amd64 amd64p32 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64
ppc64le
s390 s390x sparc sparc64 "
This diff is collapsed.
Click to expand it.
libgo/testsuite/gotest
View file @
6f7ccafa
...
...
@@ -379,7 +379,7 @@ localname() {
{
text
=
"T"
case
"
$GOARCH
"
in
ppc64
)
text
=
"[TD]"
;;
ppc64
*
)
text
=
"[TD]"
;;
esac
symtogo
=
'sed -e s/_test/XXXtest/ -e s/.*_\([^_]*\.\)/\1/ -e s/XXXtest/_test/'
...
...
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