-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
std: add arch bits for m68k-linux #23376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can try adding a special case for m68k here: Line 1666 in db7db48
Then use GNU You can also try building a basic program or even the behavior tests with |
bcc7d27
to
d9c7a9d
Compare
besides the
I imagine the fix would simply be to change the |
acb5807
to
ba80897
Compare
fixed all the issues I could find; the behavior tests seem to be in a good spot now.
|
ba80897
to
32930d1
Compare
Its building now, but with a segfault during compilation. Any idea how to debug this?
|
Oh yeah it looks like the change to |
Get a debug build of stage4 by doing e.g. When working on Zig, it's generally recommended to use stage3 only for building stage4. stage4 is then the compiler you use to run tests, etc. This way, you only have to rebuild stage3 -- which is a slow process as you've probably noticed -- once in a while when a backwards-incompatible change is made. |
47726a9
to
af55097
Compare
crash caused when llvm tries to emit this instruction: |
Well, the m68k target in LLVM is still marked experimental, so some bugs are to be expected. I don't think it's worth spending too much time on unless you have a particular interest in it. |
Yeah if this doesn’t break anything else (which i haven't checked yet) it can probably be merged |
0a06e2f
to
230943e
Compare
Line 360 in f296eec
|
62172dc
to
5bd1293
Compare
Works fine in GNU |
yeah that is definitely valid, its listed as one of the nine (lol) addressing modes that jsr can use in the user manual. needs to be fixed in llvm |
https://godbolt.org/z/9MPrc9361 |
74e81ab
to
9ecfd81
Compare
The merge conflict needs to be resolved in order to run CI. |
f2e18b8
to
d7c2417
Compare
There was a formatting issue, should be good now |
I'm a bit preoccupied with 0.14.1 release stuff at the moment, but I'll do a more thorough review pass over this when I have time. It looks good from a quick glance, but if I do find any problems, I'll just fix them before merging. Thanks! |
Made some changes:
I've left the TODO regarding @sweiglbosker please take a look over the changes and see if they make sense to you. |
looks good. LGTM! |
This pr provides initial support for m68k-linux within std.
Following #19510 (comment), i can build object files, but there is still no support for m68k within lld. Therefore, I can't link programs to test with qemu.
#23089
#22189