Skip to content

simplelink: Fix clang-llvm compiler errors/warnings - #6

Open
galak wants to merge 1 commit into
zephyrproject-rtos:masterfrom
galak:fix-llvm
Open

simplelink: Fix clang-llvm compiler errors/warnings#6
galak wants to merge 1 commit into
zephyrproject-rtos:masterfrom
galak:fix-llvm

Conversation

@galak

@galak galak commented Feb 6, 2020

Copy link
Copy Markdown
Contributor

Fix inline assembly issues related to clang/llvm. Mostly related
errors of the form:

driverlib/cpu.h:373:28: error: parameter references not allowed in
naked functions

or
driverlib/cpu.c:253:5: error: non-ASM statement in naked function is
not supported

Signed-off-by: Kumar Gala kumar.gala@linaro.org

Fix inline assembly issues related to clang/llvm.  Mostly related
errors of the form:

driverlib/cpu.h:373:28: error: parameter references not allowed in
                        naked functions

or
driverlib/cpu.c:253:5: error: non-ASM statement in naked function is
                       not supported

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
@galak
galak requested review from a user and vanti February 6, 2020 18:14
@vanti

vanti commented Feb 7, 2020

Copy link
Copy Markdown
Contributor

Not being an expert in ARM assembly, I compared your changes to the corresponding files in TI SimpleLink SDK 3.40.00.02 which has clang support (see attached). The changes look close enough to me - maybe you will find a few more things you wish to copy over, if you haven't seen these files already.

In the medium term I have it on my todo list to upgrade to the latest SDK so that we can take advantage of fixes such as these.

driverlib.zip

@cfriedt

cfriedt commented Oct 31, 2022

Copy link
Copy Markdown
Member

@galak @vanti - is this still needed?

@cfriedt

cfriedt commented Apr 9, 2023

Copy link
Copy Markdown
Member

@vaishnavachath - PTAL

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants