This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[commit] delete "-Wunused-label"s


Hello,

The attached eliminates some unused GOTO labels. For ser-unix.c, it fixes a bug!

committed,
Andrew
2004-01-05  Andrew Cagney  <cagney@redhat.com>

	* ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
	should be a switch case and not a label.
	* mips-tdep.c (mips32_next_pc): Delete unused labels
	"greater_equal_branch" and "less_zero_branch".
	* jv-valprint.c (java_print_value_fields): Delete unused label
	"flush_it".

Index: jv-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/jv-valprint.c,v
retrieving revision 1.15
diff -u -r1.15 jv-valprint.c
--- jv-valprint.c	14 Sep 2003 16:32:13 -0000	1.15
+++ jv-valprint.c	5 Jan 2004 23:08:58 -0000
@@ -298,9 +298,6 @@
 	  java_print_value_fields (baseclass, base_valaddr, address + boffset,
 				   stream, format, recurse + 1, pretty);
 	  fputs_filtered (", ", stream);
-
-	flush_it:
-	  ;
 	}
 
     }
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.262
diff -u -r1.262 mips-tdep.c
--- mips-tdep.c	25 Nov 2003 22:15:24 -0000	1.262
+++ mips-tdep.c	5 Jan 2004 23:08:59 -0000
@@ -1083,7 +1083,6 @@
 	      case 3:		/* BGEZL */
 	      case 17:		/* BGEZAL */
 	      case 19:		/* BGEZALL */
-	      greater_equal_branch:
 		if (read_signed_register (itype_rs (inst)) >= 0)
 		  pc += mips32_relative_offset (inst) + 4;
 		else
@@ -1129,7 +1128,6 @@
 	    pc += 8;
 	  break;
 	case 6:		/* BLEZ, BLEZL */
-	less_zero_branch:
 	  if (read_signed_register (itype_rs (inst) <= 0))
 	    pc += mips32_relative_offset (inst) + 4;
 	  else
Index: ser-unix.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-unix.c,v
retrieving revision 1.16
diff -u -r1.16 ser-unix.c
--- ser-unix.c	13 May 2003 19:40:11 -0000	1.16
+++ ser-unix.c	5 Jan 2004 23:09:00 -0000
@@ -1324,7 +1324,7 @@
 	case FD_SCHEDULED:
 	  delete_file_handler (scb->fd);
 	  break;
-	NOTHING_SCHEDULED:
+	case NOTHING_SCHEDULED:
 	  break;
 	default: /* TIMER SCHEDULED */
 	  delete_timer (scb->async_state);

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