This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH : clean up of OPTIMIZATION_OPTIONS in gcc/config/dsp16xx/dsp16xx.h


Motivation:

http://www.cygnus.com/ml/egcs/1998-Jul/0237.html

----

Tue Jul  7 13:16:09 CEST 1998	Carlo Wood <carlo@runaway.xs4all.nl>

	* config/dsp16xx/dsp16xx.h : Clean up of macro OPTIMIZATION_OPTIONS

----

Index: gcc/config/dsp16xx/dsp16xx.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/dsp16xx/dsp16xx.h,v
retrieving revision 1.8
diff -c -p -r1.8 dsp16xx.h
*** dsp16xx.h	1998/06/29 21:40:28	1.8
--- dsp16xx.h	1998/07/07 12:29:24
*************** extern int target_flags;
*** 282,316 ****
     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. */
  
  #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;                     \
!     }                                                 \
! }
  
  /* STORAGE LAYOUT */
  
--- 282,306 ----
     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.
!   
!    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)		\
! do							\
!   {							\
!     flag_gnu_linker             = FALSE;		\
! 							\
!     if (SIZE)						\
!       {							\
! 	flag_strength_reduce    = FALSE;		\
! 	flag_inline_functions   = FALSE;		\
!       }							\
!   }							\
! while (0)
  
  /* STORAGE LAYOUT */
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]