[Issue 16547] -betterC switch no longer removes druntime symbols
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 30 08:17:54 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16547
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Gary Willoughby from comment #0)
> When building an executable and using the -betterC flag using DMD v2.070.0
> the symbols emitted from the above program are thus:
>
> 0000000000000000 T _main
> U _printf
I can't reproduce this.
$ uname -a
Linux home.thecybershadow.net 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29
CEST 2016 x86_64 GNU/Linux
$ dmd --version
DMD64 D Compiler v2.070.0
Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
$ cat test.d
import core.stdc.stdio;
extern(C) void main()
{
printf("Hello World!\n");
}
$ dmd -betterC test
$ nm test | wc -l
1814
--
More information about the Digitalmars-d-bugs
mailing list