]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vms.h (OPTIMIZATION_OPTIONS): Remove
authorDouglas B Rupp <rupp@gnat.com>
Tue, 11 Aug 2009 05:19:31 +0000 (05:19 +0000)
committerDouglas Rupp <rupp@gcc.gnu.org>
Tue, 11 Aug 2009 05:19:31 +0000 (05:19 +0000)
* config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
(OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.

From-SVN: r150647

gcc/ChangeLog
gcc/config/alpha/vms.h

index d15941a38bc3680935821239463dc4b7dd3988d0..5d1df0fecf3b9919d899315a2826cf92466d0c6f 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-10  Douglas B Rupp  <rupp@gnat.com>
+
+       * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
+       (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
+
 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
             Douglas B Rupp  <rupp@gnat.com>
 
index d8d513e07c8473cf5f8ec5b054d3537072c5c6fd..3aff33c39f810cee1e34a9132459c9b841c3d76d 100644 (file)
@@ -361,22 +361,18 @@ typedef struct crtl_name_spec
 #undef ASM_FINAL_SPEC
 
 /* The VMS convention is to always provide minimal debug info
-   for a traceback unless specifically overridden.  Defaulting this here
-   is a kludge.  */
+   for a traceback unless specifically overridden.  */
 
-#define OPTIMIZATION_OPTIONS(OPTIMIZE, OPTIMIZE_SIZE) \
-{                                                  \
-   write_symbols = VMS_DEBUG;                      \
-   debug_info_level = (enum debug_info_level) 1;   \
-}
-
-/* Override traceback debug info on -g0.  */
 #undef OVERRIDE_OPTIONS
-#define OVERRIDE_OPTIONS                           \
-{                                                  \
-   if (write_symbols == NO_DEBUG)                  \
-     debug_info_level = (enum debug_info_level) 0; \
-   override_options ();                            \
+#define OVERRIDE_OPTIONS                            \
+{                                                   \
+  if (write_symbols == NO_DEBUG                     \
+      && debug_info_level == DINFO_LEVEL_NONE)      \
+    {                                               \
+      write_symbols = VMS_DEBUG;                    \
+      debug_info_level = DINFO_LEVEL_TERSE;         \
+    }                                               \
+   override_options ();                             \
 }
 
 /* Link with vms-dwarf2.o if -g (except -g0). This causes the