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
7e53036d
Commit
7e53036d
authored
Jul 20, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_type): For array type, state the size.
From-SVN: r1634
parent
e5d91d5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
gcc/c-aux-info.c
+12
-1
No files found.
gcc/c-aux-info.c
View file @
7e53036d
...
...
@@ -384,7 +384,18 @@ gen_type (ret_val, t, style)
return
ret_val
;
case
ARRAY_TYPE
:
ret_val
=
gen_type
(
concat
(
ret_val
,
"[]"
),
TREE_TYPE
(
t
),
style
);
if
(
TYPE_SIZE
(
t
)
==
0
||
TREE_CODE
(
TYPE_SIZE
(
t
))
!=
INTEGER_CST
)
ret_val
=
gen_type
(
concat
(
ret_val
,
"[]"
),
TREE_TYPE
(
t
),
style
);
else
if
(
int_size_in_bytes
(
t
)
==
0
)
ret_val
=
gen_type
(
concat
(
ret_val
,
"[0]"
),
TREE_TYPE
(
t
),
style
);
else
{
int
size
=
(
int_size_in_bytes
(
t
)
/
int_size_in_bytes
(
TREE_TYPE
(
t
)));
char
buff
[
10
];
sprintf
(
buff
,
"[%d]"
,
size
);
ret_val
=
gen_type
(
concat
(
ret_val
,
buff
),
TREE_TYPE
(
t
),
style
);
}
break
;
case
FUNCTION_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