diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-25 06:24:41 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-25 06:24:41 +0000 |
commit | 1c542e4ce3fdcc5da6ac52ec6cc7dc4f8214d079 (patch) | |
tree | d894f1320f9d146f1f97b61373115b7a5313fac5 /gcc/toplev.c | |
parent | c06a19570aa56559058e90de98ff267c94cd1559 (diff) | |
download | gcc-1c542e4ce3fdcc5da6ac52ec6cc7dc4f8214d079.tar.gz |
* c-common.h (c_common_parse_file): Update.
* c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
* c-lex.c (YYDEBUG): Get from c-lex.h.
(c_common_parse_file): Update.
* c-lex.h (YYDEBUG, yydebug): New.
* c-parse.in (YYDEBUG): Get from c-lex.h.
(c_set_yydebug): Remove.
* c-tree.h (c_set_yydebug): Remove.
* langhooks-def.h (lhd_do_nothing_i): New.
(lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
(LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_do_nothing_i): New.
(lhd_set_yydebug): Remove.
* langhooks.h (struct lang_hooks): Update.
* toplev.c (set_yydebug): New.
(compile_file): Update call to parse_file hook.
(decode_d_option): Update.
ada:
* misc.c (gnat_parse_file): Update.
cp:
* cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
* cp-tree.h (cxx_set_yydebug): Die.
* lex.c (YYDEBUG): Get from c-lex.h.
(cxx_set_yydebug): Remove.
* parse.y: Include c-lex.h.
(YYDEBUG): Get from c-lex.h.
f:
* com.h (ffe_parse_file): Update.
* lex.c (ffe_parse_file): Update.
java:
* java-tree.h (java_parse_file): Update.
(java_set_yydebug): Remove.
* jcf-parse.c (yydebug): Remove.
(java_set_yydebug): Die.
(java_parse_file): Update.
* lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
objc:
* objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52753 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index fa8e2893a54..07dc649fedc 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -126,6 +126,9 @@ static int print_single_switch PARAMS ((FILE *, int, int, const char *, static void print_switch_values PARAMS ((FILE *, int, int, const char *, const char *, const char *)); +/* Nonzero to dump debug info whilst parsing (-dy option). */ +static int set_yydebug; + /* Length of line when printing switch values. */ #define MAX_LINE 75 @@ -2029,7 +2032,7 @@ compile_file () /* Call the parser, which parses the entire file (calling rest_of_compilation for each function). */ - (*lang_hooks.parse_file) (); + (*lang_hooks.parse_file) (set_yydebug); /* In case there were missing block closers, get us back to the global binding level. */ @@ -3721,7 +3724,7 @@ decode_d_option (arg) rtl_dump_and_exit = 1; break; case 'y': - (*lang_hooks.set_yydebug) (1); + set_yydebug = 1; break; case 'D': /* These are handled by the preprocessor. */ case 'I': |