aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2017-03-13 11:49:40 -0600
committerJeff Law <law@gcc.gnu.org>2017-03-13 11:49:40 -0600
commitdce15db61bc8c2dc7a7e1f901903fa966077fa3e (patch)
tree229312e938efd52d07dcf9928b13423cc4080208 /gcc
parent097de8ffcbc0f85f62d107044ef85cbdfa43b8b0 (diff)
downloadgcc-dce15db61bc8c2dc7a7e1f901903fa966077fa3e.zip
gcc-dce15db61bc8c2dc7a7e1f901903fa966077fa3e.tar.gz
gcc-dce15db61bc8c2dc7a7e1f901903fa966077fa3e.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/riscv/riscv.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 124dca3..e863cdf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2017-03-13 Jeff Law <law@redhat.com>
+ * 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 89567f7..e5044ba 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