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
aed0ae9b
Commit
aed0ae9b
authored
Jan 01, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(plain_type_1): Distinguish some C integer types by name.
From-SVN: r3046
parent
fcd40e95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
gcc/sdbout.c
+28
-0
No files found.
gcc/sdbout.c
View file @
aed0ae9b
...
@@ -462,6 +462,34 @@ plain_type_1 (type)
...
@@ -462,6 +462,34 @@ plain_type_1 (type)
case
INTEGER_TYPE
:
case
INTEGER_TYPE
:
{
{
int
size
=
int_size_in_bytes
(
type
)
*
BITS_PER_UNIT
;
int
size
=
int_size_in_bytes
(
type
)
*
BITS_PER_UNIT
;
/* Carefully distinguish all the standard types of C,
without messing up if the language is not C.
Note that we check only for the names that contain spaces;
other names might occur by coincidence in other languages. */
if
(
TYPE_NAME
(
type
)
!=
0
&&
TREE_CODE
(
TYPE_NAME
(
type
))
==
TYPE_DECL
&&
DECL_NAME
(
TYPE_NAME
(
type
))
!=
0
&&
TREE_CODE
(
DECL_NAME
(
TYPE_NAME
(
type
)))
==
IDENTIFIER_NODE
)
{
char
*
name
=
IDENTIFIER_POINTER
(
DECL_NAME
(
TYPE_NAME
(
type
)));
if
(
!
strcmp
(
name
,
"unsigned char"
))
return
T_UCHAR
;
if
(
!
strcmp
(
name
,
"signed char"
))
return
T_CHAR
;
if
(
!
strcmp
(
name
,
"unsigned int"
))
return
T_UINT
;
if
(
!
strcmp
(
name
,
"short int"
))
return
T_SHORT
;
if
(
!
strcmp
(
name
,
"short unsigned int"
))
return
T_USHORT
;
if
(
!
strcmp
(
name
,
"long int"
))
return
T_LONG
;
if
(
!
strcmp
(
name
,
"long unsigned int"
))
return
T_ULONG
;
}
if
(
size
==
CHAR_TYPE_SIZE
)
if
(
size
==
CHAR_TYPE_SIZE
)
return
(
TREE_UNSIGNED
(
type
)
?
T_UCHAR
:
T_CHAR
);
return
(
TREE_UNSIGNED
(
type
)
?
T_UCHAR
:
T_CHAR
);
if
(
size
==
SHORT_TYPE_SIZE
)
if
(
size
==
SHORT_TYPE_SIZE
)
...
...
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