From: Carlo Wood Date: Tue, 7 Jul 1998 23:33:15 +0000 (+0200) Subject: * dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a596f4d7a254b940fb08534522b0e5efb3ad2c10;p=gcc.git * dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS From-SVN: r21002 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72e86f69e79..7a8d2d57dac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 8 00:28:22 1998 Carlo Wood + + * dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS + Tue Jul 7 21:18:14 1998 Mumit Khan * i386/cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index b01db107849..d63cc800337 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 */