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
e2056677
Commit
e2056677
authored
Jan 15, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_xifdef): Warn about `#ifdef 0' if not traditional; formerly the
warning was issued if not pedantic. From-SVN: r10992
parent
58a08882
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/cccp.c
+5
-3
No files found.
gcc/cccp.c
View file @
e2056677
/* C Compatible Compiler Preprocessor (CCCP)
Copyright (C) 1986, 87, 89, 92
, 93, 94, 1995
Free Software Foundation, Inc.
Copyright (C) 1986, 87, 89, 92
-95, 1996
Free Software Foundation, Inc.
Written by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
...
...
@@ -7046,10 +7046,12 @@ do_xifdef (buf, limit, op, keyword)
}
else
{
HASHNODE
*
hp
;
if
(
pedantic
&&
buf
[
0
]
>=
'0'
&&
buf
[
0
]
<=
'9'
)
if
(
!
traditional
)
{
if
(
isdigit
(
buf
[
0
]))
pedwarn
(
"`#%s' argument starts with a digit"
,
keyword
->
name
);
else
if
(
end
!=
limit
&&
!
traditional
)
else
if
(
end
!=
limit
)
pedwarn
(
"garbage at end of `#%s' argument"
,
keyword
->
name
);
}
hp
=
lookup
(
buf
,
end
-
buf
,
-
1
);
...
...
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