This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Don't use label at end of compound statement
- From: "H . J . Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Mon, 21 Jan 2002 09:40:00 -0800
- Subject: 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)