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

Use __asm__ instead of asm for strict ISO C conformance #11706

Merged
merged 1 commit into from Nov 7, 2022
Merged

Conversation

xavierleroy
Copy link
Contributor

Although GCC and Clang accept asm even in -std=cXX mode, other compilers do not (see #11691 for a report). So, it's safer to use __asm__ instead.

Ref: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Alternate-Keywords.html

Fixes: #11691

Although GCC and Clang accept `asm` even in `-std=cXX` mode, other compilers
do not (see #11691 for a report).  So, it's safer to use `__asm__` instead.

Ref: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Alternate-Keywords.html

Fixes: #11691
@xavierleroy xavierleroy added this to the 5.0 milestone Nov 6, 2022
@xavierleroy
Copy link
Contributor Author

Currently going through CI precheck.

@xavierleroy xavierleroy modified the milestones: 5.0, 5.1 Nov 6, 2022
@sadiqj
Copy link
Contributor

sadiqj commented Nov 7, 2022

LGTM, thanks.

@sadiqj sadiqj merged commit 134f7c9 into trunk Nov 7, 2022
@xavierleroy xavierleroy deleted the __asm__ branch November 7, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use of undeclared identifier 'asm' (c11)
2 participants