summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/fix-header.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
committerpeter <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
commit7438a7f7a8a831d67d05e34b842fef1eebea33b1 (patch)
treeb06eeb3521e16f208626dc321bbc10200b9a7955 /contrib/gcc/fix-header.c
parent120a6a0c72cde257e4ce6b0c036d881e1107c217 (diff)
parentacb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc (diff)
downloadFreeBSD-src-7438a7f7a8a831d67d05e34b842fef1eebea33b1.zip
FreeBSD-src-7438a7f7a8a831d67d05e34b842fef1eebea33b1.tar.gz
This commit was generated by cvs2svn to compensate for changes in r18336,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/gcc/fix-header.c')
-rw-r--r--contrib/gcc/fix-header.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/gcc/fix-header.c b/contrib/gcc/fix-header.c
index 53e5c06..7059d12 100644
--- a/contrib/gcc/fix-header.c
+++ b/contrib/gcc/fix-header.c
@@ -531,7 +531,18 @@ read_scan_file (in_fname, argc, argv)
push_parse_file (&scan_in, in_fname);
CPP_OPTIONS (&scan_in)->no_line_commands = 1;
+#ifdef FIXPROTO_INIT
+ /* Some targets may assume special definitions (for example
+ OSF header files assume __LANGUAGE_C__). These macros
+ are normally passed to cpplib by gcc - but we here invoke
+ cpplib directly, without going through gcc.
+ Handle these and other target-dependent initializations here. */
+ FIXPROTO_INIT (&scan_in);
+#endif
+
+ /* Actually (pre-)process the header file. */
scan_decls (&scan_in, argc, argv);
+
check_macro_names (&scan_in, include_entry->required);
check_macro_names (&scan_in, include_entry->extra);
OpenPOWER on IntegriCloud