-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improper code generation for cross-compilation using arm-none-eabi-gcc #23817
Comments
NI should not be result.addf("#define NIM_INTBITS $1\L", [
platform.CPU[conf.target.targetCPU].intSize.rope]) nimbase.h: typedef int32_t NI32;
...
# elif NIM_INTBITS == 32
typedef NI32 NI;
... |
Unfortunately it appears that's how the It is interesting to note that on GCC 13 ( |
Well ok but then |
It appears this behavior is new in GCC 14 (refer to the "Type checking on pointer types" section) and only affects C standards after C89. With C89, it generates a warning (see here).
That works, but I'm unsure if patching |
Hmm why don't we simply use |
Description
Nim generates improper code for cross-compilation. The following
nim.cfg
used:Example that highlights this behavior:
Nim Version
Nim Compiler Version 2.0.8 [Linux: amd64]
Compiled at 2024-07-03
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 5935c3b
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: