summaryrefslogtreecommitdiff
path: root/gcc/melt-module.mk
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-07 16:47:03 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-07 16:47:03 +0000
commit0b96dc34789e4d2b9253e4a0b1efa444cd3dede8 (patch)
tree1243e8a2290d92abee6c959089abf11791636dac /gcc/melt-module.mk
parent71e9bf85854cba7daf01f7549314f5912f5f78ad (diff)
downloadgcc-0b96dc34789e4d2b9253e4a0b1efa444cd3dede8.tar.gz
2011-07-07 Basile Starynkevitch <basile@starynkevitch.net>
* INSTALL/README-MELT-PLUGIN: Mention quick translation mode. 2011-07-07 Basile Starynkevitch <basile@starynkevitch.net> * gcc/melt-runtime.h (struct melt_callframe_st): Add forward declaration. * gcc/melt-module.mk (MELTMODULE_QUICKLY,MELTMODULE_OBJQUIPICFILES) (melt_module_quickly,%.quipic.o): New for quick compilation. * gcc/melt/warmelt-base.melt (generate_quickly_melt_module) (load_quickly_melt_module): New primitives. * gcc/melt/warmelt-outobj.melt (translatequickly_docmd): New translatequickly mode. runfile_docmd uses quick compilation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@175990 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/melt-module.mk')
-rw-r--r--gcc/melt-module.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/melt-module.mk b/gcc/melt-module.mk
index ef0c30e9fca..017135ce295 100644
--- a/gcc/melt-module.mk
+++ b/gcc/melt-module.mk
@@ -1,7 +1,7 @@
## file melt-module.mk
## a -*- Makefile -*- for GNU make.
-# Copyright (C) 2009 Free Software Foundation, Inc.
+# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
# Contributed by Basile Starynkevitch <basile@starynkevitch.net>
# This file is part of GCC.
@@ -60,12 +60,16 @@ MELTMODULE_OPTIMIZED:= \
MELTMODULE_NOLINE:= \
$(patsubst %, %.n.so, $(GCCMELT_MODULE_BINARY))
+MELTMODULE_QUICKLY:= \
+ $(patsubst %, %.q.so, $(GCCMELT_MODULE_BINARY))
+
MELTSTAMP:=$(GCCMELT_MODULE_WORKSPACE)/$(MELTMODULE_PLAIN)-stamp.c
MELTMODULE_CFILES:=$(wildcard $(MELTMODULE_BASENAME).c $(MELTMODULE_BASENAME)+*.c)
MELTMODULE_OBJPICFILES:=$(patsubst %.c, $(GCCMELT_MODULE_WORKSPACE)/%.pic.o, $(notdir $(MELTMODULE_CFILES)))
MELTMODULE_OBJDYNPICFILES:=$(patsubst %.c, $(GCCMELT_MODULE_WORKSPACE)/%.dynpic.o, $(notdir $(MELTMODULE_CFILES)))
MELTMODULE_OBJNOLPICFILES:=$(patsubst %.c, $(GCCMELT_MODULE_WORKSPACE)/%.nolpic.o, $(notdir $(MELTMODULE_CFILES)))
+MELTMODULE_OBJQUIPICFILES:=$(patsubst %.c, $(GCCMELT_MODULE_WORKSPACE)/%.quipic.o, $(notdir $(MELTMODULE_CFILES)))
ifndef GCCMELT_CC
GCCMELT_CC=gcc
@@ -81,8 +85,10 @@ MD5SUM=md5sum
melt_module: $(MELTMODULE_OPTIMIZED)
+melt_module_quickly: $(MELTMODULE_QUICKLY)
+melt_module_quickly: override GCCMELT_CFLAGS= -O0 -DMELT_HAVE_DEBUG=1
melt_module_dynamic: $(MELTMODULE_DYNAMIC)
-melt_module_rawdynamic: $((MELTMODULE_DYNAMIC)
+melt_module_rawdynamic: $(MELTMODULE_DYNAMIC)
# melt_module_rawdynamic: override GCCMELT_CFLAGS += -DMELTGCC_DYNAMIC_OBJSTRUCT
melt_module_withoutline: $(MELTMODULE_NOLINE)
@@ -103,10 +109,17 @@ $(MELTMODULE_NOLINE): $(MELTMODULE_OBJNOLPICFILES) $(MELTSTAMP)
-fPIC -shared $(MELTMODULE_OBJNOLPICFILES) $(MELTSTAMP) -o $@
$(RM) $(MELTSTAMP)
+$(MELTMODULE_QUICKLY): $(MELTMODULE_OBJQUIPICFILES) $(MELTSTAMP)
+ $(GCCMELT_CC) $(GCCMELT_CFLAGS) -O0 -DMELT_HAVE_DEBUG=1 -DMELTGCC_NOLINENUMBERING \
+ -fPIC -shared $(MELTMODULE_OBJQUIPICFILES) $(MELTSTAMP) -o $@
+ $(RM) $(MELTSTAMP)
+
$(GCCMELT_MODULE_WORKSPACE)/%.pic.o: $(MELTMODULE_SRCDIR)/%.c
$(GCCMELT_CC) $(GCCMELT_CFLAGS) -fPIC -c -o $@ $<
$(GCCMELT_MODULE_WORKSPACE)/%.dynpic.o: $(MELTMODULE_SRCDIR)/%.c
$(GCCMELT_CC) $(GCCMELT_CFLAGS) -DMELT_HAVE_DEBUG=1 -DMELTGCC_DYNAMIC_OBJSTRUCT -fPIC -c -o $@ $<
+$(GCCMELT_MODULE_WORKSPACE)/%.quipic.o: $(MELTMODULE_SRCDIR)/%.c
+ $(GCCMELT_CC) $(GCCMELT_CFLAGS) -DMELT_HAVE_DEBUG=1 -DMELTGCC_DYNAMIC_OBJSTRUCT -fPIC -c -o $@ $<
$(GCCMELT_MODULE_WORKSPACE)/%.nolpic.o: $(MELTMODULE_SRCDIR)/%.c
$(GCCMELT_CC) $(GCCMELT_CFLAGS) -g -DMELT_HAVE_DEBUG=1 -DMELTGCC_NOLINENUMBERING -fPIC -c -o $@ $<