diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | src/AnnotationList.c | 4 | ||||
-rw-r--r-- | src/Sbitset.h | 2 |
4 files changed, 10 insertions, 1 deletions
@@ -44,6 +44,10 @@ GNU Bison NEWS string aliases semantically equivalent but syntactically different (e.g., "A", "\x41", "\101") are considered to be different. +*** Crash when generating IELR + + An old, well hidden, bug in the generation of IELR parsers was fixed. + ** New features *** File prefix mapping @@ -59,6 +59,7 @@ Di-an Jan dianj@freeshell.org Dick Streefland dick.streefland@altium.nl Didier Godefroy dg@ulysium.net Don Macpherson donmac703@gmail.com +Dwight Guth dwight.guth@runtimeverification.com Efi Fogel efifogel@gmail.com Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de Eric Blake ebb9@byu.net diff --git a/src/AnnotationList.c b/src/AnnotationList.c index a95a67be..421643b2 100644 --- a/src/AnnotationList.c +++ b/src/AnnotationList.c @@ -276,7 +276,8 @@ AnnotationList__computePredecessorAnnotations ( obstack_free (annotations_obstackp, annotation_node->contributions[ci]); annotation_node->contributions[ci] = NULL; - break; + // "Break" out of SBITSET__FOR_EACH. + goto after_sbitset__for_each; } else { @@ -309,6 +310,7 @@ AnnotationList__computePredecessorAnnotations ( predecessor_item); } } + after_sbitset__for_each:; } if (annotation_node->contributions[ci]) { diff --git a/src/Sbitset.h b/src/Sbitset.h index 997dab2f..c54def4e 100644 --- a/src/Sbitset.h +++ b/src/Sbitset.h @@ -81,6 +81,8 @@ void Sbitset__fprint (Sbitset self, Sbitset__Index nbits, FILE *file); *ptr_self = *ptr_other1 | *ptr_other2; \ } while (0) +/* ATTENTION: there are *two* loops here, "break" and "continue" will + not apply to the whole loop, just the inner one. */ # define SBITSET__FOR_EACH(SELF, NBITS, ITER, INDEX) \ for ((ITER) = (SELF); (ITER) < (SELF) + Sbitset__nbytes (NBITS); ++(ITER)) \ if (*(ITER) != 0) \ |