aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-22 05:40:22 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-22 05:40:22 +0000
commite5f3b786ed1ab1daea46751e22534c9fee73cd8a (patch)
tree393799da65fb9425b665931be188539dc56ed666 /gcc/c-lang.c
parentfd0a39154fe74a1ce787b3e3b9fb51f8f8f06b99 (diff)
downloadgcc-e5f3b786ed1ab1daea46751e22534c9fee73cd8a.zip
gcc-e5f3b786ed1ab1daea46751e22534c9fee73cd8a.tar.gz
gcc-e5f3b786ed1ab1daea46751e22534c9fee73cd8a.tar.bz2
re PR preprocessor/6517 (gcc hangs on C compile with multiple "-I-")
PR preprocessor/6517 * Makefile.in: Update. * c-common.c (c_common_post_options): Add preprocessor errors to the error count. * c-lang.c (c_post_options): Kill. (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options. * hooks.h: Add header guards. * langhooks-def.h: Include hooks.h. (LANG_HOOKS_POST_OPTIONS): Update. * langhooks.h (struct lang_hooks): Update post_options. * toplev.c (parse_options_and_default_flags): Update. cp: * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options. * cp-tree.h (cxx_post_options): Kill. * cp-lex.c (cxx_post_options): Kill. objc: * objc-lang.c (objc_post_options): Kill. (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options. From-SVN: r53724
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 225967d..07a60d0 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -30,7 +30,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static const char *c_init PARAMS ((const char *));
static void c_init_options PARAMS ((void));
-static void c_post_options PARAMS ((void));
/* ### When changing hooks, consider if ObjC needs changing too!! ### */
@@ -45,7 +44,7 @@ static void c_post_options PARAMS ((void));
#undef LANG_HOOKS_DECODE_OPTION
#define LANG_HOOKS_DECODE_OPTION c_decode_option
#undef LANG_HOOKS_POST_OPTIONS
-#define LANG_HOOKS_POST_OPTIONS c_post_options
+#define LANG_HOOKS_POST_OPTIONS c_common_post_options
#undef LANG_HOOKS_GET_ALIAS_SET
#define LANG_HOOKS_GET_ALIAS_SET c_common_get_alias_set
#undef LANG_HOOKS_SAFE_FROM_P
@@ -155,13 +154,6 @@ const char *const tree_code_name[] = {
};
#undef DEFTREECODE
-/* Post-switch processing. */
-static void
-c_post_options ()
-{
- c_common_post_options ();
-}
-
static void
c_init_options ()
{