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

Filed as internal issue #USD-10087

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

@jesschimein
Copy link

/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

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!

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.

2 participants