summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-12-22 19:29:00 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-12-22 19:29:00 +0000
commitd97301048ff82f61c4d21e7227eb3a2a9eb6670c (patch)
treed68146f91dc6f0d6d8a15218fa3e6489af52cb56 /gcc/fix-header.c
parentb31b48a9373f78adaea615018c4af2e9881ae49e (diff)
downloadgcc-d97301048ff82f61c4d21e7227eb3a2a9eb6670c.tar.gz
(missing_extern_C_count): Ifdef out.
(write_lbrac, recognized_function, read_scan_file, write_rbrac): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index b6de982eb7e..97f9805d584 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -84,7 +84,13 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
int verbose = 0;
int partial_count = 0;
+#if 0
+/* All uses of this are ifdefed out. This is no longer needed, because
+ cccp.c implicitly forces the standard include files to be treated as C.
+ Adding an explicit extern "C" is undesireable as it breaks the SunOS 4.x
+ sun4c/romvec.h file. */
int missing_extern_C_count = 0;
+#endif
int missing_errno = 0;
#include "xsys-protos.h"
@@ -173,8 +179,10 @@ int
write_lbrac ()
{
+#if 0
if (missing_extern_C_count + required_unseen_count > 0)
fprintf (outf, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n");
+#endif
if (partial_count)
{
@@ -274,8 +282,10 @@ recognized_function (fname, kind, rtype, args, file_seen, line_seen)
struct partial_proto *partial;
int i;
struct fn_decl *fn;
+#if 0
if (kind == 'f')
missing_extern_C_count++;
+#endif
fn = lookup_std_proto (fname);
@@ -335,8 +345,11 @@ read_scan_file (scan_file)
scan_decls (scan_file);
- if (missing_extern_C_count + required_unseen_count + partial_count
- + missing_errno == 0)
+ if (required_unseen_count + partial_count + missing_errno
+#if 0
+ + missing_extern_C_count
+#endif
+ == 0)
{
if (verbose)
fprintf (stderr, "%s: OK, nothing needs to be done.\n", inc_filename);
@@ -352,10 +365,12 @@ read_scan_file (scan_file)
if (partial_count)
fprintf (stderr, "%s: %d non-prototype function declarations.\n",
inc_filename, partial_count);
+#if 0
if (missing_extern_C_count)
fprintf (stderr,
"%s: %d declarations not protected by extern \"C\".\n",
inc_filename, missing_extern_C_count);
+#endif
}
}
@@ -426,8 +441,10 @@ write_rbrac ()
}
+#if 0
if (missing_extern_C_count + required_unseen_count > 0)
fprintf (outf, "#ifdef __cplusplus\n}\n#endif\n");
+#endif
}
char *