Branch: Tag:

2003-01-10

2003-01-10 11:11:04 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

detect -fomit-frame-pointer, add -fno-omit-frame-pointer for interpret.c

Rev: src/Makefile.in:1.343
Rev: src/configure.in:1.674

1:   # - # $Id: Makefile.in,v 1.342 2003/01/09 19:52:22 grubba Exp $ + # $Id: Makefile.in,v 1.343 2003/01/10 11:11:04 mirar Exp $   #      # This line is needed on some machines.
80:   # -O should work with all compilers   OPTIMIZE=@OPTIMIZE@    + # interpret.o can't have -fomit-frame-pointer + INTERPRET_DEOPTIMIZE=@INTERPRET_DEOPTIMIZE@ +    # Set to a flag for parallelizing make, e.g. -j2. It's given to make   # at the level where it's most effective.   MAKE_PARALLEL=
365:   # First try compiling with optimization and if that doesn't work, without.   # GCC dumps core on some files @ OSF1   # This kluge should work around that... + # Extra kludge added: interpret.o gets special flags (deoptimization)   .c.o:    @echo "Compiling $<" ;\    rm -f $@.fail >/dev/null 2>&1; \ -  if $(CC) $(CFLAGS) -c $< -o $@ ; then : ; else \ +  if test "x$@" = "xinterpret.o"; then EXTRAFLAGS="$(INTERPRET_DEOPTIMIZE)"; else EXTRAFLAGS=; fi; \ +  if $(CC) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \    status=$$?; \    if test x"@noopt_retry@" = xyes ; then \    echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >$@.fail ;\ -  if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ; then : ; else \ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >$@.fail ;\ +  if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \    status=$$?; \    echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\    exit $$status; \    fi; \    else \    echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\    exit $$status; \    fi; \    fi