diff options
author | Richard Stallman <rms@gnu.org> | 1993-11-08 07:56:19 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-11-08 07:56:19 +0000 |
commit | 0031ac57893f9d99f8d4347305bd00db28426be9 (patch) | |
tree | a6a881bae97fbf07b3b19b66fc780f72e109e357 /gcc | |
parent | db025de86e4c721f34979435678d2b7c9ee2ce96 (diff) | |
download | gcc-0031ac57893f9d99f8d4347305bd00db28426be9.zip gcc-0031ac57893f9d99f8d4347305bd00db28426be9.tar.gz gcc-0031ac57893f9d99f8d4347305bd00db28426be9.tar.bz2 |
(output_line_command): Handle NO_IMPLICIT_EXTERN_C here.
(main): Not here.
From-SVN: r6038
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cccp.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1751,13 +1751,7 @@ main (argc, argv) strcat (str, p->fname + default_len); new->fname = str; 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; -#endif append_include_chain (new, new); if (first_system_include == 0) first_system_include = new; @@ -4265,7 +4259,10 @@ redundant_include_p (name) it is the name of a file which resides either directly in a "system" include file directory, or within any subdirectory thereof, then the 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 is_system_include (filename) @@ -7198,11 +7195,13 @@ output_line_command (ip, op, conditional, file_change) *line_end++ = ' '; *line_end++ = '3'; } +#ifndef NO_IMPLICIT_EXTERN_C /* Tell cc1plus if following text should be treated as C. */ if (ip->system_header_p == 2 && cplusplus) { *line_end++ = ' '; *line_end++ = '4'; } +#endif *line_end++ = '\n'; len = line_end - line_cmd_buf; check_expand (op, len + 1); |