diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-31 06:55:27 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-31 06:55:27 -0500 |
commit | 4f074454bb3b48ca84cac7d467858d54496e1a93 (patch) | |
tree | 26fdeec363667afd7fe1c8dfca60d9d636dade46 /gcc | |
parent | b0f43a24b7806ab03e470fcd852e2a116c741e81 (diff) | |
download | gcc-4f074454bb3b48ca84cac7d467858d54496e1a93.zip gcc-4f074454bb3b48ca84cac7d467858d54496e1a93.tar.gz gcc-4f074454bb3b48ca84cac7d467858d54496e1a93.tar.bz2 |
Define CAN_DEBUG_WITHOUT_FP; delete OPTIMIZATION_OPTIONS.
From-SVN: r6348
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/a29k/a29k.h | 13 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 13 | ||||
-rw-r--r-- | gcc/config/clipper/clipper.h | 13 | ||||
-rw-r--r-- | gcc/config/m88k/m88k.h | 35 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 9 | ||||
-rw-r--r-- | gcc/config/romp/romp.h | 14 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 10 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 11 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.h | 11 |
9 files changed, 16 insertions, 113 deletions
diff --git a/gcc/config/a29k/a29k.h b/gcc/config/a29k/a29k.h index c0f97a8..cc32cc9 100644 --- a/gcc/config/a29k/a29k.h +++ b/gcc/config/a29k/a29k.h @@ -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 /* target machine storage layout */ diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 54ef942..dafb4a8 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -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 /* target machine storage layout */ diff --git a/gcc/config/clipper/clipper.h b/gcc/config/clipper/clipper.h index b24c3d4..ddb6ed5 100644 --- a/gcc/config/clipper/clipper.h +++ b/gcc/config/clipper/clipper.h @@ -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 /* Target machine storage layout */ diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index 4e35ecf..961a6de 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -157,39 +157,8 @@ extern char * reg_names[]; #define MONITOR_GCC 0 #endif -/*** 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. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 99c465f..f8c6556 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. */ diff --git a/gcc/config/romp/romp.h b/gcc/config/romp/romp.h index 504efa4..721058a 100644 --- a/gcc/config/romp/romp.h +++ b/gcc/config/romp/romp.h @@ -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; \ - } \ -} /* target machine storage layout */ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index b7a66c1..9ada748 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -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 /* target machine storage layout */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 4c48e59..d59e8ec 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -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 /* Run-time compilation parameters selecting different hardware subsets. */ diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 08217a3..41dcdfd 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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 |