* h8300.c (output_adds_subs): check for adding 0.

From-SVN: r13984
This commit is contained in:
Jeff Law 1997-04-25 16:42:07 -06:00
parent 5b5686f5e7
commit db5a46802c
1 changed files with 4 additions and 0 deletions

View 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 ();
}