https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101438
--- Comment #3 from Andrey Vihrov <andrey.vihrov at gmail dot com> --- Created attachment 51152 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51152&action=edit Alternative testcase using __builtin_alloca() Thanks. This code is the result of minimization. It seems that it is sufficient to make inline asm depend on arr in any form. "m"(arr[0]) (and initializing the array element) reproduces the issue as well. I've also attached a similar testcase that compiles and runs at -O0, but hangs the compiler at -O1 (and which likewise references the pointer itself with "m").