This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: Don't use label at end of compound statement


Gcc 3.1 warns:

rtld.c:185: warning: deprecated use of label at end of compound statement

Here is a patch.


H.J.
---
2002-01-21  H.J. Lu  <hjl@gnu.org>

	* sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
	Don't use label at end of compound statement.

--- sysdeps/mips/dl-machine.h.label	Sat Jan 19 10:36:09 2002
+++ sysdeps/mips/dl-machine.h	Mon Jan 21 09:24:14 2002
@@ -135,7 +135,7 @@ do {									\
   got = (ElfW(Addr) *) D_PTR (map, l_info[DT_PLTGOT]);			\
 									\
   if (__builtin_expect (map->l_addr == 0, 1))				\
-    goto done;								\
+    break;								\
 									\
   /* got[0] is reserved. got[1] is also reserved for the dynamic object	\
      generated by gnu ld. Skip these reserved entries from		\
@@ -172,7 +172,6 @@ do {									\
       got++;								\
       sym++;								\
     }									\
-done:									\
 } while(0)
 
 


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