From dce15db61bc8c2dc7a7e1f901903fa966077fa3e Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 13 Mar 2017 11:49:40 -0600 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/config/riscv/riscv.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.30.2