https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66215
--- Comment #18 from Miroslav Benes <mbenes at suse dot cz> --- I confirm that v4 of the proposed patch works for me. Tested on simple userspace program similar to the one in the bug description and on the kernel module where I stumbled upon the bug originally. Thanks a lot for the fix, Miroslav