diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-23 21:11:42 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-23 21:11:42 +0000 |
commit | 965ae95123e1c921dc4092415d9d2bbf45991eb3 (patch) | |
tree | 1b1ac5b4fcd2cafe604b7e703b05cc3b19e52135 /gcc/objc | |
parent | 46150a74dd26cfac8b92036c35cc5097e9b40074 (diff) | |
download | gcc-965ae95123e1c921dc4092415d9d2bbf45991eb3.tar.gz |
* objc/Make-lang.in (objc-act.o): Depend on debug.h.
* objc/objc-act.c: Include debug.h.
(synth_module_prologue): Save and restore debug hooks too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44278 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index 501ddaeab55..0d1fd1a1903 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -80,7 +80,7 @@ objc-act.o : $(srcdir)/objc/objc-act.c \ $(CONFIG_H) $(TREE_H) $(RTL_H) $(SYSTEM_H) $(EXPR_H) \ $(srcdir)/c-tree.h $(srcdir)/c-common.h $(srcdir)/c-lex.h \ $(srcdir)/toplev.h $(srcdir)/flags.h $(srcdir)/objc/objc-act.h \ - $(srcdir)/input.h $(srcdir)/function.h $(srcdir)/output.h + $(srcdir)/input.h $(srcdir)/function.h $(srcdir)/output.h $(srcdir)/debug.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \ -c $(srcdir)/objc/objc-act.c diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 3a19d286a42..0b99ece7fea 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -56,6 +56,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "ggc.h" #include "cpplib.h" +#include "debug.h" /* This is the default way of generating a method name. */ /* I am not sure it is really correct. @@ -1377,12 +1378,15 @@ synth_module_prologue () /* Suppress outputting debug symbols, because dbxout_init hasn'r been called yet. */ enum debug_info_type save_write_symbols = write_symbols; + struct gcc_debug_hooks *save_hooks = debug_hooks; write_symbols = NO_DEBUG; + debug_hooks = &do_nothing_debug_hooks; build_selector_template (); temp_type = build_array_type (objc_selector_template, NULL_TREE); write_symbols = save_write_symbols; + debug_hooks = save_hooks; } else temp_type = build_array_type (selector_type, NULL_TREE); |