]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
manpage: -floop-labels
authorWolfgang Bumiller <blub@speed.at>
Thu, 27 Dec 2012 23:21:59 +0000 (00:21 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 27 Dec 2012 23:21:59 +0000 (00:21 +0100)
doc/gmqcc.1

index b1ae949e303fad4448cc3c0cb6c74d1d3f883738..b994d508dbbaadfbfd0d66918197c58c907ba2eb 100644 (file)
@@ -373,6 +373,23 @@ compilation to stop. When disabling this flag by using
 \-fno-bail-on-werror, compilation will continue until the end, but no
 output is generated. Instead the first such error message's context is
 shown.
 \-fno-bail-on-werror, compilation will continue until the end, but no
 output is generated. Instead the first such error message's context is
 shown.
+.TP
+.B -floop-labels
+Allow loops to be labeled, and allow 'break' and 'continue' to take an
+optional label to decide which loop to actually jump out of or
+continue.
+.sp
+.in +4
+.nf
+for :outer (i = 0; i < n; ++i) {
+    while (inner) {
+        ...;
+        if (something)
+            continue outer;
+    }
+}
+.fi
+.in
 .SH OPTIMIZATIONS
 .TP
 .B -Opeephole
 .SH OPTIMIZATIONS
 .TP
 .B -Opeephole