This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: gcc/unwind-dw2{-fde,}.c: Warning removal.
- From: rbrown64 at csc dot com dot au
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Nov 2002 19:44:54 +1100
- Subject: Patch: gcc/unwind-dw2{-fde,}.c: Warning removal.
Remove the following warnings from the 1104 snapshot on
powerpc-apple-darwin6.0 .
1104/gcc/unwind-dw2.c: In function `extract_cie_info':
1104/gcc/unwind-dw2.c:228: warning: implicit declaration of function `strlen'
1104/gcc/unwind-dw2.c: In function `uw_frame_state_for':
1104/gcc/unwind-dw2.c:906: warning: implicit declaration of function `memset'
1104/gcc/unwind-dw2.c: In function `uw_install_context_1':
1104/gcc/unwind-dw2.c:1193: warning: implicit declaration of function `memcpy'
1104/gcc/unwind-dw2-fde.c: In function `get_cie_encoding':
1104/gcc/unwind-dw2-fde.c:271: warning: implicit declaration of function `strlen
'
Past the compare in the bootstrap.
2002-11-06 Rodney Brown <rbrown64@csc.com.au>
* unwind-dw2-fde.c: Include string.h.
* unwind-dw2.c: Include string.h.
--- unwind-dw2-fde.c.orig Sat Jun 1 08:15:39 2002
+++ unwind-dw2-fde.c Wed Nov 6 17:54:15 2002
@@ -37,6 +37,9 @@ Software Foundation, 59 Temple Place - S
#include "unwind-pe.h"
#include "unwind-dw2-fde.h"
#include "gthr.h"
+#ifndef inhibit_libc
+#include <string.h>
+#endif
#endif
/* The unseen_objects list contains objects that have been registered
--- unwind-dw2.c.orig Wed Nov 6 17:55:25 2002
+++ unwind-dw2.c Wed Nov 6 17:54:55 2002
@@ -26,6 +26,9 @@
#include "unwind-pe.h"
#include "unwind-dw2-fde.h"
#include "gthr.h"
+#ifndef inhibit_libc
+#include <string.h>
+#endif
#ifndef __USING_SJLJ_EXCEPTIONS__