diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index a8f973606e7..7a7ec4b575a 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -735,6 +735,10 @@ output_adds_subs (operands) if (val == -1) return "subs #1,%A0"; + /* If not optimizing, we might be asked to add 0. */ + if (val == 0) + return ""; + /* In theory, this can't happen. */ abort (); }