aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@gmail.com>2017-03-14 03:51:24 +0000
committerPalmer Dabbelt <palmer@gcc.gnu.org>2017-03-14 03:51:24 +0000
commitcccfcff414eda67a3c89f57401cfad0fa432cfb8 (patch)
tree0288182102631665c0717dc770439c68eb74d231 /gcc/config/riscv
parenta7af75b2fa53a4182556f4c94c44819b6eabd1b2 (diff)
downloadgcc-cccfcff414eda67a3c89f57401cfad0fa432cfb8.zip
gcc-cccfcff414eda67a3c89f57401cfad0fa432cfb8.tar.gz
gcc-cccfcff414eda67a3c89f57401cfad0fa432cfb8.tar.bz2
Use gcc_fallthrough() instead of __attribute__((fallthrough)
Without this my build breaks on older compilers like GCC-5.4. gcc/ChangeLog: 2017-03-13 Kito Cheng <kito.cheng@gmail.com> * config/riscv/riscv.c (riscv_emit_float_compare>: Use gcc_fallthrough() instead of __attribute__((fallthrough)); From-SVN: r246116
Diffstat (limited to 'gcc/config/riscv')
-rw-r--r--gcc/config/riscv/riscv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
index e5044ba..25cc803 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);
- __attribute__((fallthrough));
+ gcc_fallthrough ();
UNORDERED_COMPARISON(UNGT, le)
case UNLE:
std::swap (cmp_op0, cmp_op1);
- __attribute__((fallthrough));
+ gcc_fallthrough ();
UNORDERED_COMPARISON(UNGE, lt)
#undef UNORDERED_COMPARISON