* toplev.c (process_options): Ensure debug_hooks is initialized.
authorStan Shebs <shebs@apple.com>
Wed, 1 Sep 2004 05:39:12 +0000 (05:39 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Wed, 1 Sep 2004 05:39:12 +0000 (05:39 +0000)
From-SVN: r86872

gcc/ChangeLog
gcc/toplev.c

index 795de3f5fe1dd48dc164f2bb7474ac8a00685bbe..cec7b2ed7f82ecc93f815a9b196be01b29b9eac7 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-31  Stan Shebs  <shebs@apple.com>
+
+       * toplev.c (process_options): Ensure debug_hooks is initialized.
+
 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
 
        * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
index d1b10ac72b647430a0dc71b70565c0a5fe20fcd5..34db3bd4a766ba42eebf1f27bfb5ff221e2e030d 100644 (file)
@@ -1806,8 +1806,9 @@ process_options (void)
     default_debug_hooks = &vmsdbg_debug_hooks;
 #endif
 
+  debug_hooks = &do_nothing_debug_hooks;
   if (write_symbols == NO_DEBUG)
-    debug_hooks = &do_nothing_debug_hooks;
+    ;
 #if defined(DBX_DEBUGGING_INFO)
   else if (write_symbols == DBX_DEBUG)
     debug_hooks = &dbx_debug_hooks;