Thread overview
[Issue 5330] New: Druntime/Phobos: remove special treatment for GDC
Dec 07, 2010
Iain Buclaw
Dec 07, 2010
Iain Buclaw
Dec 07, 2010
Don
Dec 07, 2010
Iain Buclaw
December 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5330

           Summary: Druntime/Phobos: remove special treatment for GDC
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: ibuclaw@ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-12-07 03:43:42 PST ---
There are various bits of code in and around Druntime and Phobos that hide inline asm from GDC (or when version = GNU). In my opinion, I think these should be removed as they only hide GDC bugs that *should* instead be fixed in the compiler.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5330



--- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-12-07 03:53:25 PST ---
Created an attachment (id=842)
Remove version(GNU){} else { version=ASMx86 } code

Patch to remove it from the notable places in core.cpuid and std.math.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5330


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug@yahoo.com.au
         Resolution|                            |FIXED


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-12-07 06:14:12 PST ---
I've wanted to do that for years. Thanks!

http://www.dsource.org/projects/druntime/changeset/439

http://www.dsource.org/projects/phobos/changeset/2210

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5330



--- Comment #3 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-12-07 07:17:41 PST ---
:3

Incase you are curious, GDC still can't generate the correct codegen for the naked asm inside exp2 and expm1. But then again, the GCC builtin functions make a better replacement of them for the time being.

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