From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1364 invoked by alias); 6 Apr 2002 20:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1343 invoked by uid 71); 6 Apr 2002 20:16:01 -0000 Date: Sat, 06 Apr 2002 12:16:00 -0000 Message-ID: <20020406201601.1341.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Toon Moene Subject: Re: fortran/6138: Incorrect access of integer*1 variables on PA Reply-To: Toon Moene X-SW-Source: 2002-04/txt/msg00413.txt.bz2 List-Id: The following reply was made to PR fortran/6138; it has been noted by GNATS. From: Toon Moene To: dave@hiauly1.hia.nrc.ca Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: fortran/6138: Incorrect access of integer*1 variables on PA Date: Sat, 06 Apr 2002 21:26:15 +0200 dave@hiauly1.hia.nrc.ca wrote: > j = -9 > ja = 9 > k = j > ka = ja > call c_i2(ABS(j),ja,'ABS(integer*2)') > call c_i1(ABS(k),ka,'ABS(integer*1)') I've worked on this today, because this test suite entry fails for powerpc-linux too. Unfortunately, after half a day of fiddling, I'm not sure if the reason this fails on HPPA is the same as the reason it fails on POWERPC. On the latter, even the following is incorrect: INTEGER*1 I I = -9 PRINT*,I END which prints 247 ;-) So I thought, this must be a signed/unsigned "char" problem, no ? Well, AFAICS, the PA port is default-signed-char platform, so this analysis doesn't apply. Welllllll, perhaps this means that this afternoon multiplied one problem into two :-( -- Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)