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]

Re: Patch for warnings on various cross targets -- PA string handling breakage


> If this is indeed caused by me, sorry for the trouble I caused you.
> Would you please give me a target triplet?  I tried a cross-compile to
> hppa1.0-unknown-linux-gnu but it did the right thing when compiling
> the above code.

I have been trying to build a new set of tools on a couple of
hppa2.0w-hp-hpux11.X systems.  One is 11.00 and the other 11.11.

This is the fix.  It has passed bootstrap with enable-languages=c
and it fixes the problems I was having with gzip and openssl.  I am
now doing a full bootstrap and check.  If there are no regressions,
I will install.

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

2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* pa.c (output_ascii): Cast `p' to unsigned char.

--- pa.c.orig	Fri Nov 16 16:27:56 2001
+++ pa.c	Fri Nov 30 16:20:12 2001
@@ -2539,7 +2539,7 @@
       int io = 0;
       for (io = 0, co = 0; io < MIN (4, size - i); io++)
 	{
-	  register unsigned int c = p[i + io];
+	  register unsigned int c = (unsigned char) p[i + io];
 
 	  if (c == '\"' || c == '\\')
 	    partial_output[co++] = '\\';


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