Patch installed for 2 warning regressions

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun Sep 29 13:00:00 GMT 2002


The patch below fixes a couple of warning regressions on the trunk:

 > config/darwin.c:1287: warning: function declaration isn't a prototype
 > dwarf2asm.c:108: warning: implicit declaration of function `darwin_asm_output_dwarf_delta'

 > config/ia64/ia64.c:8092: warning: assignment discards qualifiers from pointer target type

Both appeared in the last couple of weeks.

Tested via cross-compiling cc1 to powerpc-apple-darwin and
ia64-unknown-linux-gnu and installed as obvious.

		--Kaveh

2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.

	* ia64.c (ia64_hpux_asm_file_end): Const-ify.

diff -rup orig/egcc-CVS20020928/gcc/config/darwin-protos.h egcc-CVS20020928/gcc/config/darwin-protos.h
--- orig/egcc-CVS20020928/gcc/config/darwin-protos.h	2002-09-16 13:18:22.000000000 -0400
+++ egcc-CVS20020928/gcc/config/darwin-protos.h	2002-09-29 11:30:33.741451963 -0400
@@ -116,3 +116,4 @@ extern void machopic_output_stub PARAMS 
 extern void darwin_exception_section PARAMS ((void));
 extern void darwin_eh_frame_section PARAMS ((void));
 extern void darwin_globalize_label PARAMS ((FILE *, const char *));
+extern void darwin_asm_output_dwarf_delta PARAMS ((FILE *, int, const char *, const char *));
diff -rup orig/egcc-CVS20020928/gcc/config/ia64/ia64.c egcc-CVS20020928/gcc/config/ia64/ia64.c
--- orig/egcc-CVS20020928/gcc/config/ia64/ia64.c	2002-09-27 10:58:33.000000000 -0400
+++ egcc-CVS20020928/gcc/config/ia64/ia64.c	2002-09-29 12:03:40.544104945 -0400
@@ -8086,11 +8086,10 @@ ia64_hpux_asm_file_end (file)
 {
   while (extern_func_head)
     {
-      char *real_name;
-      tree decl;
+      const char *const real_name =
+	(* targetm.strip_name_encoding) (extern_func_head->name);
+      tree decl = get_identifier (real_name);
 
-      real_name = (* targetm.strip_name_encoding) (extern_func_head->name);
-      decl = get_identifier (real_name);
       if (decl && ! TREE_ASM_WRITTEN (decl) && TREE_SYMBOL_REFERENCED (decl))
         {
 	  TREE_ASM_WRITTEN (decl) = 1;



More information about the Gcc-patches mailing list