Skip to content
Snippets Groups Projects
Commit 4d31d28e authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

Build [Configure]: Prevent inling of find_stack_direction()

Clang 11 has either learned to inline find_stack_direction(), or it may
have inlined find_stack_direction() before but changed allocation order
for our "objects with automatic storage duration" that we use to check
the stack direction.

Calling find_stack_direction() through a volatile function pointer
should reliably prevent it from getting inlined and thus flush out the
real stack direction.

Thanks to Cezary Cerekwicki <ccerekwicki@opera.com> for the report.
parent 70d330e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment