Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 12 - ARM: runnable/test12.d Unsupported platform
Summary: ARM: runnable/test12.d Unsupported platform
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: ARM Linux
: --- trivial
Assignee: Johannes Pfau
URL:
Depends on:
Blocks:
 
Reported: 2012-09-25 11:45 CEST by Johannes Pfau
Modified: 2012-09-26 08:32 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Pfau 2012-09-25 11:45:29 CEST
These tests are currently failing:
----
    version(X86)
        assert(a.classinfo.init.length == 28);
    else version(X86_64)
        assert(a.classinfo.init.length == 36);
    else
        assert(0);
----

----
        version(X86)
        {
            assert(Qwert32.yuiop.offsetof == 8);
            assert(Qwert32.asdfg.offsetof == 12);
        }
        else version (X86_64)
        {
            assert(Qwert32.yuiop.offsetof == 16);
            assert(Qwert32.asdfg.offsetof == 20);
        }
        else
            assert(0);
----

we could of course just add
----
    else version(ARM)
        assert(a.classinfo.init.length == 28);
----
and
----
        else version (ARM)
        {
            assert(Qwert32.yuiop.offsetof == 8);
            assert(Qwert32.asdfg.offsetof == 12);
        }
----

but I wonder whether this should use D_LP64 instead?
Comment 1 Iain Buclaw 2012-09-25 16:38:19 CEST
This is again a problem solved by using D_LP64. :^)
Comment 3 Johannes Pfau 2012-09-26 08:32:34 CEST
Fixed upstream in dmd 2.061
https://github.com/D-Programming-Language/dmd/commit/375855698cd4de3c74f9840941daf37b9ae36dcf