[Bug inline-asm/101438] Compiler hang on inline asm with local register and VLA operands
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 14 06:07:24 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101438
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid,
| |compile-time-hog, ra
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-07-14
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
At -O0 we get
t3.c: In function 'main':
t3.c:21:5: error: 'asm' operand has impossible constraints
21 | __asm__ (""
| ^~~~~~~
likely because there's not enough registers to pass in 'arr' (and we need a FP
to allocate arr). At -O1 it looks like we think we can manage but do not make
progress reloading.
So confirmed, a diagnostic would be nice.
More information about the Gcc-bugs
mailing list