[Fwd: bug report and fix for gcc-2.8.1 h8300 cross compiler]

randall loomis (randall@elgar.com)
Thu, 05 Nov 1998 03:48:21 -0800


This is a multi-part message in MIME format.
--------------35679C254903BF5CA73739A4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

-- 
|\/|
|/\| randall@elgar.com
|\/| rsl@zanshinsys.com http://www.zanshinsys.com
--------------35679C254903BF5CA73739A4
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <36416ECE.BF8226B1@elgar.com>
Date: Thu, 05 Nov 1998 01:24:30 -0800
From: randall loomis <randall@elgar.com>
Organization: elgar corporation
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.30 i586)
MIME-Version: 1.0
To: bug-gcc@prep.ai.mit.edu
Subject: bug report and fix for gcc-2.8.1 h8300 cross compiler
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

using gcc-2.8.1

target system: h8300-hitachi-hms

host system: i586-linux

problem:
gcc produces bad h8300 assembly output (for I think an arithmatic shift
left)
like this:

      mov.b   r4l,r4hn        mov.b   r5h,r4l

(problem was found when compiling newlib library module ef_fmod.c)

I found the bug (missing backslash),
it is in the file gcc-2.8.1/config/h8300/h8300.c
I checked the original file into an rcs file as ver 1.1, here's an
rcsdiff of the original and the fixed file which you can use to make
into a
patch:


   rcsdiff gcc-2.8.1/config/h8300/h8300.c
===================================================================
RCS file: gcc-2.8.1/config/h8300/h8300.c,v
retrieving revision 1.1
diff -r1.1 gcc-2.8.1/config/h8300/h8300.c
2341c2341
<             *assembler_p =
"mov.b\t%y0,%z0n\tmov.b\t%x0,%y0\n\tmov.b\t%w0,%x0\n\tsub.b\t%w0,%w0";
---
>             *assembler_p = "mov.b\t%y0,%z0\n\tmov.b\t%x0,%y0\n\tmov.b\t%w0,%x0\n\tsub.b\t%w0,%w0";


-- 
|\/|
|/\| randall@elgar.com
|\/| rsl@zanshinsys.com http://www.zanshinsys.com

--------------35679C254903BF5CA73739A4--

________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.