This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] 2017-05-15 Jeff Law <law at redhat dot com>
- From: Jeff Law <law at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 15 May 2017 17:10:24 -0000
- Subject: [binutils-gdb] 2017-05-15 Jeff Law <law at redhat dot com>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d8cbc93b65ace8a36002839d5ee944efff59d643
commit d8cbc93b65ace8a36002839d5ee944efff59d643
Author: Jeff Law <law@redhat.com>
Date: Mon May 15 10:48:41 2017 -0600
2017-05-15 Jeff Law <law@redhat.com>
* readelf.c (display_arc_attribute): Avoid implicit fallthru.
Diff:
---
binutils/ChangeLog | 4 ++++
binutils/readelf.c | 7 ++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7222d9a..675050b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-15 Jeff Law <law@redhat.com>
+
+ * readelf.c (display_arc_attribute): Avoid implicit fallthru.
+
2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
* testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 7ff29bc..bb6bb79 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13586,10 +13586,11 @@ display_arc_attribute (unsigned char * p,
{
default:
if (val > 0 && val < 16)
- {
printf ("Core%d\n", val);
- break;
- }
+ else
+ printf ("Unknown\n");
+ break;
+
case 0:
printf (_("Absent\n"));
break;