* stabsread.c (read_enum_type): Exit loop for putting pending

enum symbols into the enum type correctly if we had no pending
	symbols on entry to read_enum_type.
This commit is contained in:
Peter Schauer 1995-09-09 15:24:18 +00:00
parent 7eb10f9ad1
commit b6a40d0cf1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sat Sep 9 08:21:52 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* stabsread.c (read_enum_type): Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.
Fri Sep 8 12:57:41 1995 Kung Hsu <kung@mexican.cygnus.com>
* inferior.h: Add extern declaration of inferior_environ.

View File

@ -3137,7 +3137,7 @@ read_enum_type (pp, type, objfile)
that in something like "enum {FOO, LAST_THING=FOO}" we print
FOO, not LAST_THING. */
for (syms = *symlist, n = nsyms - 1; ; syms = syms->next)
for (syms = *symlist, n = nsyms - 1; syms; syms = syms->next)
{
int last = syms == osyms ? o_nsyms : 0;
int j = syms->nsyms;