This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
addition to snapshot egcs 20 june 2000
- To: gcc-bugs at gcc dot gnu dot org
- Subject: addition to snapshot egcs 20 june 2000
- From: Vincent Diepeveen <diep at xs4all dot nl>
- Date: Sat, 08 Jul 2000 01:39:22 +0100
Hello,
2 small additions to what i said previous mail:
a) it doesn't crash when i add -g
b) it doesn't crash when between the loops/luses i put a bit of code.
The loops/luses as they are now are right after each other using
2 loop/lus variables
Both -O2 makes it crash as well as -O5. Any non-optimizing code
addition to the compile string prevents it from crashing.
This is how my makefile looks now (after using egcs which creates
an exe that runs fine).
# Makefile for VC++ 5.0, 6.0 Windows NT which i also use for linux
target = linux
#msvc 6.0
CC = egcs
CPP = g++
CFLAGS = -O3 -Wall -mpentiumpro -DUNIXPII -march=pentiumpro
# -fbranch-probabilities
#CFLAGS = -O5 -pg -mpentiumpro -DUNIXPII -march=pentiumpro -fprofile-arcs
CPPFLAGS = -D_CONSOLE -DUNIXPII -mpentiumpro -O3 -march=pentiumpro
#-fbranch-probabilities
#CPPFLAGS = -D_CONSOLE -DUNIXPII -mpentiumpro -pg -O5 -march=pentiumpro
-fprofile-arcs
#borland 5.5
#CC = bcc32
#CFLAGS = -6 -O2
#CPPFLAGS= -6 -O2 -D_CONSOLE -DWIN32 -DNT_i386 -g0
#CFLAGS = -D_CONSOLE -DWIN32 -O2
#CFLAGS = -D_CONSOLE -DWIN32
#
#-Og -Oi -Gs -Gf -Gr
# -Ox
#CFLAGS = -O2 -G6 -Gs -Ot -Og
cobjs = diepab.o diepasci.o diepauto.o diepbook.o diepcns.o \
diepdbas.o diepegtb.o diepeind.o diepeval.o diepexec.o \
diepgame.o diepinit.o diepmove.o dieprand.o diepslow.o \
diepsmp.o diepsort.o dieptabl.o dieptime.o nalimov.o \
rand.o
includes = diep.h data.h function.h
diep: $(cobjs) tbindex.o
$(CC) -o diep -O3 $(cobjs) tbindex.o
$(cobjs): $(includes)
.c.o: $(includes)
$(CC) $(CFLAGS) -c $*.c
tbindex.o:
$(CPP) $(CPPFLAGS) -c tbindex.cpp
clean:
rm -rf $(cobjs)
rm -rf *.o*