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

nonLockingLinux__execve: Use register for ARM asm(reg) vars #3275

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jmr
Copy link

@jmr jmr commented Sep 6, 2024

Description of Change(s)

Variables assigned to a register with asm() (like asm("x0")) should be register not automatic.

https://gcc.gnu.org/onlinedocs/gcc/Local-Register-Variables.html

clang emits a warning for this, which will turn into an error with -Werror. gcc emits no warning/error.

https://godbolt.org/z/4zE94szzo

Fixes Issue(s)

  • Fixes broken build with clang -Werror on ARM.

  • I have verified that all unit tests pass with the proposed changes

  • I have submitted a signed Contributor License Agreement

Fixes broken build with `clang -Werror` on ARM.

Variables assigned to a register with `asm()` (like `asm("x0")`) should be `register` not automatic. 

https://gcc.gnu.org/onlinedocs/gcc/Local-Register-Variables.html

clang emits a warning for this, which will turn into an error with `-Werror`. gcc emits no warning/error.

https://godbolt.org/z/4zE94szzo
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10087

❗ Please make sure that a signed CLA has been submitted!

@jesschimein
Copy link
Contributor

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jmr
Copy link
Author

jmr commented Sep 9, 2024

Please make sure that a signed CLA has been submitted!

I work for Google, which you can verify with https://github.com/jmr. As I understand it, Google already has a corporate CLA on file.

@jesschimein
Copy link
Contributor

Hi @jmr! Thank you for the PR! We actually need names submitted by the corporate point of contact (or someone with authority to grant copyright/patent permissions) to be part of the Corporate CLA. Could you please have them email usd-cla (at) pixar (dot) com to add your name to the schedule? Thank you!

@jmr
Copy link
Author

jmr commented Sep 26, 2024

Could you please have them email ... to add your name to the schedule?

This has been done now.

@nvmkuruc
Copy link
Collaborator

This seems to be the same issue as #3008

@nvmkuruc nvmkuruc added the build Build-related issue/PR label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build-related issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants