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
9787ad71
Commit
9787ad71
authored
Sep 27, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow short to be size_t
From-SVN: r12853
parent
51c0d897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
gcc/c-decl.c
+10
-8
No files found.
gcc/c-decl.c
View file @
9787ad71
...
...
@@ -2868,6 +2868,14 @@ init_decl_processing ()
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"long long unsigned int"
),
long_long_unsigned_type_node
));
short_integer_type_node
=
make_signed_type
(
SHORT_TYPE_SIZE
);
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"short int"
),
short_integer_type_node
));
short_unsigned_type_node
=
make_unsigned_type
(
SHORT_TYPE_SIZE
);
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"short unsigned int"
),
short_unsigned_type_node
));
/* `unsigned long' is the standard type for sizeof.
Traditionally, use a signed type.
Note that stddef.h uses `unsigned long',
...
...
@@ -2887,18 +2895,12 @@ init_decl_processing ()
TREE_TYPE
(
TYPE_SIZE
(
long_integer_type_node
))
=
sizetype
;
TREE_TYPE
(
TYPE_SIZE
(
long_long_integer_type_node
))
=
sizetype
;
TREE_TYPE
(
TYPE_SIZE
(
long_long_unsigned_type_node
))
=
sizetype
;
TREE_TYPE
(
TYPE_SIZE
(
short_integer_type_node
))
=
sizetype
;
TREE_TYPE
(
TYPE_SIZE
(
short_unsigned_type_node
))
=
sizetype
;
error_mark_node
=
make_node
(
ERROR_MARK
);
TREE_TYPE
(
error_mark_node
)
=
error_mark_node
;
short_integer_type_node
=
make_signed_type
(
SHORT_TYPE_SIZE
);
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"short int"
),
short_integer_type_node
));
short_unsigned_type_node
=
make_unsigned_type
(
SHORT_TYPE_SIZE
);
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"short unsigned int"
),
short_unsigned_type_node
));
/* Define both `signed char' and `unsigned char'. */
signed_char_type_node
=
make_signed_type
(
CHAR_TYPE_SIZE
);
pushdecl
(
build_decl
(
TYPE_DECL
,
get_identifier
(
"signed char"
),
...
...
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