Lines 40-46
Link Here
|
40 |
NEWPGCC=/loki/global/ppc/bin/gcc |
40 |
NEWPGCC=/loki/global/ppc/bin/gcc |
41 |
CC=$(NEWPGCC) |
41 |
CC=$(NEWPGCC) |
42 |
- RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -fomit-frame-pointer -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
42 |
- RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -fomit-frame-pointer -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
43 |
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
43 |
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -fomit-frame-pointer -pipe -ffast-math -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
44 |
else |
44 |
else |
45 |
#NEWPGCC=/usr/local/gcc-2.95.2/bin/gcc # bk001205 |
45 |
#NEWPGCC=/usr/local/gcc-2.95.2/bin/gcc # bk001205 |
46 |
#NEWPGCC=/loki/global/x86/bin/gcc |
46 |
#NEWPGCC=/loki/global/x86/bin/gcc |
Lines 49-58
Link Here
|
49 |
# NOTE: the -fomit-frame-pointer option leads to an unstable binary on my test box if it was built on the main box |
49 |
# NOTE: the -fomit-frame-pointer option leads to an unstable binary on my test box if it was built on the main box |
50 |
# but building on the Mdk 7.2 baseline seems to work |
50 |
# but building on the Mdk 7.2 baseline seems to work |
51 |
- RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -mcpu=pentiumpro -march=pentium -fomit-frame-pointer -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
51 |
- RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -mcpu=pentiumpro -march=pentium -fomit-frame-pointer -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
52 |
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
52 |
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -fomit-frame-pointer -pipe -ffast-math -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
53 |
# TTimo: use this for building on P3 gcc 2.95.3 libc2.2 for all targets (experimental! -fomit-fram-pointer removed) |
53 |
# TTimo: use this for building on P3 gcc 2.95.3 libc2.2 for all targets (experimental! -fomit-fram-pointer removed) |
54 |
-# RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -mcpu=pentiumpro -march=pentium -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
54 |
-# RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O6 -mcpu=pentiumpro -march=pentium -pipe -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce |
55 |
+# RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
55 |
+# RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O2 -pipe -ffast-math -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
56 |
endif |
56 |
endif |
57 |
endif |
57 |
endif |
58 |
|
58 |
|
Lines 95-101
Link Here
|
95 |
-GL_CFLAGS = -I$(MESADIR)/include -I/usr/X11R6/include |
95 |
-GL_CFLAGS = -I$(MESADIR)/include -I/usr/X11R6/include |
96 |
+ifdef OPTIMIZED_CFLAGS |
96 |
+ifdef OPTIMIZED_CFLAGS |
97 |
+ ifeq ($(ARCH),i386) |
97 |
+ ifeq ($(ARCH),i386) |
98 |
+RELEASE_CFLAGS+=-O2 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
98 |
+RELEASE_CFLAGS+=-O2 -fomit-frame-pointer -pipe -ffast-math -falign-functions=2 -fno-strict-aliasing -fstrength-reduce |
99 |
+ else |
99 |
+ else |
100 |
+RELEASE_CFLAGS+=-O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations |
100 |
+RELEASE_CFLAGS+=-O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations |
101 |
+ endif |
101 |
+ endif |