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
c838d82f
Commit
c838d82f
authored
Dec 30, 2002
by
Mark Mitchell
Committed by
Mark Mitchell
Dec 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_declaration_seq_opt): Handle pending_lang_change.
From-SVN: r60644
parent
afd9b9dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/parser.c
+14
-0
No files found.
gcc/cp/ChangeLog
View file @
c838d82f
2002-12-30 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_parser_declaration_seq_opt): Handle pending_lang_change.
2002-12-30 David Edelsohn <edelsohn@gnu.org>
2002-12-30 David Edelsohn <edelsohn@gnu.org>
* parser.c (cp_parser_parameter_declaration_clause): Treat system
* parser.c (cp_parser_parameter_declaration_clause): Treat system
...
...
gcc/cp/parser.c
View file @
c838d82f
...
@@ -6456,6 +6456,20 @@ cp_parser_declaration_seq_opt (parser)
...
@@ -6456,6 +6456,20 @@ cp_parser_declaration_seq_opt (parser)
continue
;
continue
;
}
}
/* The C lexer modifies PENDING_LANG_CHANGE when it wants the
parser to enter or exit implict `extern "C"' blocks. */
while
(
pending_lang_change
>
0
)
{
push_lang_context
(
lang_name_c
);
--
pending_lang_change
;
}
while
(
pending_lang_change
<
0
)
{
pop_lang_context
();
++
pending_lang_change
;
}
/* Parse the declaration itself. */
cp_parser_declaration
(
parser
);
cp_parser_declaration
(
parser
);
}
}
}
}
...
...
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