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
d51f9363
Commit
d51f9363
authored
Feb 19, 1996
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn_sign_compare
From-SVN: r11298
parent
d669f5da
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
gcc/c-decl.c
+9
-0
gcc/c-tree.h
+4
-0
gcc/toplev.c
+2
-0
No files found.
gcc/c-decl.c
View file @
d51f9363
...
...
@@ -541,6 +541,10 @@ int warn_parentheses;
int
warn_missing_braces
;
/* Warn about comparison of signed and unsigned values. */
int
warn_sign_compare
;
/* Nonzero means `$' can be in an identifier.
See cccp.c for reasons why this breaks some obscure ANSI C programs. */
...
...
@@ -711,6 +715,10 @@ c_decode_option (p)
warn_missing_braces
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-missing-braces"
))
warn_missing_braces
=
0
;
else
if
(
!
strcmp
(
p
,
"-Wsign-compare"
))
warn_sign_compare
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-sign-compare"
))
warn_sign_compare
=
0
;
else
if
(
!
strcmp
(
p
,
"-Wall"
))
{
/* We save the value of warn_uninitialized, since if they put
...
...
@@ -726,6 +734,7 @@ c_decode_option (p)
warn_char_subscripts
=
1
;
warn_parentheses
=
1
;
warn_missing_braces
=
1
;
warn_sign_compare
=
1
;
}
else
return
0
;
...
...
gcc/c-tree.h
View file @
d51f9363
...
...
@@ -477,6 +477,10 @@ extern int warn_parentheses;
extern
int
warn_missing_braces
;
/* Warn about comparison of signed and unsigned values. */
int
warn_sign_compare
;
/* Nonzero means this is a function to call to perform comptypes
on two record types. */
...
...
gcc/toplev.c
View file @
d51f9363
...
...
@@ -639,6 +639,8 @@ char *lang_options[] =
"-Wno-pointer-arith"
,
"-Wredundant-decls"
,
"-Wno-redundant-decls"
,
"-Wsign-compare"
,
"-Wno-sign-compare"
,
"-Wstrict-prototypes"
,
"-Wno-strict-prototypes"
,
"-Wtraditional"
,
...
...
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