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
3be5fb23
Commit
3be5fb23
authored
Mar 30, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rescan): Don't recognize preprocessing directives within macro args.
Warn if one is found. From-SVN: r9257
parent
bb1835d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/cccp.c
+6
-4
No files found.
gcc/cccp.c
View file @
3be5fb23
...
@@ -2586,8 +2586,6 @@ do { ip = &instack[indepth]; \
...
@@ -2586,8 +2586,6 @@ do { ip = &instack[indepth]; \
case
'%'
:
case
'%'
:
if
(
ident_length
||
ip
->
macro
||
traditional
)
if
(
ident_length
||
ip
->
macro
||
traditional
)
goto
randomchar
;
goto
randomchar
;
if
(
ip
->
fname
==
0
&&
beg_of_line
==
ip
->
buf
)
goto
randomchar
;
while
(
*
ibp
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
while
(
*
ibp
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
ibp
+=
2
;
ibp
+=
2
;
++
ip
->
lineno
;
++
ip
->
lineno
;
...
@@ -2618,11 +2616,15 @@ do { ip = &instack[indepth]; \
...
@@ -2618,11 +2616,15 @@ do { ip = &instack[indepth]; \
preprocessor directives. */
preprocessor directives. */
if
(
ip
->
macro
!=
0
)
if
(
ip
->
macro
!=
0
)
goto
randomchar
;
goto
randomchar
;
/* If this is expand_into_temp_buffer, recognize them
/* If this is expand_into_temp_buffer,
don't recognize them either. Warn about them
only after an actual newline at this level,
only after an actual newline at this level,
not at the beginning of the input level. */
not at the beginning of the input level. */
if
(
ip
->
fname
==
0
&&
beg_of_line
==
ip
->
buf
)
if
(
!
ip
->
fname
)
{
if
(
ip
->
buf
!=
beg_of_line
)
warning
(
"preprocessing directive not recognized within macro arg"
);
goto
randomchar
;
goto
randomchar
;
}
if
(
ident_length
)
if
(
ident_length
)
goto
specialchar
;
goto
specialchar
;
...
...
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