This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 installed for irix6 target file warnings


Here's a few target file warning fixes which arise on
mips-sgi-irix6.5:

 > config/mips/irix6-libc-compat.c:78: warning: no previous prototype for 'inet_makeaddr'
 > crtstuff.c:388: warning: no previous prototype for '__do_global_ctors_1'
 > unwind-pe.h:72: warning: 'size_of_encoded_value' defined but not used
 > unwind-sjlj.c:185: warning: unused parameter 'context'
 > unwind-sjlj.c:226: warning: unused parameter 'pc'

Bootstrapped, no regressions.  Installed as "obvious".


2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
	* crtstuff.c (__do_global_ctors_1): Move prototype.
	* unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
	appropriate.
	* unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
	Mark parameter with __attribute__((unused)).

diff -rup orig/egcc-CVS20031026/gcc/config/mips/irix6-libc-compat.c egcc-CVS20031026/gcc/config/mips/irix6-libc-compat.c
--- orig/egcc-CVS20031026/gcc/config/mips/irix6-libc-compat.c	Sat Sep 27 20:01:25 2003
+++ egcc-CVS20031026/gcc/config/mips/irix6-libc-compat.c	Mon Oct 27 08:24:35 2003
@@ -73,6 +73,8 @@ extern machreg_t _inet_makeaddr (machreg
 	struct in_addr inet_makeaddr (int, int);		(IRIX 6.2)
 	struct in_addr inet_makeaddr (in_addr_t, in_addr_t);	(IRIX 6.5)  */
 
+extern machreg_t inet_makeaddr (machreg_t, machreg_t);
+
 machreg_t
 inet_makeaddr (machreg_t net, machreg_t lna)
 {
diff -rup orig/egcc-CVS20031026/gcc/crtstuff.c egcc-CVS20031026/gcc/crtstuff.c
--- orig/egcc-CVS20031026/gcc/crtstuff.c	Sat Jun  7 20:01:29 2003
+++ egcc-CVS20031026/gcc/crtstuff.c	Mon Oct 27 09:03:35 2003
@@ -129,6 +129,7 @@ extern void *__deregister_frame_info (vo
 				     TARGET_ATTRIBUTE_WEAK;
 extern void *__deregister_frame_info_bases (void *)
 				     TARGET_ATTRIBUTE_WEAK;
+extern void __do_global_ctors_1 (void);
 
 /* Likewise for _Jv_RegisterClasses.  */
 extern void _Jv_RegisterClasses (void *) TARGET_ATTRIBUTE_WEAK;
@@ -510,7 +511,6 @@ asm (TEXT_SECTION_ASM_OP);
 /* This case is used by the Irix 6 port, which supports named sections but
    not an SVR4-style .init section.  __do_global_ctors can be non-static
    in this case because we protect it with -hidden_symbol.  */
-extern void __do_global_ctors_1(void);
 void
 __do_global_ctors (void)
 {
diff -rup orig/egcc-CVS20031026/gcc/unwind-dw2.c egcc-CVS20031026/gcc/unwind-dw2.c
--- orig/egcc-CVS20031026/gcc/unwind-dw2.c	Sun Oct 26 20:00:56 2003
+++ egcc-CVS20031026/gcc/unwind-dw2.c	Mon Oct 27 08:24:35 2003
@@ -34,6 +34,9 @@
 #include "tm.h"
 #include "dwarf2.h"
 #include "unwind.h"
+#ifdef __USING_SJLJ_EXCEPTIONS__
+# define NO_SIZE_OF_ENCODED_VALUE
+#endif
 #include "unwind-pe.h"
 #include "unwind-dw2-fde.h"
 #include "gthr.h"
diff -rup orig/egcc-CVS20031026/gcc/unwind-sjlj.c egcc-CVS20031026/gcc/unwind-sjlj.c
--- orig/egcc-CVS20031026/gcc/unwind-sjlj.c	Tue Aug 19 20:01:45 2003
+++ egcc-CVS20031026/gcc/unwind-sjlj.c	Mon Oct 27 08:24:35 2003
@@ -182,7 +182,7 @@ _Unwind_GetGR (struct _Unwind_Context *c
 /* Get the value of the CFA as saved in CONTEXT.  */
 
 _Unwind_Word
-_Unwind_GetCFA (struct _Unwind_Context *context)
+_Unwind_GetCFA (struct _Unwind_Context *context __attribute__((unused)))
 {
   /* ??? Ideally __builtin_setjmp places the CFA in the jmpbuf.  */
   return NULL;
@@ -223,7 +223,7 @@ _Unwind_GetRegionStart (struct _Unwind_C
 }
 
 void *
-_Unwind_FindEnclosingFunction (void *pc)
+_Unwind_FindEnclosingFunction (void *pc __attribute__((unused)))
 {
   return NULL;
 }


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