projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efa89fb
)
(init_libfuncs): Add casts when comparing/incrementing enum.
author
Richard Stallman
<rms@gnu.org>
Fri, 6 Nov 1992 21:04:59 +0000
(21:04 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 6 Nov 1992 21:04:59 +0000
(21:04 +0000)
From-SVN: r2708
gcc/optabs.c
patch
|
blob
|
history
diff --git
a/gcc/optabs.c
b/gcc/optabs.c
index 57da821a0eefda99bd8da7e50d98a9e63434650a..7d79231eefc4e331c8c16448926e6f157271cca2 100644
(file)
--- a/
gcc/optabs.c
+++ b/
gcc/optabs.c
@@
-3747,7
+3747,8
@@
init_libfuncs (optable, first_mode, last_mode, opname, suffix)
register enum machine_mode mode;
register unsigned opname_len = strlen (opname);
- for (mode = first_mode; mode <= last_mode; mode++)
+ for (mode = first_mode; (int) mode <= (int) last_mode;
+ mode = (enum machine_mode) ((int) mode + 1))
{
register char *mname = mode_name[(int) mode];
register unsigned mname_len = strlen (mname);