clang inserts stack protector in function with inline assembly "m" constraint #36931
Labels
bugzilla
Issues migrated from bugzilla
clang:as-a-library
libclang and C++ API
duplicate
Resolved as duplicate
Extended Description
https://godbolt.org/g/TmLd9z
The two examples show that clang will insert a stack guard in a function with inline assembly and the "m" constraint compiled with -fstack-protector-strong. Is there a good reason to do so, or this a bug in clang?
I know the function attribute no_stack_protector was recently added to clang. That seems to help.
It just seems weird the just "=r" generates no stack protector, but "=rm" does.
From discussion:
https://lkml.org/lkml/2018/5/24/1389
The text was updated successfully, but these errors were encountered: