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/cp | |
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/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/cp/cp-lang.c | 2 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/lex.c | 19 | ||||
-rw-r--r-- | gcc/cp/parse.y | 4 |
5 files changed, 10 insertions, 25 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ef5faf451b0..ee39ddc5442 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,12 @@ +2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk> + + * 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. + 2002-04-24 Mark Mitchell <mark@codesourcery.com> PR c++/6438. diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c index 3a8417d8d28..815ede9e5ba 100644 --- a/gcc/cp/cp-lang.c +++ b/gcc/cp/cp-lang.c @@ -88,8 +88,6 @@ static bool cxx_warn_unused_global_decl PARAMS ((tree)); #define LANG_HOOKS_DECL_PRINTABLE_NAME cxx_printable_name #undef LANG_HOOKS_PRINT_ERROR_FUNCTION #define LANG_HOOKS_PRINT_ERROR_FUNCTION cxx_print_error_function -#undef LANG_HOOKS_SET_YYDEBUG -#define LANG_HOOKS_SET_YYDEBUG cxx_set_yydebug #undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL #define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL cxx_warn_unused_global_decl diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index a692c98a267..43b17c88cb3 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3615,7 +3615,6 @@ extern void cxx_print_type PARAMS ((FILE *, tree, int)); extern void cxx_print_identifier PARAMS ((FILE *, tree, int)); extern void cxx_print_error_function PARAMS ((struct diagnostic_context *, const char *)); -extern void cxx_set_yydebug PARAMS ((int)); extern void build_self_reference PARAMS ((void)); extern int same_signature_p PARAMS ((tree, tree)); extern void warn_hidden PARAMS ((tree)); diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 2f6148711a4..7e4657c1586 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -23,9 +23,6 @@ Boston, MA 02111-1307, USA. */ /* This file is the lexical analyzer for GNU C++. */ -/* Cause the `yydebug' variable to be defined. */ -#define YYDEBUG 1 - #include "config.h" #include "system.h" #include "input.h" @@ -846,22 +843,6 @@ print_parse_statistics () #endif } -/* Sets the value of the 'yydebug' variable to VALUE. - This is a function so we don't have to have YYDEBUG defined - in order to build the compiler. */ - -void -cxx_set_yydebug (value) - int value; -{ -#if YYDEBUG != 0 - extern int yydebug; - yydebug = value; -#else - warning ("YYDEBUG not defined"); -#endif -} - /* Helper function to load global variables with interface information. */ diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 491c83ee84c..627e7343e13 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -28,9 +28,6 @@ Boston, MA 02111-1307, USA. */ is given. Keep this in mind when reading the actions. */ %{ -/* Cause the `yydebug' variable to be defined. */ -#define YYDEBUG 1 - #include "config.h" #include "system.h" @@ -40,6 +37,7 @@ Boston, MA 02111-1307, USA. */ #include "flags.h" #include "cp-tree.h" #include "lex.h" +#include "c-lex.h" /* For YYDEBUG definition. */ #include "output.h" #include "except.h" #include "toplev.h" |