https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120590

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gcc/Local-Register-Variables.html

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:



As with global register variables, it is recommended that you choose a register
that is normally saved and restored by function calls on your machine, so that
calls to library routines will not clobber it.

Reply via email to