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]

[patch] another label at end of compound statement


When running an all-targets build, I (or, more correctly, my compiler)
noticed another label at end of compound statemnt, which is illegal
and which recent GCC's warn about.  (In sim/mn10300/dv-mn103tim.c.)
I've committed the following obvious patch; I tested it by running an
all-targets build and noticing that it fixed the error.

David Carlton
carlton at math dot stanford dot edu

2003-02-24  David Carlton  <carlton at math dot stanford dot edu>

	* dv-mn103tim.c (read_special_timer6_reg): Add break after
	empty default: label.
	(write_special_timer6_reg): Ditto.
	Update copyright.

Index: dv-mn103tim.c
===================================================================
RCS file: /cvs/src/src/sim/mn10300/dv-mn103tim.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 dv-mn103tim.c
--- dv-mn103tim.c	26 Apr 1999 18:33:15 -0000	1.1.1.2
+++ dv-mn103tim.c	24 Feb 2003 20:29:19 -0000
@@ -1,6 +1,6 @@
 /*  This file is part of the program GDB, the GNU debugger.
     
-    Copyright (C) 1998 Free Software Foundation, Inc.
+    Copyright (C) 1998, 2003 Free Software Foundation, Inc.
     Contributed by Cygnus Solutions.
     
     This program is free software; you can redistribute it and/or modify
@@ -495,6 +495,7 @@ read_special_timer6_reg (struct hw *me,
 	break;
       
       default:
+	break;
       }
       break;
     }
@@ -950,6 +951,7 @@ write_special_timer6_reg (struct hw *me,
 	break;
       
       default:
+	break;
       }
       break;
     }


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