Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Returning static arrays broken on ARM #136

Closed
alexrp opened this Issue Jul 7, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

alexrp commented Jul 7, 2012

On ARM:

[ 23%] Generating src/gc/gcx.o, src/gc/gcx.bc
Return operand #4 has unhandled type i32UNREACHABLE executed at CallingConvLower.cpp:113!
Stack dump:
0.  Running pass 'ARM Instruction Selection' on function '@_D2gc3gcx3Gcx8ctfeBinsFZG2049g'
make[2]: *** [runtime/src/gc/gcx.o] Aborted
make[2]: *** Deleting file `runtime/src/gc/gcx.o'

(The relevant function is gc.gcx.ctfeBins().)

Owner

klickverbot commented Jul 7, 2012

Should be fixed when we return static arrays as sret. You could try manually applying the gen/abi.cpp part of #120 to see if it fixes the problem.

Contributor

alexrp commented Jul 7, 2012

I can confirm that the gen/abi.cpp part of that patch fixes the problem. I think it would be a good idea to at least merge that part of the patch.

redstar pushed a commit that referenced this issue Sep 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment