aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1997-04-25 16:42:07 -0600
committerJeff Law <law@gcc.gnu.org>1997-04-25 16:42:07 -0600
commitdb5a46802c4502615aad590280b89369048327d6 (patch)
tree9da54955a23711b7a2135e45b7523fd6506af0b2 /gcc
parent5b5686f5e78049080a2c1ba10913e243d367b4a6 (diff)
downloadgcc-db5a46802c4502615aad590280b89369048327d6.zip
gcc-db5a46802c4502615aad590280b89369048327d6.tar.gz
gcc-db5a46802c4502615aad590280b89369048327d6.tar.bz2
* h8300.c (output_adds_subs): check for adding 0.
From-SVN: r13984
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/h8300/h8300.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index a8f9736..7a7ec4b 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 ();
}