https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87984
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In fact the warning even mentions this case: Warning: In the above example, be aware that a register (for example r0) can be call-clobbered by subsequent code, including function calls and __library calls for arithmetic operators__ on other variables (for example the initialization of p2). In this case, use temporary variables for expressions between the register assignments: See the part that is surrounded by __.