From: Kito Cheng Date: Tue, 14 Mar 2017 03:51:24 +0000 (+0000) Subject: Use gcc_fallthrough() instead of __attribute__((fallthrough) X-Git-Tag: upstream/12.2.0~40709 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cccfcff414eda67a3c89f57401cfad0fa432cfb8;p=platform%2Fupstream%2Fgcc.git 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 * config/riscv/riscv.c (riscv_emit_float_compare>: Use gcc_fallthrough() instead of __attribute__((fallthrough)); From-SVN: r246116 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 053a6e6..4c39951 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-13 Kito Cheng + + * config/riscv/riscv.c (riscv_emit_float_compare>: Use + gcc_fallthrough() instead of __attribute__((fallthrough)); + 2017-03-13 Gerald Pfeifer * doc/gcc.texi: Remove "up" link to (DIR). 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