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
8273ed80
Commit
8273ed80
authored
Nov 06, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler, runtime: Size of int is now 64 bits on x86_64.
From-SVN: r193255
parent
fb3f38da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gcc/go/gofrontend/gogo.cc
+2
-2
libgo/runtime/runtime.h
+2
-2
No files found.
gcc/go/gofrontend/gogo.cc
View file @
8273ed80
...
...
@@ -23,8 +23,7 @@
// Class Gogo.
Gogo
::
Gogo
(
Backend
*
backend
,
Linemap
*
linemap
,
int
int_type_size
,
int
pointer_size
)
Gogo
::
Gogo
(
Backend
*
backend
,
Linemap
*
linemap
,
int
,
int
pointer_size
)
:
backend_
(
backend
),
linemap_
(
linemap
),
package_
(
NULL
),
...
...
@@ -83,6 +82,7 @@ Gogo::Gogo(Backend* backend, Linemap* linemap, int int_type_size,
this
->
add_named_type
(
Type
::
make_complex_type
(
"complex128"
,
128
,
RUNTIME_TYPE_KIND_COMPLEX128
));
int
int_type_size
=
pointer_size
;
if
(
int_type_size
<
32
)
int_type_size
=
32
;
this
->
add_named_type
(
Type
::
make_integer_type
(
"uint"
,
true
,
...
...
libgo/runtime/runtime.h
View file @
8273ed80
...
...
@@ -41,8 +41,8 @@ typedef double float64 __attribute__ ((mode (DF)));
typedef
signed
int
intptr
__attribute__
((
mode
(
pointer
)));
typedef
unsigned
int
uintptr
__attribute__
((
mode
(
pointer
)));
typedef
int
intgo
;
// Go's int
typedef
u
nsigned
int
uintgo
;
// Go's uint
typedef
int
ptr
intgo
;
// Go's int
typedef
u
intptr
uintgo
;
// Go's uint
/* Defined types. */
...
...
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