From 0b4b9552ee6be2ac37b09193c07fae68028ed3dd Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 29 Sep 2016 16:04:17 +0000 Subject: [PATCH] rtti.c (involves_incomplete_p): Add fall through comment. * rtti.c (involves_incomplete_p): Add fall through comment. * dwarf2out.c (loc_descriptor): Add fall through comment. (add_const_value_attribute): Likewise. From-SVN: r240624 --- gcc/ChangeLog | 5 +++++ gcc/cp/ChangeLog | 4 ++++ gcc/cp/rtti.c | 2 +- gcc/dwarf2out.c | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7f753b91b3..189228f987b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-29 Marek Polacek + + * dwarf2out.c (loc_descriptor): Add fall through comment. + (add_const_value_attribute): Likewise. + 2016-09-29 Matthew Wahab * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0e18eb7fd17..69bc0958a60 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2016-09-29 Marek Polacek + + * rtti.c (involves_incomplete_p): Add fall through comment. + 2016-09-28 Jakub Jelinek PR c++/77467 diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 75aeb0bb82c..a8827615a7c 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -855,7 +855,7 @@ involves_incomplete_p (tree type) case UNION_TYPE: if (!COMPLETE_TYPE_P (type)) return true; - + /* Fall through. */ default: /* All other types do not involve incomplete class types. */ return false; diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 972da16492f..90e68e22b5b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -14554,6 +14554,7 @@ loc_descriptor (rtx rtl, machine_mode mode, case SYMBOL_REF: if (!const_ok_for_output (rtl)) break; + /* FALLTHROUGH */ case LABEL_REF: if (mode != VOIDmode && GET_MODE_SIZE (mode) == DWARF2_ADDR_SIZE && (dwarf_version >= 4 || !dwarf_strict)) @@ -17201,6 +17202,7 @@ add_const_value_attribute (dw_die_ref die, rtx rtl) case SYMBOL_REF: if (!const_ok_for_output (rtl)) return false; + /* FALLTHROUGH */ case LABEL_REF: if (dwarf_version >= 4 || !dwarf_strict) goto rtl_addr; -- 2.30.2