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
315a02da
Commit
315a02da
authored
May 06, 2010
by
Maxim Kuvyrkov
Committed by
Maxim Kuvyrkov
May 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (initializer_zerop): Handle STRING_CST.
From-SVN: r159103
parent
3734d960
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
gcc/ChangeLog
+4
-0
gcc/tree.c
+13
-0
No files found.
gcc/ChangeLog
View file @
315a02da
2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
* tree.c (initializer_zerop): Handle STRING_CST.
2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 40989
...
...
gcc/tree.c
View file @
315a02da
...
...
@@ -9414,6 +9414,19 @@ initializer_zerop (const_tree init)
return
true
;
}
case
STRING_CST
:
{
int
i
;
/* We need to loop through all elements to handle cases like
"\0" and "\0foobar". */
for
(
i
=
0
;
i
<
TREE_STRING_LENGTH
(
init
);
++
i
)
if
(
TREE_STRING_POINTER
(
init
)[
i
]
!=
'\0'
)
return
false
;
return
true
;
}
default
:
return
false
;
}
...
...
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