Define CAN_DEBUG_WITHOUT_FP; delete OPTIMIZATION_OPTIONS.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 31 Dec 1993 11:55:27 +0000 (06:55 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 31 Dec 1993 11:55:27 +0000 (06:55 -0500)
From-SVN: r6348

gcc/config/a29k/a29k.h
gcc/config/alpha/alpha.h
gcc/config/clipper/clipper.h
gcc/config/m88k/m88k.h
gcc/config/pa/pa.h
gcc/config/romp/romp.h
gcc/config/rs6000/rs6000.h
gcc/config/sh/sh.h
gcc/config/sparc/sparc.h

index c0f97a8ae0de7dbaa9e4f9c23e01762f4b815389..cc32cc9788d391ee3a0d24a91d5b735ad7068b5f 100644 (file)
@@ -107,17 +107,8 @@ extern int target_flags;
 
 #define TARGET_DEFAULT 3
 
-/* Define this to change the optimizations performed by default.  */
-
-#define OPTIMIZATION_OPTIONS(LEVEL)    \
-{                                      \
-  if ((LEVEL) > 0)                     \
-    {                                  \
-      flag_force_addr = 1;             \
-      flag_force_mem = 1;              \
-      flag_omit_frame_pointer = 1;     \
-    }                                  \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 \f
 /* target machine storage layout */
 
index 54ef9425534c7851911e4f7d8f6dfbf08e85d3ad..dafb4a8c0c5ade893db81477d403345929b4c8ce 100644 (file)
@@ -107,17 +107,8 @@ extern int target_flags;
     for (i = 32; i < 64; i++)          \
       fixed_regs[i] = call_used_regs[i] = 1;
 
-/* Define this to change the optimizations performed by default.  */
-
-#define OPTIMIZATION_OPTIONS(LEVEL)    \
-{                                      \
-  if ((LEVEL) > 0)                     \
-    {                                  \
-      flag_force_addr = 1;             \
-      flag_force_mem = 1;              \
-      flag_omit_frame_pointer = 1;     \
-    }                                  \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 \f
 /* target machine storage layout */
 
index b24c3d4fb78c490c1943a728fee0d67f285ef80e..ddb6ed517c48cc7053f131b7bae2d7e6ea14a211 100644 (file)
@@ -52,17 +52,8 @@ extern int target_flags;
 #define TARGET_DEFAULT TARGET_C300
 #endif
 
-/* Omit frame pointer at -O2.  Inline functions at -O3.  */
-
-#define OPTIMIZATION_OPTIONS(LEVEL)            \
-{                                              \
-  if ((LEVEL) >= 2)                            \
-    {                                          \
-      flag_omit_frame_pointer = 1;             \
-    }                                          \
-  if ((LEVEL) >= 3)                            \
-    flag_inline_functions = 1;                 \
-}
+/* Show that we can debug generated code without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 \f
 /* Target machine storage layout */
 
index 4e35ecfc2431695da0ea5c4d86b7e42451d27eba..961a6de2435c04d60cf316f149dbe066df6fc7b1 100644 (file)
@@ -157,39 +157,8 @@ extern char * reg_names[];
 #define MONITOR_GCC 0
 #endif
 \f
-/*** Controlling the Compilation Driver, `gcc' ***/
-
-/* Some machines may desire to change what optimizations are performed for
-   various optimization levels.   This macro, if defined, is executed once
-   just after the optimization level is determined and before the remainder
-   of the command options have been parsed.  Values set in this macro are
-   used as the default values for the other command line options.
-
-   LEVEL is the optimization level specified; 2 if -O2 is specified,
-   1 if -O is specified, and 0 if neither is specified.  */
-
-/* This macro used to store 0 in flag_signed_bitfields.
-   Not only is that misuse of this macro; the whole idea is wrong.
-
-   The GNU C dialect makes bitfields signed by default,
-   regardless of machine type.  Making any machine inconsistent in this
-   regard is bad for portability.
-
-   I chose to make bitfields signed by default because this is consistent
-   with the way ordinary variables are handled: `int' equals `signed int'.
-   If there is a good reason to prefer making bitfields unsigned by default,
-   it cannot have anything to do with the choice of machine.
-   If the reason is good enough, we should change the convention for all machines.
-
-   -- rms, 20 July 1991.  */
-
-#define OPTIMIZATION_OPTIONS(LEVEL)                    \
-  do {                                                 \
-    if (LEVEL)                                         \
-      {                                                        \
-       flag_omit_frame_pointer = 1;                    \
-      }                                                        \
-  } while (0)
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 
 /* If -m88100 is in effect, add -D__m88100__; similarly for -m88110.
    Here, the CPU_DEFAULT is assumed to be -m88100.  */
index 99c465f8a2139b0b47d9b6ca917d04250740cb67..f8c6556fc26f540b33ad5ecf7bc709d7f78d925d 100644 (file)
@@ -161,13 +161,8 @@ extern int target_flags;
     warning ("-fpic and -fPIC are not supported on the PA.");  \
 }
 
-/* Omit frame pointer at high optimization levels.  */
-
-#define OPTIMIZATION_OPTIONS(OPTIMIZE) \
-{                                                              \
-  if (OPTIMIZE >= 2)                                           \
-    flag_omit_frame_pointer = 1;                               \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
index 504efa404aabecd26f6cc3dd043f00af4707a47f..721058a3202e9eddcef3d4baa9892d8d2e8a1c2e 100644 (file)
@@ -69,20 +69,6 @@ extern int target_flags;
     { "", TARGET_DEFAULT}}
 
 #define TARGET_DEFAULT 3
-
-/* Define this to change the optimizations performed by default.
-
-   This used to depend on the value of write_symbols,
-   but that is contrary to the general plan for GCC options.  */
-
-#define OPTIMIZATION_OPTIONS(LEVEL)    \
-{                                      \
-  if ((LEVEL) > 0)                     \
-    {                                  \
-      flag_force_addr = 1;             \
-      flag_force_mem = 1;              \
-    }                                  \
-}
 \f
 /* target machine storage layout */
 
index b7a66c17e9ffa57476932c397092eba78cb2058d..9ada748b0392c10a9c3786fe001e562712502618 100644 (file)
@@ -190,14 +190,8 @@ extern char *rs6000_cpu_string;
 
 #define OVERRIDE_OPTIONS rs6000_override_options ()
 
-#define OPTIMIZATION_OPTIONS(LEVEL)    \
-{                                      \
-  if ((LEVEL) > 0)                     \
-    {                                  \
-      flag_force_mem = 1;              \
-      flag_omit_frame_pointer = 1;     \
-    }                                  \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 \f
 /* target machine storage layout */
 
index 4c48e595841a43428b0015aedb32bba7736bc128..d59e8ec46ce18063e126e307fe3ada36ec69902f 100644 (file)
@@ -34,15 +34,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define CPP_PREDEFINES "-D__sh__ -Acpu(sh) -Amachine(sh)"
 
-
-/* Omitting the frame pointer is a very good idea on the SH */
-
-#define OPTIMIZATION_OPTIONS(OPTIMIZE)  \
-{                                      \
-  if (OPTIMIZE)                                \
-    flag_omit_frame_pointer = 1;       \
-   if (OPTIMIZE==0)OPTIMIZE=1;         \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 \f
 /* Run-time compilation parameters selecting different hardware subsets. */
 
index 08217a38c03e2e03b7e305e74ce73f6d9e4e1065..41dcdfddb2a3f49cf88bc9eafe59cb4f5324df8f 100644 (file)
@@ -49,15 +49,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16
 
-/* Omit frame pointer at high optimization levels.  */
-  
-#define OPTIMIZATION_OPTIONS(OPTIMIZE) \
-{                                                              \
-  if (OPTIMIZE >= 2)                                           \
-    {                                                          \
-      flag_omit_frame_pointer = 1;                             \
-    }                                                          \
-}
+/* Show we can debug even without a frame pointer.  */
+#define CAN_DEBUG_WITHOUT_FP
 
 /* To make profiling work with -f{pic,PIC}, we need to emit the profiling
    code into the rtl.  Also, if we are profiling, we cannot eliminate