https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66703
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Uroš Bizjak from comment #4) > This patch makes testcase more robust: > > --cut here-- > Index: readeflags-1.c > =================================================================== > --- readeflags-1.c (revision 225648) > +++ readeflags-1.c (working copy) > @@ -11,10 +11,11 @@ > #define EFLAGS_TYPE unsigned int > #endif > > -static EFLAGS_TYPE > +__attribute__((noinline, noclone)) > +EFLAGS_TYPE > readeflags_test (unsigned int a, unsigned int b) > { > - unsigned x = (a == b); > + volatile char x = (a == b); > return __readeflags (); > } > > --cut here-- It looks fine. Thanks.