From: Jeff Law Date: Mon, 13 Mar 2017 17:49:40 +0000 (-0600) Subject: riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dce15db61bc8c2dc7a7e1f901903fa966077fa3e;p=gcc.git riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments. * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments. From-SVN: r246101 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 124dca320c8..e863cdfbdf4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2017-03-13 Jeff Law + * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru + attribute rather than comments. + * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to match_scratch operand is highest. diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c index 89567f72b71..e5044ba5a9f 100644 --- a/gcc/config/riscv/riscv.c +++ b/gcc/config/riscv/riscv.c @@ -2089,13 +2089,13 @@ riscv_emit_float_compare (enum rtx_code *code, rtx *op0, rtx *op1) case UNLT: std::swap (cmp_op0, cmp_op1); - /* Fall through. */ + __attribute__((fallthrough)); UNORDERED_COMPARISON(UNGT, le) case UNLE: std::swap (cmp_op0, cmp_op1); - /* Fall through. */ + __attribute__((fallthrough)); UNORDERED_COMPARISON(UNGE, lt) #undef UNORDERED_COMPARISON