projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5686f
)
* h8300.c (output_adds_subs): check for adding 0.
author
Jeff Law
<law@gcc.gnu.org>
Fri, 25 Apr 1997 22:42:07 +0000
(16:42 -0600)
committer
Jeff Law
<law@gcc.gnu.org>
Fri, 25 Apr 1997 22:42:07 +0000
(16:42 -0600)
From-SVN: r13984
gcc/config/h8300/h8300.c
patch
|
blob
|
history
diff --git
a/gcc/config/h8300/h8300.c
b/gcc/config/h8300/h8300.c
index a8f973606e73084d83a06e8024ab1a155dcf002c..7a7ec4b575a9a70f98be0577f48203f613784ba6 100644
(file)
--- 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 ();
}