changeset 206:cd2c9f4010e4 trunk

[svn r222] Forgot to remove volatile ATTENTION. Fixed a few comment types. Forgot to add makefile for the basic GC.
author lindquist
date Tue, 13 May 2008 18:07:03 +0200
parents 9d44ec83acd1
children e0b6040585b4
files gen/statements.cpp llvmdc.kdevelop llvmdc.kdevelop.filelist tango/lib/gc/basic/llvmdc.mak tangotests/volatile1.d
diffstat 5 files changed, 118 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gen/statements.cpp	Tue May 13 17:58:11 2008 +0200
+++ b/gen/statements.cpp	Tue May 13 18:07:03 2008 +0200
@@ -1157,9 +1157,7 @@
     Logger::println("VolatileStatement::toIR(): %s", loc.toChars());
     LOG_SCOPE;
 
-    Logger::attention(loc, "volatile is currently ignored. only the body will be emitted");
-
-    // mark in volate
+    // mark in-volatile
     bool old = gIR->func()->inVolatile;
     gIR->func()->inVolatile = true;
 
@@ -1172,7 +1170,7 @@
         // do statement
         statement->toIR(p);
 
-        // not point in a unreachable barrier, terminating statements should insert this themselves.
+        // no point in a unreachable barrier, terminating statements should insert this themselves.
         if (statement->fallOffEnd())
         {
             // store-load
--- a/llvmdc.kdevelop	Tue May 13 17:58:11 2008 +0200
+++ b/llvmdc.kdevelop	Tue May 13 18:07:03 2008 +0200
@@ -16,6 +16,7 @@
     <absoluteprojectpath>false</absoluteprojectpath>
     <description/>
     <defaultencoding/>
+    <versioncontrol>kdevsubversion</versioncontrol>
   </general>
   <kdevautoproject>
     <general/>
@@ -101,6 +102,7 @@
     <tree>
       <hidepatterns>*.bc</hidepatterns>
       <hidenonprojectfiles>false</hidenonprojectfiles>
+      <showvcsfields>false</showvcsfields>
     </tree>
   </kdevfileview>
   <kdevdocumentation>
@@ -660,6 +662,7 @@
       <path>dmd26/version.h</path>
       <path>todo</path>
       <path>todo/lib.d</path>
+      <path>tests/dstress</path>
     </blacklist>
     <build>
       <buildtool>make</buildtool>
--- a/llvmdc.kdevelop.filelist	Tue May 13 17:58:11 2008 +0200
+++ b/llvmdc.kdevelop.filelist	Tue May 13 18:07:03 2008 +0200
@@ -288,7 +288,6 @@
 tango/lib/compiler/llvmdc/lifetime.d
 tango/lib/compiler/llvmdc/llvm
 tango/lib/compiler/llvmdc/mars.h
-tango/lib/compiler/llvmdc/mem.d
 tango/lib/compiler/llvmdc/memory.d
 tango/lib/compiler/llvmdc/monitor.c
 tango/lib/compiler/llvmdc/qsort2.d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tango/lib/gc/basic/llvmdc.mak	Tue May 13 18:07:03 2008 +0200
@@ -0,0 +1,100 @@
+# Makefile to build the garbage collector D library for LLVMDC
+# Designed to work with GNU make
+# Targets:
+#	make
+#		Same as make all
+#	make lib
+#		Build the garbage collector library
+#   make doc
+#       Generate documentation
+#	make clean
+#		Delete unneeded files created by build process
+
+LIB_TARGET=libtango-gc-basic.a
+LIB_MASK=libtango-gc-basic*.a
+
+CP=cp -f
+RM=rm -f
+MD=mkdir -p
+
+ADD_CFLAGS=
+ADD_DFLAGS=
+
+#CFLAGS=-O $(ADD_CFLAGS)
+CFLAGS=-g $(ADD_CFLAGS)
+
+#DFLAGS=-release -O -inline -w -nofloat $(ADD_DFLAGS)
+DFLAGS=-g -w -nofloat $(ADD_DFLAGS)
+
+TFLAGS=-O -inline -w -nofloat $(ADD_DFLAGS)
+#TFLAGS=-g -w -nofloat $(ADD_DFLAGS)
+
+DOCFLAGS=-version=DDoc
+
+CC=gcc
+LC=llvm-ar rsv
+DC=llvmdc
+
+LIB_DEST=..
+
+.SUFFIXES: .s .S .c .cpp .d .html .o .bc
+
+.s.o:
+	$(CC) -c $(CFLAGS) $< -o$@
+
+.S.o:
+	$(CC) -c $(CFLAGS) $< -o$@
+
+.c.o:
+	$(CC) -c $(CFLAGS) $< -o$@
+
+.cpp.o:
+	g++ -c $(CFLAGS) $< -o$@
+
+.d.bc:
+	$(DC) -c $(DFLAGS) $< -of$@
+
+.d.html:
+	$(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
+#	$(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
+
+targets : lib doc
+all     : lib doc
+lib     : basic.lib
+doc     : basic.doc
+
+######################################################
+
+ALL_OBJS= \
+    gc.bc \
+    gcalloc.bc \
+    gcbits.bc \
+    gcstats.bc \
+    gcx.bc
+
+######################################################
+
+ALL_DOCS=
+
+######################################################
+
+basic.lib : $(LIB_TARGET)
+
+$(LIB_TARGET) : $(ALL_OBJS)
+	$(RM) $@
+	$(LC) $@ $(ALL_OBJS)
+
+basic.doc : $(ALL_DOCS)
+	echo No documentation available.
+
+######################################################
+
+clean :
+	find . -name "*.di" | xargs $(RM)
+	$(RM) $(ALL_OBJS)
+	$(RM) $(ALL_DOCS)
+	$(RM) $(LIB_MASK)
+
+install :
+	$(MD) $(LIB_DEST)
+	$(CP) $(LIB_MASK) $(LIB_DEST)/.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tangotests/volatile1.d	Tue May 13 18:07:03 2008 +0200
@@ -0,0 +1,13 @@
+module tangotests.volatile1;
+
+import tango.stdc.stdlib;
+
+void main()
+{
+    int var = rand();
+    {
+        int i = var;
+        volatile;
+        int j = i;
+    }
+}