https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117359
--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Andreas Schwab from comment #5) > This should be warned similar to "listing the stack pointer register %qs in > a clobber list is deprecated". The compiler already warns when "rsp" is added to the list of clobbers: pr117312.c:24:5: warning: listing the stack pointer register ‘rsp’ in a clobber list is deprecated [-Wdeprecated] 24 | asm("push %2; pushf; pop %0; pop %1" | ^~~ pr117312.c:24:5: note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement But RSP is *not* clobbered. The asm does not change the value of RSP, as is requested in the note.