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
10c1b9f6
Commit
10c1b9f6
authored
Apr 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(warn_undef): New variable.
(main): Set warn_undef from -Wundef and -Wno-undef. From-SVN: r13876
parent
dab9b3bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gcc/cccp.c
+8
-0
No files found.
gcc/cccp.c
View file @
10c1b9f6
...
...
@@ -452,6 +452,10 @@ static int warn_stringify;
static
int
warn_trigraphs
;
/* Nonzero means warn if undefined identifiers are evaluated in an #if. */
int
warn_undef
;
/* Nonzero means warn if #import is used. */
static
int
warn_import
=
1
;
...
...
@@ -1546,6 +1550,10 @@ main (argc, argv)
warn_stringify
=
1
;
else
if
(
!
strcmp
(
argv
[
i
],
"-Wno-traditional"
))
warn_stringify
=
0
;
else
if
(
!
strcmp
(
argv
[
i
],
"-Wundef"
))
warn_undef
=
1
;
else
if
(
!
strcmp
(
argv
[
i
],
"-Wno-undef"
))
warn_undef
=
0
;
else
if
(
!
strcmp
(
argv
[
i
],
"-Wimport"
))
warn_import
=
1
;
else
if
(
!
strcmp
(
argv
[
i
],
"-Wno-import"
))
...
...
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