Fix a couple of warnings from pa.c

John David Anglin dave@hiauly1.hia.nrc.ca
Thu May 30 23:10:00 GMT 2002


This patch fixes a couple of warnings resulting from changes to
ASM_OUTPUT_MI_THUNK.  The include for output.h is moved after
the one for tree.h to ensure TREE_CODE is defined when output.h
is included.

Tested under hppa2.0w-hp-hpux11.11.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* pa.c: Move output.h include after tree.h include.
	(pa_asm_output_mi_thunk): Constify identifier lab.

Index: config/pa/pa.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.163
diff -u -3 -p -r1.163 pa.c
--- config/pa/pa.c	31 May 2002 03:30:42 -0000	1.163
+++ config/pa/pa.c	31 May 2002 04:22:19 -0000
@@ -28,10 +28,10 @@ Boston, MA 02111-1307, USA.  */
 #include "real.h"
 #include "insn-config.h"
 #include "conditions.h"
-#include "output.h"
 #include "insn-attr.h"
 #include "flags.h"
 #include "tree.h"
+#include "output.h"
 #include "except.h"
 #include "expr.h"
 #include "optabs.h"
@@ -6508,7 +6515,7 @@ pa_asm_output_mi_thunk (file, thunk_fnde
   const char *target_name = XSTR (XEXP (DECL_RTL (function), 0), 0);
   static unsigned int current_thunk_number;
   char label[16];
-  char *lab;
+  const char *lab;
   ASM_GENERATE_INTERNAL_LABEL (label, "LTHN", current_thunk_number);
   lab = (*targetm.strip_name_encoding) (label);
   target_name = (*targetm.strip_name_encoding) (target_name);



More information about the Gcc-patches mailing list