aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCarlo Wood <carlo@runaway.xs4all.nl>1998-07-08 01:33:15 +0200
committerJeff Law <law@gcc.gnu.org>1998-07-07 17:33:15 -0600
commita596f4d7a254b940fb08534522b0e5efb3ad2c10 (patch)
treefa6f14b045b1f77e3ae6b98f0572e9fad3cd5e54 /gcc
parentc8d9f9657b8753615745cbaf8f647eb30d4414ef (diff)
downloadgcc-a596f4d7a254b940fb08534522b0e5efb3ad2c10.zip
gcc-a596f4d7a254b940fb08534522b0e5efb3ad2c10.tar.gz
gcc-a596f4d7a254b940fb08534522b0e5efb3ad2c10.tar.bz2
* dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS
From-SVN: r21002
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/dsp16xx/dsp16xx.h42
2 files changed, 20 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 72e86f6..7a8d2d5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 8 00:28:22 1998 Carlo Wood <carlo@runaway.xs4all.nl>
+
+ * dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS
+
Tue Jul 7 21:18:14 1998 Mumit Khan <khan@xraylith.wisc.edu>
* i386/cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate
diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h
index b01db10..d63cc80 100644
--- a/gcc/config/dsp16xx/dsp16xx.h
+++ b/gcc/config/dsp16xx/dsp16xx.h
@@ -282,35 +282,25 @@ extern int target_flags;
on a particular target machine. You can define a macro
`OVERRIDE_OPTIONS' to take account of this. This macro, if
defined, is executed once just after all the command options have
- been parsed. */
+ been parsed.
+
+ Don't use this macro to turn on various extra optimizations for
+ `-O'. That is what `OPTIMIZATION_OPTIONS' is for. */
#define OVERRIDE_OPTIONS override_options ()
-#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
-{ \
- flag_gnu_linker = FALSE; \
- \
- if (LEVEL) \
- { \
- flag_omit_frame_pointer = TRUE; \
- flag_thread_jumps = TRUE; \
- } \
- \
- if (LEVEL >= 2) \
- { \
- if (! SIZE) \
- flag_strength_reduce = TRUE; \
- flag_cse_follow_jumps = TRUE; \
- flag_cse_skip_blocks = TRUE; \
- flag_expensive_optimizations = TRUE; \
- flag_rerun_cse_after_loop = TRUE; \
- } \
- \
- if ((LEVEL >= 3) && ! SIZE) \
- { \
- flag_inline_functions = 1; \
- } \
-}
+#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
+do \
+ { \
+ flag_gnu_linker = FALSE; \
+ \
+ if (SIZE) \
+ { \
+ flag_strength_reduce = FALSE; \
+ flag_inline_functions = FALSE; \
+ } \
+ } \
+while (0)
/* STORAGE LAYOUT */