From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21828 invoked by alias); 6 Feb 2003 05:44:45 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 21820 invoked from network); 6 Feb 2003 05:44:44 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by 172.16.49.205 with SMTP; 6 Feb 2003 05:44:44 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.9.3/8.9.3) with ESMTP id LAA27617; Thu, 6 Feb 2003 11:13:27 +0530 Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2656.59) id <1ABPHTLA>; Thu, 6 Feb 2003 11:08:12 +0530 Message-ID: From: "D.Venkatasubramanian, Noida" To: Kazu Hirata , Andrew.Volkov@transas.com Cc: gcc@gcc.gnu.org, crossgcc@sources.redhat.com, gnuh8@gnuh8.org.uk, binutils@sources.redhat.com Subject: RE: New targets to Binutils for H8 series Date: Thu, 06 Feb 2003 05:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-02/txt/msg00245.txt.bz2 Hi All, Regarding, this thread, were some new targets added to Binutils? The MAC registers are only present in the H8S/2600 Line. h8300-elf-gcc also works correctly by generating MAC instructions only when -ms2600 is specified. I found these instructions when I ran the testsuite with -O2 -ms -ms2600 Testcase gcc.c-torture/execute/va-arg-22.c using this command : h8300-elf-gcc -O3 -fomit-frame-pointer -funroll-loops -finline-functions -ms -ms2600 -mint32 -g va-arg-22.c As the simulator is unable to simulate these instructions now, I am thinking of adding that support. If we had special targets especially for H8S/2600, then it would be easier to map these registers only when the binary is for 2600. As of now, I don't think, GDB or simulator can identify specific series. The simulator seems to be capable of only identifying a binary as h8300 or h8300h or h8300s. Regards, Venky -----Original Message----- From: Kazu Hirata [mailto:kazu@cs.umass.edu] Sent: Monday, January 20, 2003 6:01 AM To: Andrew.Volkov@transas.com Cc: gcc@gcc.gnu.org; crossgcc@sources.redhat.com; gnuh8@gnuh8.org.uk; binutils@sources.redhat.com Subject: Re: New targets to Binutils for H8 series Hi Andrew, > > This way, we don't have to have separate libgcc.a and lib[mc].a, etc, for > > H8S/2600 because the difference of instruction sets between H8S and > > H8S/200 is only mac-related instructions. > > At present you are right, but: > 1) what about using MAC in lib[mc], in future releases of newlib? > 2) what about interrupt frames in library routines? Actually I have to admit that the interrupt frame does not save mac yet. I think one reasonable implementation is to save the mac register in a function that uses it because not every function uses it. In other words, we probably do not want to make it a call-clobbered register. By the way, Hitachi just released H8SX, an update to H8S series, so we want to have something like .h8sx. Kazu Hirata -- GNUH8 Mailing List | If you encounter difficulties using this service | email: listmaster@gnuh8.org.uk | http://www.gnuh8.org.uk/