rtti.c (involves_incomplete_p): Add fall through comment.
authorMarek Polacek <polacek@redhat.com>
Thu, 29 Sep 2016 16:04:17 +0000 (16:04 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 29 Sep 2016 16:04:17 +0000 (16:04 +0000)
* 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
gcc/cp/ChangeLog
gcc/cp/rtti.c
gcc/dwarf2out.c

index f7f753b91b3bfecaf219a556c5cbed6fae40e535..189228f987b58460bbe086f3341da786c883b3e8 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-29  Marek Polacek  <polacek@redhat.com>
+
+       * dwarf2out.c (loc_descriptor): Add fall through comment.
+       (add_const_value_attribute): Likewise.
+
 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
 
        * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
index 0e18eb7fd171888ded0000fa93ca7784da8357b9..69bc0958a60c643da21f819769399ec59f526a1f 100644 (file)
@@ -1,3 +1,7 @@
+2016-09-29  Marek Polacek  <polacek@redhat.com>
+
+       * rtti.c (involves_incomplete_p): Add fall through comment.
+
 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/77467
index 75aeb0bb82c560f7a8bcaa71fcb3a205334cbddd..a8827615a7ce46225974b9abaf47bc46d69e3c86 100644 (file)
@@ -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;
index 972da16492f8c8471c89febd466a6f364b7c3866..90e68e22b5bf405ca4441678030b8038d639e072 100644 (file)
@@ -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;