From 32ebd9617e3db3c07cf3d712dff3a618bce16caa Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Wed, 28 Nov 2007 05:04:38 +0100 Subject: [PATCH] [svn r130] fixed #28 --- dmd/link.c | 8 ++++++-- lphobos/internal/objectimpl.d | 6 ++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dmd/link.c b/dmd/link.c index c69440b2..61aab5c0 100644 --- a/dmd/link.c +++ b/dmd/link.c @@ -218,8 +218,8 @@ int runLINK() argv.insert(argv.dim, global.params.libfiles); - //if (global.params.symdebug) - //argv.push((void *)"-g"); + if (!global.params.symdebug) + argv.push((void *)"-strip-debug"); //argv.push((void *)"-m32"); @@ -247,6 +247,10 @@ int runLINK() argv.push((void*)s); } + if (!global.params.useInline) { + argv.push((void *)"-disable-inlining"); + } + #if 0 if (0 && global.params.exefile) { diff --git a/lphobos/internal/objectimpl.d b/lphobos/internal/objectimpl.d index 972d1252..c82165e6 100644 --- a/lphobos/internal/objectimpl.d +++ b/lphobos/internal/objectimpl.d @@ -110,8 +110,7 @@ class Object */ char[] toString() { - //return this.classinfo.name; - return "object.Object (no classinfo yet)"; + return this.classinfo.name; } /** @@ -137,8 +136,7 @@ class Object // BUG: this prevents a compacting GC from working, needs to be fixed //return cast(int)cast(void *)this - cast(int)cast(void *)o; - //throw new Error("need opCmp for class " ~ this.classinfo.name); - throw new Error("need opCmp for class unknown object.Object (no classinfo yet)"); + throw new Error("need opCmp for class " ~ this.classinfo.name); } /**