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
b6fc7110
Commit
b6fc7110
authored
Sep 24, 2001
by
DJ Delorie
Committed by
DJ Delorie
Sep 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
From-SVN: r45785
parent
1b47b7ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gcc/ChangeLog
+4
-0
gcc/varasm.c
+7
-0
No files found.
gcc/ChangeLog
View file @
b6fc7110
2001
-
09
-
24
DJ
Delorie
<
dj
@redhat
.
com
>
*
varasm
.
c
(
array_size_for_constructor
)
:
Handle
STRING_CSTs
also
.
2001
-
09
-
24
Ulrich
Weigand
<
uweigand
@de
.
ibm
.
com
>:
*
flow
.
c
(
delete_dead_jumptables
)
:
Delete
jumptable
if
the
only
...
...
gcc/varasm.c
View file @
b6fc7110
...
...
@@ -4585,6 +4585,13 @@ array_size_for_constructor (val)
{
tree
max_index
,
i
;
if
(
TREE_CODE
(
val
)
==
STRING_CST
)
{
HOST_WIDE_INT
len
=
TREE_STRING_LENGTH
(
val
);
HOST_WIDE_INT
esz
=
int_size_in_bytes
(
TREE_TYPE
(
TREE_TYPE
(
val
)));
HOST_WIDE_INT
tsz
=
len
*
esz
;
return
tsz
;
}
max_index
=
NULL_TREE
;
for
(
i
=
CONSTRUCTOR_ELTS
(
val
);
i
;
i
=
TREE_CHAIN
(
i
))
{
...
...
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