Branch: Tag:

2003-11-10

2003-11-10 22:02:24 by Martin Stjernholm <mast@lysator.liu.se>

Backported kludge to avoid -fomit-frame-pointer for interpret.c when machine
code is used.

Rev: src/Makefile.in:1.341
Rev: src/configure.in:1.669

1:   # - # $Id: Makefile.in,v 1.340 2003/10/08 20:30:55 mast Exp $ + # $Id: Makefile.in,v 1.341 2003/11/10 22:02:24 mast Exp $   #      # This line is needed on some machines.
77:   # -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=
362:   # 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