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
5b73d2ab
Commit
5b73d2ab
authored
Sep 16, 2016
by
Marek Polacek
Committed by
Marek Polacek
Sep 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
From-SVN: r240185
parent
45619677
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/c/ChangeLog
+4
-0
gcc/c/c-typeck.c
+2
-2
No files found.
gcc/c/ChangeLog
View file @
5b73d2ab
2016
-
09
-
16
Marek
Polacek
<
polacek
@redhat
.
com
>
*
c
-
typeck
.
c
(
lvalue_p
)
:
Use
true
and
false
instead
of
1
and
0
.
2016
-
09
-
14
Marek
Polacek
<
polacek
@redhat
.
com
>
*
c
-
array
-
notation
.
c
(
create_cmp_incr
)
:
Use
false
instead
of
0
.
...
...
gcc/c/c-typeck.c
View file @
5b73d2ab
...
...
@@ -4631,7 +4631,7 @@ lvalue_p (const_tree ref)
case
COMPOUND_LITERAL_EXPR
:
case
STRING_CST
:
return
1
;
return
true
;
case
INDIRECT_REF
:
case
ARRAY_REF
:
...
...
@@ -4647,7 +4647,7 @@ lvalue_p (const_tree ref)
return
TREE_CODE
(
TREE_TYPE
(
ref
))
==
ARRAY_TYPE
;
default
:
return
0
;
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