+2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * cppinit.c (cpp_handle_option): Set warn_endif_labels if
+ -pedantic here...
+ (cpp_post_options): ... not here.
+
2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
Aldy Hernandez <aldyh@redhat.com>
/* fall through */
case OPT_pedantic:
CPP_OPTION (pfile, pedantic) = 1;
+ CPP_OPTION (pfile, warn_endif_labels) = 1;
break;
case OPT_trigraphs:
CPP_OPTION (pfile, trigraphs) = 1;
|| CPP_OPTION (pfile, deps_file)
|| CPP_OPTION (pfile, deps_phony_targets)))
cpp_fatal (pfile, "you must additionally specify either -M or -MM");
-
- /* Some things should always be on in pedantic mode. */
- if (CPP_OPTION (pfile, pedantic) == 1)
- CPP_OPTION (pfile, warn_endif_labels) = 1;
}
/* Set up dependency-file output. On exit, if print_deps is non-zero