* h8300.c (output_adds_subs): check for adding 0.
authorJeff Law <law@gcc.gnu.org>
Fri, 25 Apr 1997 22:42:07 +0000 (16:42 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 25 Apr 1997 22:42:07 +0000 (16:42 -0600)
From-SVN: r13984

gcc/config/h8300/h8300.c

index a8f973606e73084d83a06e8024ab1a155dcf002c..7a7ec4b575a9a70f98be0577f48203f613784ba6 100644 (file)
@@ -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 ();
 }