www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5330] New: Druntime/Phobos: remove special treatment for GDC

reply d-bugmail puremagic.com writes:
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



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: -------
Dec 07 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5330




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: -------
Dec 07 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Dec 07 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5330




: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: -------
Dec 07 2010