Skip to content
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

Error: invalid literal constant: pool needs to be closer #1609

Open
ua1arn opened this issue Mar 13, 2023 · 1 comment
Open

Error: invalid literal constant: pool needs to be closer #1609

ua1arn opened this issue Mar 13, 2023 · 1 comment

Comments

@ua1arn
Copy link
Contributor

ua1arn commented Mar 13, 2023

This error message from linker stage of gcc point to this line of code:
image
Ths fuction - inline body of __FPU_Enable, located in core_A/Include/cmsis_gcc.h.
In my project with -Ofast -flto optimization options. Method for solve this error - explicit disable inlining of outer function..
Or, __FPU_Enable can be rewritten for use imm constants and left shift R2 content.

@ua1arn
Copy link
Contributor Author

ua1arn commented Mar 15, 2023

Proposed fix
patch.zip

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

No branches or pull requests

2 participants