[Bug other/109086] __builtin_strcmp generates wrong code if expand_simple_binop assigns new pseudo-register for result

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 15 07:36:56 GMT 2023


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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, so the issue is that expand_simple_binop will not necessarily return a
register and emit_cmp_and_jump_insns eventually mangles things.

The proposed fix looks OK, but please add a comment like

 /* Force the result into a register.  */


More information about the Gcc-bugs mailing list