This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 1/3] [ARC] Fix fall through warnings.
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: <binutils at sourceware dot org>
- Cc: <Claudiu dot Zissulescu at synopsys dot com>, <Francois dot Bedard at synopsys dot com>, <dilyan dot palauzov at aegee dot org>
- Date: Mon, 22 May 2017 15:41:51 +0200
- Subject: [PATCH 1/3] [ARC] Fix fall through warnings.
- Authentication-results: sourceware.org; auth=none
- References: <1495460513-21483-1-git-send-email-claziss@synopsys.com>
From: claziss <claziss@synopsys.com>
bfd/
2017-05-22 Dilian Palauziv <git-dpa@aegee.org>
* elf32-arc.c (arc_elf_merge_attributes): Add fall through
comments.
---
bfd/elf32-arc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 3e99cab..ef0d893 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -728,9 +728,11 @@ arc_elf_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
case Tag_ARC_ABI_pic:
tagname = "PIC";
+ /* fall through */
case Tag_ARC_ABI_sda:
if (!tagname)
tagname = "SDA";
+ /* fall through */
case Tag_ARC_ABI_tls:
{
const char *tagval[] = { "Absent", "MWDT", "GNU" };
@@ -756,9 +758,11 @@ arc_elf_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
case Tag_ARC_ABI_double_size:
tagname = "Double size";
+ /* fall through */
case Tag_ARC_ABI_enumsize:
if (!tagname)
tagname = "Enum size";
+ /* fall through */
case Tag_ARC_ABI_exceptions:
if (!tagname)
tagname = "ABI exceptions";
--
1.9.1