Commit b4ef2931 by Tom de Vries Committed by Tom de Vries

[fortran] Remove semicolon after do {} while (0) in match macros

2017-11-05  Tom de Vries  <tom@codesourcery.com>

	PR other/82784
	* parse.c (match, matcha, matchs, matcho, matchds, matchdo): Remove
	semicolon after "do {} while (0)".

From-SVN: r254422
parent f9c1b67a
2017-11-05 Tom de Vries <tom@codesourcery.com>
PR other/82784
* parse.c (match, matcha, matchs, matcho, matchds, matchdo): Remove
semicolon after "do {} while (0)".
2017-11-04 Andre Vehreschild <vehre@gcc.gnu.org> 2017-11-04 Andre Vehreschild <vehre@gcc.gnu.org>
* trans-expr.c (gfc_trans_assignment_1): Character kind conversion may * trans-expr.c (gfc_trans_assignment_1): Character kind conversion may
......
...@@ -132,7 +132,7 @@ use_modules (void) ...@@ -132,7 +132,7 @@ use_modules (void)
return st; \ return st; \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
/* This is a specialist version of decode_statement that is used /* This is a specialist version of decode_statement that is used
...@@ -606,7 +606,7 @@ decode_statement (void) ...@@ -606,7 +606,7 @@ decode_statement (void)
return st; \ return st; \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
static gfc_statement static gfc_statement
decode_oacc_directive (void) decode_oacc_directive (void)
...@@ -728,7 +728,7 @@ decode_oacc_directive (void) ...@@ -728,7 +728,7 @@ decode_oacc_directive (void)
} \ } \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
/* Like match, but don't match anything if not -fopenmp /* Like match, but don't match anything if not -fopenmp
and if spec_only, goto do_spec_only without actually matching. */ and if spec_only, goto do_spec_only without actually matching. */
...@@ -746,7 +746,7 @@ decode_oacc_directive (void) ...@@ -746,7 +746,7 @@ decode_oacc_directive (void)
} \ } \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
/* Like match, but set a flag simd_matched if keyword matched. */ /* Like match, but set a flag simd_matched if keyword matched. */
#define matchds(keyword, subr, st) \ #define matchds(keyword, subr, st) \
...@@ -759,7 +759,7 @@ decode_oacc_directive (void) ...@@ -759,7 +759,7 @@ decode_oacc_directive (void)
} \ } \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
/* Like match, but don't match anything if not -fopenmp. */ /* Like match, but don't match anything if not -fopenmp. */
#define matchdo(keyword, subr, st) \ #define matchdo(keyword, subr, st) \
...@@ -774,7 +774,7 @@ decode_oacc_directive (void) ...@@ -774,7 +774,7 @@ decode_oacc_directive (void)
} \ } \
else \ else \
undo_new_statement (); \ undo_new_statement (); \
} while (0); } while (0)
static gfc_statement static gfc_statement
decode_omp_directive (void) decode_omp_directive (void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment