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
522d73ab
Commit
522d73ab
authored
Sep 05, 2001
by
Neil Booth
Committed by
Neil Booth
Sep 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cppmacro.c (funlike_invocation_p): No need to restore context.
From-SVN: r45395
parent
aead1ca3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
gcc/ChangeLog
+4
-0
gcc/cppmacro.c
+1
-6
No files found.
gcc/ChangeLog
View file @
522d73ab
2001
-
09
-
05
Neil
Booth
<
neil
@daikokuya
.
demon
.
co
.
uk
>
*
cppmacro
.
c
(
funlike_invocation_p
)
:
No
need
to
restore
context
.
2001
-
09
-
04
Richard
Henderson
<
rth
@redhat
.
com
>
2001
-
09
-
04
Richard
Henderson
<
rth
@redhat
.
com
>
*
reload
.
c
(
push_reload
)
:
Export
.
*
reload
.
c
(
push_reload
)
:
Export
.
...
...
gcc/cppmacro.c
View file @
522d73ab
...
@@ -591,7 +591,6 @@ funlike_invocation_p (pfile, node, list)
...
@@ -591,7 +591,6 @@ funlike_invocation_p (pfile, node, list)
const
cpp_hashnode
*
node
;
const
cpp_hashnode
*
node
;
struct
toklist
*
list
;
struct
toklist
*
list
;
{
{
cpp_context
*
orig
;
cpp_token
maybe_paren
;
cpp_token
maybe_paren
;
macro_arg
*
args
=
0
;
macro_arg
*
args
=
0
;
cpp_lexer_pos
macro_pos
;
cpp_lexer_pos
macro_pos
;
...
@@ -599,7 +598,6 @@ funlike_invocation_p (pfile, node, list)
...
@@ -599,7 +598,6 @@ funlike_invocation_p (pfile, node, list)
macro_pos
=
pfile
->
lexer_pos
;
macro_pos
=
pfile
->
lexer_pos
;
pfile
->
state
.
parsing_args
=
1
;
pfile
->
state
.
parsing_args
=
1
;
pfile
->
state
.
prevent_expansion
++
;
pfile
->
state
.
prevent_expansion
++
;
orig
=
pfile
->
context
;
cpp_start_lookahead
(
pfile
);
cpp_start_lookahead
(
pfile
);
cpp_get_token
(
pfile
,
&
maybe_paren
);
cpp_get_token
(
pfile
,
&
maybe_paren
);
...
@@ -613,8 +611,6 @@ funlike_invocation_p (pfile, node, list)
...
@@ -613,8 +611,6 @@ funlike_invocation_p (pfile, node, list)
"function-like macro
\"
%s
\"
must be used with arguments in traditional C"
,
"function-like macro
\"
%s
\"
must be used with arguments in traditional C"
,
NODE_NAME
(
node
));
NODE_NAME
(
node
));
/* Restore original context. */
pfile
->
context
=
orig
;
pfile
->
state
.
prevent_expansion
--
;
pfile
->
state
.
prevent_expansion
--
;
pfile
->
state
.
parsing_args
=
0
;
pfile
->
state
.
parsing_args
=
0
;
...
@@ -886,8 +882,7 @@ _cpp_pop_context (pfile)
...
@@ -886,8 +882,7 @@ _cpp_pop_context (pfile)
if
(
!
pfile
->
context
->
prev
&&
!
pfile
->
state
.
parsing_args
)
if
(
!
pfile
->
context
->
prev
&&
!
pfile
->
state
.
parsing_args
)
unlock_pools
(
pfile
);
unlock_pools
(
pfile
);
/* Re-enable a macro, temporarily if parsing_args, when leaving its
/* Re-enable a macro when leaving its expansion. */
expansion. */
context
->
macro
->
disabled
=
0
;
context
->
macro
->
disabled
=
0
;
}
}
...
...
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