instr_size fixes for arm64 - #13667
Conversation
|
@xavierleroy - the check is now restricted to GitHub Actions (and can be generally enabled via a new |
xavierleroy
left a comment
There was a problem hiding this comment.
Looks good to me.
One very minor reservation: the name debug_codegen (in Config) and the option --enable-debug-codegen suggest that this is about generating debugging information (a.k.a. "GDB support"), in which case users will be disappointed. Maybe --enable-codegen-assertions ?
|
Name works for me - possibly also |
Fine with me. Pick whichever you prefer. |
d234440 to
c62f76c
Compare
618c7f2 to
ce718ff
Compare
| os: macos-13 | ||
| - name: macos-arm64 | ||
| os: macos-14 | ||
| config_arg: CONFIG_ARG='--enable-codegen-invariants' |
There was a problem hiding this comment.
| config_arg: CONFIG_ARG='--enable-codegen-invariants' |
ce718ff to
7530f1f
Compare
|
Merged, thanks! |
This can cause short branches to overflow because they were not properly relaxed. Partial backport of: ocaml#13667 Fixes: ocaml#14599
This is a rebase of the work originally done in #11162 by @stedolan
The main change is adding a configure flag
--enable-debug-codegento turn on the debugging assertions on instr_size so it is opt in (285db26), and I have added this configure flag to GitHub CI so it will run in CI (d234440)@xavierleroy I think that last point covers what you suggested here #11162 (comment)
This should address the bug report #13596