aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/fix-header.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
commit9882643d0402167bc96b74ed87d9c94db53b43d2 (patch)
tree63294164689f80893cbbe6bd77927b5abe4339e9 /contrib/gcc/fix-header.c
parenta4cd5630b060871c42e59f7b95cf1e823c417db6 (diff)
downloadsrc-9882643d0402167bc96b74ed87d9c94db53b43d2.tar.gz
src-9882643d0402167bc96b74ed87d9c94db53b43d2.zip
Import of 2.7.2.1 into vendor branchvendor/gcc/2.7.2.1
Notes
Notes: svn path=/vendor/gcc/dist/; revision=18336 svn path=/vendor/gcc/2.7.2.1/; revision=18338; tag=vendor/gcc/2.7.2.1
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 53e5c06052ad..7059d12e1024 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);