Index: c-lex.c =================================================================== RCS file: /home/ncvs/src/contrib/gcc/c-lex.c,v retrieving revision 1.4 diff -u -r1.4 c-lex.c --- c-lex.c 11 Jul 2003 04:49:30 -0000 1.4 +++ c-lex.c 15 Jul 2003 14:29:26 -0000 @@ -299,10 +299,10 @@ } update_header_times (new_map->to_file); -#ifndef FREEBSD_NATIVE in_system_header = new_map->sysp != 0; -#else /* FREEBSD_NATIVE */ - in_system_header = 0; +#ifdef FREEBSD_NATIVE + if (warn_system_headers) + in_system_header = 0; #endif /* FREEBSD_NATIVE */ input_filename = new_map->to_file; lineno = to_line; Index: cppinit.c =================================================================== RCS file: /home/ncvs/src/contrib/gcc/cppinit.c,v retrieving revision 1.5 diff -u -r1.5 cppinit.c --- cppinit.c 11 Jul 2003 04:52:32 -0000 1.5 +++ cppinit.c 15 Jul 2003 14:17:22 -0000 @@ -531,6 +531,7 @@ CPP_OPTION (pfile, tabstop) = 8; CPP_OPTION (pfile, operator_names) = 1; CPP_OPTION (pfile, warn_endif_labels) = 1; + CPP_OPTION (pfile, warn_system_headers) = 1; CPP_OPTION (pfile, warn_long_long) = !CPP_OPTION (pfile, c99); CPP_OPTION (pfile, pending) = Index: toplev.c =================================================================== RCS file: /home/ncvs/src/contrib/gcc/toplev.c,v retrieving revision 1.20 diff -u -r1.20 toplev.c --- toplev.c 11 Jul 2003 04:48:05 -0000 1.20 +++ toplev.c 15 Jul 2003 14:18:08 -0000 @@ -1410,7 +1410,7 @@ /* Don't suppress warnings from system headers. -Wsystem-headers. */ -int warn_system_headers = 0; +int warn_system_headers = 1; /* Print various extra warnings. -W. */