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
e4118500
Commit
e4118500
authored
Dec 01, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: add error to list of built-in types.
From-SVN: r181889
parent
b0d0a291
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
+4
-1
gcc/go/gofrontend/export.cc
+1
-0
gcc/go/gofrontend/export.h
+2
-1
gcc/go/gofrontend/import.cc
+1
-0
No files found.
gcc/go/gofrontend/export.cc
View file @
e4118500
...
@@ -337,6 +337,7 @@ Export::register_builtin_types(Gogo* gogo)
...
@@ -337,6 +337,7 @@ Export::register_builtin_types(Gogo* gogo)
this
->
register_builtin_type
(
gogo
,
"uintptr"
,
BUILTIN_UINTPTR
);
this
->
register_builtin_type
(
gogo
,
"uintptr"
,
BUILTIN_UINTPTR
);
this
->
register_builtin_type
(
gogo
,
"bool"
,
BUILTIN_BOOL
);
this
->
register_builtin_type
(
gogo
,
"bool"
,
BUILTIN_BOOL
);
this
->
register_builtin_type
(
gogo
,
"string"
,
BUILTIN_STRING
);
this
->
register_builtin_type
(
gogo
,
"string"
,
BUILTIN_STRING
);
this
->
register_builtin_type
(
gogo
,
"error"
,
BUILTIN_ERROR
);
}
}
// Register one builtin type in the export table.
// Register one builtin type in the export table.
...
...
gcc/go/gofrontend/export.h
View file @
e4118500
...
@@ -39,8 +39,9 @@ enum Builtin_code
...
@@ -39,8 +39,9 @@ enum Builtin_code
BUILTIN_STRING
=
-
16
,
BUILTIN_STRING
=
-
16
,
BUILTIN_COMPLEX64
=
-
17
,
BUILTIN_COMPLEX64
=
-
17
,
BUILTIN_COMPLEX128
=
-
18
,
BUILTIN_COMPLEX128
=
-
18
,
BUILTIN_ERROR
=
-
19
,
SMALLEST_BUILTIN_CODE
=
-
1
8
SMALLEST_BUILTIN_CODE
=
-
1
9
};
};
// This class manages exporting Go declarations. It handles the main
// This class manages exporting Go declarations. It handles the main
...
...
gcc/go/gofrontend/import.cc
View file @
e4118500
...
@@ -706,6 +706,7 @@ Import::register_builtin_types(Gogo* gogo)
...
@@ -706,6 +706,7 @@ Import::register_builtin_types(Gogo* gogo)
this
->
register_builtin_type
(
gogo
,
"uintptr"
,
BUILTIN_UINTPTR
);
this
->
register_builtin_type
(
gogo
,
"uintptr"
,
BUILTIN_UINTPTR
);
this
->
register_builtin_type
(
gogo
,
"bool"
,
BUILTIN_BOOL
);
this
->
register_builtin_type
(
gogo
,
"bool"
,
BUILTIN_BOOL
);
this
->
register_builtin_type
(
gogo
,
"string"
,
BUILTIN_STRING
);
this
->
register_builtin_type
(
gogo
,
"string"
,
BUILTIN_STRING
);
this
->
register_builtin_type
(
gogo
,
"error"
,
BUILTIN_ERROR
);
}
}
// Register a single builtin type.
// Register a single builtin type.
...
...
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