[AD] Remove -fno-strength-reduce

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


The MinGW port is the only GCC port to use -fno-strength-reduce in 
optimization mode.  Removed with the attached patch, applied to mainline and 
4.0 branch.

[Strength reduction is the operation that turns

   int i;
   int array[N];

   for (i=0; i<N; i++)
     array[i] = ...;

into

  char *p;
  int array[N];

  for (p=(char *)array; p < (char*)array+ N*sizeof(int); p+=sizeof(int)) {
    int *ip = (int *)p;
    *ip = ...;
  }]

-- 
Eric Botcazou
Index: makefile.mgw
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.mgw,v
retrieving revision 1.93
diff -u -r1.93 makefile.mgw
--- makefile.mgw	29 Nov 2003 07:51:59 -0000	1.93
+++ makefile.mgw	29 Feb 2004 09:47:13 -0000
@@ -179,7 +179,7 @@
 
 # -------- optimised build --------
 
-CFLAGS = $(WFLAGS) $(OFLAGS) $(PFLAGS) -fomit-frame-pointer -fno-strength-reduce
+CFLAGS = $(WFLAGS) $(OFLAGS) $(PFLAGS) -fomit-frame-pointer
 SFLAGS = $(WFLAGS)
 ifndef SYMBOLMODE
    LFLAGS += -s


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/