[Issue 11881] -betterC switch suffers from bit rot

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 7 19:27:30 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11881


Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com


--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> 2014-01-07 19:27:21 PST ---
Other stuff I think this should do:

* suppress the generation of the call _d_dso_registry function
(backend/elfobj.c).

* The assert isn't put out with -release, but that kills all asserts. So I
think -betterC might be good to suppress any *hidden* asserts, while keeping
explicit ones in (which are removed with -release if you want to kill them
too). The struct method calling _d_assertm, which requires ModuleInfo, is a
hidden assert on the struct method.

actually that just might do the trick for a better c. Toying with these, I made
a test.d with an extern(C) main and it worked fairly well. My hacky changes to
the compiler caused it to crash if I tried to use a class, but C doesn't have
classes either so oh well.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list