summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-06 22:49:08 +1030
committerAlan Modra <amodra@gmail.com>2016-10-06 22:49:38 +1030
commitfcddde94ee566423cacf455a86e2e797b11d1cee (patch)
treea84ccb2f87f0017ad8476c9e9404df3f539bf43d /gas/expr.c
parentb781683b71a1fc70c4d925ebe1bc943203dd7419 (diff)
downloadbinutils-gdb-fcddde94ee566423cacf455a86e2e797b11d1cee.tar.gz
-Wimplicit-fallthrough dodgy fixes
The comment logically belongs inside the preprocessor conditional, but gcc's -Wimplicit-fallthrough loses track of it. Revert when/if https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817 is fixed. * app.c (do_scrub_chars): Move fall through comment. * expr.c (operand): Likewise.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/expr.c b/gas/expr.c
index b9983d86b68..1cdd081322f 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -949,8 +949,8 @@ operand (expressionS *expressionP, enum expr_mode mode)
if (md_need_index_operator())
goto de_fault;
# endif
- /* FALLTHROUGH */
#endif
+ /* Fall through. */
case '(':
/* Didn't begin with digit & not a name. */
segment = expr (0, expressionP, mode);
@@ -980,8 +980,8 @@ operand (expressionS *expressionP, enum expr_mode mode)
if (! flag_m68k_mri || *input_line_pointer != '\'')
goto de_fault;
++input_line_pointer;
- /* Fall through. */
#endif
+ /* Fall through. */
case '\'':
if (! flag_m68k_mri)
{
@@ -1002,8 +1002,8 @@ operand (expressionS *expressionP, enum expr_mode mode)
/* Double quote is the bitwise not operator in MRI mode. */
if (! flag_m68k_mri)
goto de_fault;
- /* Fall through. */
#endif
+ /* Fall through. */
case '~':
/* '~' is permitted to start a label on the Delta. */
if (is_name_beginner (c))