www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 56] New: Error with gcc.builtins and ARM neon.

http://bugzilla.gdcproject.org/show_bug.cgi?id=56


           Summary: Error with gcc.builtins and ARM neon.
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Platform: ARM
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: jerro.public gmail.com


If I try to build the following code:

import gcc.builtins;

for arm with flags -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a9, I get:

Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented
Error: cent and ucent types not implemented

I can fix this by making this change in d-builtins.c:

132,134c132,133
<         if (d && d->isintegral() && d->size() == type_size 
<             && (d->isunsigned() ? true : false) == is_unsigned
<             && d->ty != Tint128 && d->ty != Tuns128)
---
         if (d && d->isintegral() && d->size() == type_size
             && (d->isunsigned() ? true : false) == is_unsigned)
But I don't know if that's the best way to fix this. -- Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
May 25 2013