fix prism compilation and PRISM overflow handling.

This commit is contained in:
Vítor Santos Costa 2011-11-18 18:33:22 +00:00
parent b3045ae38b
commit e33712403f
2 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,7 @@ BINDIR = $(EROOTDIR)/bin
#
# where YAP should look for libraries
#
TARGETS= prism.@SO@
LIBDIR=@libdir@
YAPLIBDIR=@libdir@/Yap
YAP_EXTRAS=@YAP_EXTRAS@ -D_YAP_NOT_INSTALLED_=1 -D__YAP_PROLOG__=1
@ -38,6 +39,7 @@ SO=@SO@
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
CWD=$(PWD)
#
RM=rm -f
##----------------------------------------------------------------------
@ -71,9 +73,9 @@ mp/%.o: $(srcdir)/mp/%.c
@DO_SECOND_LD@prism.@SO@: $(OBJS)
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
all: $(TARGET)
all: $(TARGETS)
install: $(TARGET)
install: $(TARGETS)
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean: clean_subdirs
@ -81,7 +83,7 @@ clean: clean_subdirs
clean_subdirs:
for i in $(SUBDIRS); do \
($(MAKE) -f $(MAKEFILE) -C $$i clean ) \
$(RM) $$i/*.o; \
done
##----------------------------------------------------------------------

View File

@ -797,7 +797,7 @@ int pc_import_occ_switches_3(void)
/* running out of stack */
extern int Yap_gcl(UInt gc_lim, Int predarity, CELL *current_env, yamop *nextop);
Yap_gcl(4*64*1024, 3, ENV, P);
Yap_gcl(4*64*1024, 3, ENV, CP);
goto restart;
}
#endif