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
0031ac57
Commit
0031ac57
authored
Nov 08, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_line_command): Handle NO_IMPLICIT_EXTERN_C here.
(main): Not here. From-SVN: r6038
parent
db025de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
gcc/cccp.c
+6
-7
No files found.
gcc/cccp.c
View file @
0031ac57
...
@@ -1751,13 +1751,7 @@ main (argc, argv)
...
@@ -1751,13 +1751,7 @@ main (argc, argv)
strcat
(
str
,
p
->
fname
+
default_len
);
strcat
(
str
,
p
->
fname
+
default_len
);
new
->
fname
=
str
;
new
->
fname
=
str
;
new
->
control_macro
=
0
;
new
->
control_macro
=
0
;
#ifdef NO_IMPLICIT_EXTERN_C
/* On some systems, the system header files are C++-compatible.
So don't pretend they are `extern "C"'. */
new
->
c_system_include_path
=
0
;
#else
new
->
c_system_include_path
=
!
p
->
cplusplus
;
new
->
c_system_include_path
=
!
p
->
cplusplus
;
#endif
append_include_chain
(
new
,
new
);
append_include_chain
(
new
,
new
);
if
(
first_system_include
==
0
)
if
(
first_system_include
==
0
)
first_system_include
=
new
;
first_system_include
=
new
;
...
@@ -4265,7 +4259,10 @@ redundant_include_p (name)
...
@@ -4265,7 +4259,10 @@ redundant_include_p (name)
it is the name of a file which resides either directly in a "system"
it is the name of a file which resides either directly in a "system"
include file directory, or within any subdirectory thereof, then the
include file directory, or within any subdirectory thereof, then the
given file must be a "system" include file. This function tells us
given file must be a "system" include file. This function tells us
if we should suppress pedantic errors/warnings for the given FILENAME. */
if we should suppress pedantic errors/warnings for the given FILENAME.
The value is 2 if the file is a C-language system header file
for which C++ should (on most systems) assume `extern "C"'. */
static
int
static
int
is_system_include
(
filename
)
is_system_include
(
filename
)
...
@@ -7198,11 +7195,13 @@ output_line_command (ip, op, conditional, file_change)
...
@@ -7198,11 +7195,13 @@ output_line_command (ip, op, conditional, file_change)
*
line_end
++
=
' '
;
*
line_end
++
=
' '
;
*
line_end
++
=
'3'
;
*
line_end
++
=
'3'
;
}
}
#ifndef NO_IMPLICIT_EXTERN_C
/* Tell cc1plus if following text should be treated as C. */
/* Tell cc1plus if following text should be treated as C. */
if
(
ip
->
system_header_p
==
2
&&
cplusplus
)
{
if
(
ip
->
system_header_p
==
2
&&
cplusplus
)
{
*
line_end
++
=
' '
;
*
line_end
++
=
' '
;
*
line_end
++
=
'4'
;
*
line_end
++
=
'4'
;
}
}
#endif
*
line_end
++
=
'\n'
;
*
line_end
++
=
'\n'
;
len
=
line_end
-
line_cmd_buf
;
len
=
line_end
-
line_cmd_buf
;
check_expand
(
op
,
len
+
1
);
check_expand
(
op
,
len
+
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