Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 502

Show
Ignore:
Timestamp:
01/11/11 05:54:11 (14 years ago)
Author:
braddr
Message:

Fix rt/dmain2 to properly declare one missing symbol (probably visible due to bug 314 while building the whole library but not when building the unittest.
Start building druntime with -O on 64 bit, everything passes now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/posix.mak

    r500 r502  
    11 
    22DMD=dmd 
    33 
    44DOCDIR=doc 
    55IMPDIR=import 
    66 
    77MODEL=32 
    88 
    9 ifeq ($(MODEL),64) 
    10 DFLAGS=-m$(MODEL) -release -inline -nofloat -w -d -Isrc -Iimport 
    11 UDFLAGS=-m$(MODEL) -release -nofloat -w -d -Isrc -Iimport 
    12  
    13 CFLAGS=-m$(MODEL) 
    14 else 
    159DFLAGS=-m$(MODEL) -O -release -inline -nofloat -w -d -Isrc -Iimport  
    1610UDFLAGS=-m$(MODEL) -O -release -nofloat -w -d -Isrc -Iimport  
    1711 
    1812CFLAGS=-m$(MODEL) -O 
    19 endif 
    2013 
    2114OBJDIR=obj 
    2215DRUNTIME_BASE=druntime 
    2316DRUNTIME=lib/lib$(DRUNTIME_BASE).a 
    2417 
    2518DOCFMT= 
    2619 
    2720target : import $(DRUNTIME) doc 
    2821 
    2922_MISSING_FROM_MANIFEST = \ 
     
    395388 
    396389################### Library generation ######################### 
    397390 
    398391$(DRUNTIME): $(OBJS) $(SRCS) win32.mak 
    399392    $(DMD) -lib -of$(DRUNTIME) -Xfdruntime.json $(DFLAGS) $(SRCS) $(OBJS) 
    400393 
    401394unittest : $(addprefix $(OBJDIR)/,$(SRC_D_MODULES)) $(DRUNTIME) $(OBJDIR)/emptymain.d 
    402395    @echo done 
    403396 
    404397ifeq ($(MODEL),64) 
    405 DISABLED_TESTS = \ 
    406     rt/dmain2 
     398DISABLED_TESTS = 
    407399else 
    408 DISABLED_TESTS = \ 
    409     rt/dmain2 
     400DISABLED_TESTS = 
    410401endif 
    411402 
    412403$(addprefix $(OBJDIR)/,$(DISABLED_TESTS)) : 
    413404    @echo $@ - disabled 
    414405 
    415406$(OBJDIR)/% : src/%.d $(DRUNTIME) $(OBJDIR)/emptymain.d 
    416407    @echo Testing $@ 
    417408    @$(DMD) $(UDFLAGS) -unittest -of$@ $(OBJDIR)/emptymain.d $< -L-Llib -debuglib=$(DRUNTIME_BASE) -defaultlib=$(DRUNTIME_BASE) 
    418409# make the file very old so it builds and runs again if it fails 
    419410    @touch -t 197001230123 $@ 
  • trunk/src/rt/dmain2.d

    r441 r502  
    5050         
    5151        if (t !is null) 
    5252        { 
    5353            if (cast(byte*) t is t.classinfo.init.ptr) 
    5454                return; 
    5555            if (t !is _d_unhandled) 
    5656                t.next = _d_unhandled; 
    5757        } 
    5858        _d_unhandled = t; 
    5959    } 
    60      
     60 
     61    extern (C) Throwable.TraceInfo _d_traceContext(void* ptr = null); 
     62 
    6163    extern (C) void _d_createTrace(Object *o) 
    6264    { 
    6365        auto t = cast(Throwable) o; 
    6466 
    6567        if (t !is null && t.info is null && 
    6668            cast(byte*) t !is t.classinfo.init.ptr) 
    6769        { 
    6870            t.info = _d_traceContext(); 
    6971        } 
    7072    }