Undefined Reference to volatileLoad/Store Instrinsics

Iain Buclaw via D.gnu d.gnu at puremagic.com
Tue Jul 18 13:54:26 PDT 2017


On 18 July 2017 at 22:41, Mike via D.gnu <d.gnu at puremagic.com> wrote:
>
> Analyzing the object file I see this: arm-none-eabi-nm binary/fimrware.o
>
> U _D4core5bitop12volatileLoadFPhZh
> U _D4core5bitop12volatileLoadFPkZk
> U _D4core5bitop12volatileLoadFPtZt
> U _D4core5bitop13volatileStoreFPhhZv
> U _D4core5bitop13volatileStoreFPkkZv
> U _D4core5bitop13volatileStoreFPttZv
>
> Am I doing something wrong?
>

Yes, the signature it looks for is FNbNiNf for volatileLoad and
FNbNiNf for volatileStore.  That is nothrow, @nogc and @safe
attributes respectively.

Just after module core.bitop; line, add:

nothrow:
@safe:
@nogc:

Regards
Iain.


More information about the D.gnu mailing list