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
65715dea
Commit
65715dea
authored
Oct 13, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_line_command): Output the `4' flag only if cplusplus.
(do_line): Handle the `4' flag. From-SVN: r5781
parent
b57a5cd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
gcc/cccp.c
+8
-1
No files found.
gcc/cccp.c
View file @
65715dea
...
...
@@ -5961,6 +5961,8 @@ do_line (buf, limit, op, keyword)
file_change
=
leave_file
;
else
if
(
*
bp
==
'3'
)
ip
->
system_header_p
=
1
;
else
if
(
*
bp
==
'4'
)
ip
->
system_header_p
=
2
;
else
{
error
(
"invalid format `#line' command"
);
return
0
;
...
...
@@ -5973,6 +5975,11 @@ do_line (buf, limit, op, keyword)
bp
++
;
SKIP_WHITE_SPACE
(
bp
);
}
if
(
*
bp
==
'4'
)
{
ip
->
system_header_p
=
2
;
bp
++
;
SKIP_WHITE_SPACE
(
bp
);
}
if
(
*
bp
)
{
error
(
"invalid format `#line' command"
);
return
0
;
...
...
@@ -7108,7 +7115,7 @@ output_line_command (ip, op, conditional, file_change)
*
line_end
++
=
'3'
;
}
/* Tell cc1plus if following text should be treated as C. */
if
(
ip
->
system_header_p
==
2
)
{
if
(
ip
->
system_header_p
==
2
&&
cplusplus
)
{
*
line_end
++
=
' '
;
*
line_end
++
=
'4'
;
}
...
...
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