This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]