Commit 4e0d1815 by kollo

removed -fomit-framebuffer from optimizer flags

because it caused problems with CALL implementation (not being compatible with ABI?)
removed omit-frame-pointer from c-demos
parent 37382ba2
......@@ -15,10 +15,10 @@ all: demo1 demo2
demo1: c-demo.c
gcc -fomit-frame-pointer -o $@ $< -lx11basic -ldl -lm -lreadline -lasound -lX11
gcc -o $@ $< -lx11basic -ldl -lm -lreadline -lasound -lX11
demo2: library.o c-demo2.c
gcc -fomit-frame-pointer -o $@ $^ -lx11basic -ldl -lm -lreadline -lasound -lX11
gcc -o $@ $^ -lx11basic -ldl -lm -lreadline -lasound -lX11
%.b: %.bas
xbbc -o $@ $<
......
......@@ -9,7 +9,7 @@
/* You will have to compile this (testme.c) and link it with the
x11basic shared library. Also ohers are required as follos:
gcc -fomit-frame-pointer -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
gcc -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
-lreadline -lasound -lX11 testme.c library.o
*/
......
......@@ -12,7 +12,7 @@
xbc -l -virtualm library.bas
gcc -DNOMAIN -c library.c
gcc -fomit-frame-pointer -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
gcc -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
-lreadline -lasound -lX11 c-demo2.c library.o
*/
......
......@@ -44,9 +44,9 @@ DEF= @def@
# Compiler
#CC=@CC@ @static@ $(REGS)
CC=@CC@ $(REGS)
CCDEBUG=@CC@ -g $(REGS)
CCSHARED=@CC@ $(REGS) -fPIC -shared -Wl,-Bsymbolic-functions
CC=@CC@
CCDEBUG=@CC@ -g
CCSHARED=@CC@ -fPIC -shared -Wl,-Bsymbolic-functions
# Cross-Compiler fuer Windows-Excecutable
......@@ -57,12 +57,12 @@ TOSCC=m68k-atari-mint-gcc
# Cross-Compiler fuer ARM-Linux-Excecutable
ARMCC=arm-linux-gcc $(REGS)
ARMCC=arm-linux-gcc
# Preprocessor
CPP=@CPP@
CFLAGS= $(INC) $(DEF) $(OPT)
CFLAGS= $(INC) $(DEF) $(OPT) $(REGS)
# these are the objects which go into libx11basic
......@@ -405,7 +405,7 @@ libx11basic.so: libx11basic.so.$(LIBNO)
ln -s -f $< libx11basic.so.1
ln -s -f libx11basic.so.1 libx11basic.so
libx11basic.so.$(LIBNO) : $(LIBCSRC) Makefile
$(CCSHARED) $(OPT) $(DEF) -Wl,-soname,$@ -o $@ $(LIBCSRC) $(LIBS)
$(CCSHARED) $(OPT) $(REGS) $(DEF) -Wl,-soname,$@ -o $@ $(LIBCSRC) $(LIBS)
strip $@
# Make the (static) library
......
......@@ -3,8 +3,8 @@
#
SHELL=/bin/sh
# Register variables (-ffixed-reg)
REGS= -fomit-frame-pointer
# Register variables
REGS=
# Optimization and debugging options
OPT=-O3
......
......@@ -6113,7 +6113,7 @@ $as_echo "#define IS_BIG_ENDIAN 1" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O4"
......@@ -6129,7 +6129,7 @@ $as_echo "#define SMALL 1" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O4"
......@@ -6137,19 +6137,21 @@ fi
;;
i*86-*-linux)
echo 'Oh, a 80x86-based Linux box... Very nice! :-)'
regs="-fomit-frame-pointer"
regs="-fno-omit-frame-pointer"
copt="-O3"
;;
i*86-*-linux-*)
echo 'Oh, a 80x86-based Linux box... Very nice! :-)'
regs="-fomit-frame-pointer"
regs="-fno-omit-frame-pointer"
copt="-O3"
;;
armv*-*-linux-*)
echo 'Oh no, an arm-based Linux box... Maybe the Raspberry PI. My condolences! :-)'
regs="-fomit-frame-pointer"
regs=
;;
i*86-*bsd*)
echo 'A 80x86-based BSD box...'
regs="-fomit-frame-pointer -ffixed-ebx -ffixed-ebp"
regs=" -ffixed-ebx -ffixed-ebp"
copt="-O3"
;;
mips-sgi-irix*)
......@@ -6160,7 +6162,7 @@ $as_echo "#define IS_BIG_ENDIAN 1" >>confdefs.h
defs="$defs -D_BSD_SIGNALS"
xtra="$xtra -laudio -lm"
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......@@ -6173,7 +6175,7 @@ $as_echo "#define IS_BIG_ENDIAN 1" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......@@ -6188,7 +6190,7 @@ $as_echo "#define IS_BIG_ENDIAN 1" >>confdefs.h
$as_echo "#define signed /**/" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
static="-static"
else
echo "You need gcc on HP-UX, sorry!"
......@@ -6203,7 +6205,7 @@ $as_echo "#define TIMEVAL_WORKAROUND /**/" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-migrate -non_shared -std1 -O5 -ifo -om"
......@@ -6216,7 +6218,7 @@ $as_echo "#define IS_BIG_ENDIAN 1" >>confdefs.h
if test "n$CC" = ngcc; then
regs="-posix -fomit-frame-pointer"
regs="-posix "
else
regs="-posix"
copt="-O3"
......@@ -6226,7 +6228,7 @@ fi
echo "know if you can compile and run it successfully!"
echo "Determining this system's endianness and short/int sizes..."
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......
......@@ -363,7 +363,7 @@ sparc-sun-sunos*)
AC_DEFINE(IS_BIG_ENDIAN,1,[System is big or little endian])
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O4"
......@@ -375,7 +375,7 @@ sparc-sun-solaris*)
AC_DEFINE(SMALL,1,[Small Memory layout])
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O4"
......@@ -383,19 +383,21 @@ fi
;;
i*86-*-linux)
echo 'Oh, a 80x86-based Linux box... Very nice! :-)'
regs="-fomit-frame-pointer"
regs="-fno-omit-frame-pointer"
copt="-O3"
;;
i*86-*-linux-*)
echo 'Oh, a 80x86-based Linux box... Very nice! :-)'
regs="-fomit-frame-pointer"
regs="-fno-omit-frame-pointer"
copt="-O3"
;;
armv*-*-linux-*)
echo 'Oh no, an arm-based Linux box... Maybe the Raspberry PI. My condolences! :-)'
regs="-fomit-frame-pointer"
regs=
;;
i*86-*bsd*)
echo 'A 80x86-based BSD box...'
regs="-fomit-frame-pointer -ffixed-ebx -ffixed-ebp"
regs=" -ffixed-ebx -ffixed-ebp"
copt="-O3"
;;
mips-sgi-irix*)
......@@ -404,7 +406,7 @@ mips-sgi-irix*)
defs="$defs -D_BSD_SIGNALS"
xtra="$xtra -laudio -lm"
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......@@ -415,7 +417,7 @@ mips-dec-ultrix*)
AC_DEFINE(IS_BIG_ENDIAN,1,[System is big or little endian])
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......@@ -426,7 +428,7 @@ hppa*-hp-hpux)
AC_DEFINE(IS_BIG_ENDIAN,1,[System is big or little endian])
AC_DEFINE(signed,,[signed not known to compiler])
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
static="-static"
else
echo "You need gcc on HP-UX, sorry!"
......@@ -439,7 +441,7 @@ alpha-dec-osf*)
AC_DEFINE(TIMEVAL_WORKAROUND,,[Timeval workaround])
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-migrate -non_shared -std1 -O5 -ifo -om"
......@@ -450,7 +452,7 @@ m68k-next-bsd)
AC_DEFINE(IS_BIG_ENDIAN,1,[System is big or little endian])
if test "n$CC" = ngcc; then
regs="-posix -fomit-frame-pointer"
regs="-posix "
else
regs="-posix"
copt="-O3"
......@@ -460,7 +462,7 @@ fi
echo "know if you can compile and run it successfully!"
echo "Determining this system's endianness and short/int sizes..."
if test "n$CC" = ngcc; then
regs="-fomit-frame-pointer"
regs=
else
regs=
copt="-O2"
......@@ -493,8 +495,7 @@ case $endian in
big) echo "You're using a big-endian processor, very good!";;
little) echo "You're using a little-endian processor, too bad...";;
*)
echo "Your machine seems to have a weird byte-ordering format, which I can't deal"
echo "with - sorry!."
echo "Your machine seems to have a weird byte-ordering format, Hm..."
;;
esac
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment