https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104971
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.5 Summary|Optimisation for |[9/10/11/12 Regression] |__builtin_ia32_readeflags |Optimisation for |corrupts the stack |__builtin_ia32_readeflags | |corrupts the stack CC| |jakub at gcc dot gnu.org Priority|P3 |P2 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The builtin has been implemented in r0-127024-g9bbd48d120d203e8eade09e0bb830370b6d69801 and the pop is optimized away with pushf kept since r5-4951-g4ab74a01477d4089a3474d52479ed372c9b5ae29 so this is a regression from GCC 4.9.