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
a231ffe5
Commit
a231ffe5
authored
Nov 13, 2008
by
Martin Michlmayr
Committed by
Martin Michlmayr
Nov 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c-common.c (warn_about_parentheses): Add missing whitespace
in warning. From-SVN: r141826
parent
b1f80fe1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/ChangeLog
+5
-0
gcc/c-common.c
+2
-2
No files found.
gcc/ChangeLog
View file @
a231ffe5
2008
-
11
-
13
Martin
Michlmayr
<
tbm
@cyrius
.
com
>
*
c
-
common
.
c
(
warn_about_parentheses
)
:
Add
missing
whitespace
in
warning
.
2008
-
11
-
13
Paul
Brook
<
paul
@codesourcery
.
com
>
*
doc
/
invoke
.
texi
:
Document
--
fix
-
cortex
-
m3
.
...
...
gcc/c-common.c
View file @
a231ffe5
...
...
@@ -8116,7 +8116,7 @@ warn_about_parentheses (enum tree_code code,
/* Check cases like !x | y */
else
if
(
code_left
==
TRUTH_NOT_EXPR
&&
!
APPEARS_TO_BE_BOOLEAN_EXPR_P
(
code_right
,
arg_right
))
warning
(
OPT_Wparentheses
,
"suggest parentheses around operand of"
warning
(
OPT_Wparentheses
,
"suggest parentheses around operand of
"
"%<!%> or change %<|%> to %<||%> or %<!%> to %<~%>"
);
return
;
...
...
@@ -8149,7 +8149,7 @@ warn_about_parentheses (enum tree_code code,
/* Check cases like !x & y */
else
if
(
code_left
==
TRUTH_NOT_EXPR
&&
!
APPEARS_TO_BE_BOOLEAN_EXPR_P
(
code_right
,
arg_right
))
warning
(
OPT_Wparentheses
,
"suggest parentheses around operand of"
warning
(
OPT_Wparentheses
,
"suggest parentheses around operand of
"
"%<!%> or change %<&%> to %<&&%> or %<!%> to %<~%>"
);
return
;
...
...
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