-
Notifications
You must be signed in to change notification settings - Fork 124
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
feat(clang): add clang support #77
Commits on Sep 18, 2024
-
feat(clang): add llvm/clang support in makefile
Signed-off-by: Bruno Sa <bruno.vilaca.sa@gmail.com> Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f21dcd1 - Browse repository at this point
Copy the full SHA f21dcd1View commit details -
feat(clang): refactor headers generation for clang
Clang assembler requires valid assembly; otherwise, an error is thrown. Instead of using "->" as the token to parse for assembly macro defines, we define the tokens "#", which is used for comments in assembly files. The generated output will be valid for both clang and gcc. Signed-off-by: Bruno Sa <bruno.vilaca.sa@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5b60a34 - Browse repository at this point
Copy the full SHA 5b60a34View commit details -
feat(clang): add support for riscv clang
This commit fixes relocation errors identified by the clang compiler and marks the .gtl_page_tables section as no data otherwise there is a type mismatch. Signed-off-by: Bruno Sa <bruno.vilaca.sa@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f9bc0b6 - Browse repository at this point
Copy the full SHA f9bc0b6View commit details -
feat(clang): add support for armv8 clang
This commit fixes some issues when using clang: - remove .directive .func which is not recognized by clang assembler; - make gtlb_page_tables as no data to avoid section type mismatch; - remove general-regs-only in aarch32 this is not recognized by the clang assembler - remove mov instructions with flexible second operand since they are not recognized by the clang assembler; Signed-off-by: Bruno Sa <bruno.vilaca.sa@gmail.com> Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 85a7c03 - Browse repository at this point
Copy the full SHA 85a7c03View commit details -
feat(flags): Add warning flags to Makefile
These flags are enabled in Clang compiler by default. Adding these flags minimized the discrepancies between GCC and Clang Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f703bcc - Browse repository at this point
Copy the full SHA f703bccView commit details -
feat(missing-void): Add missing void argument to function prototypes
Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 09dfd7b - Browse repository at this point
Copy the full SHA 09dfd7bView commit details -
ref(fallthrough): Change the fallthrough annotation to attribute
Clang compiler only accepts fallthrough annotation to be done using attribute(fallthrough). This is can be enforced in gcc using the flag -Wimplicit-fallthrough=5 Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bb65113 - Browse repository at this point
Copy the full SHA bb65113View commit details -
fix(inline): Fix inline functions
Both MISRA and clang compiler force inline functions to be static. Functions that are used in multiple sources stop being inline because they cannot be static. The other inline functions become static and their prototype is removed from the header Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9121e83 - Browse repository at this point
Copy the full SHA 9121e83View commit details -
ref(core): refactor ipi_cpumsg_handler_size calculation
The way this size was being calculated using the linker generated a linking error when targetting risc-v. Signed-off-by: Jose Martins <josemartins90@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7ecc78f - Browse repository at this point
Copy the full SHA 7ecc78fView commit details -
fix(zynq_uart): add missing parenthesis on ambigous condition
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1fdbbb2 - Browse repository at this point
Copy the full SHA 1fdbbb2View commit details -
feat(ci/actions): add clang build
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d812ff3 - Browse repository at this point
Copy the full SHA d812ff3View commit details