This is the mail archive of the gcc-prs@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: target/6318: GCC 3.0.3 rejects Hitachi SH2 registers "vbr" and "pc"


The following reply was made to PR target/6318; it has been noted by GNATS.

From: "Rekha Deshmukh" <RekhaD@kpit.com>
To: <kaspervandenberg@eu.omron.com>
Cc: <gcc-gnats@gcc.gnu.org>
Subject: RE: target/6318: GCC 3.0.3 rejects Hitachi SH2 registers "vbr" and "pc"
Date: Fri, 19 Apr 2002 18:12:34 +0530

 Dear Kasper,
 
 vbr and pc are special purpose registers and are not used by the gcc. =
 vbr is a control register and pc is a system register for SH.
 You are getting the error because these registers can not be used as =
 register variables. If you use any of the general purpose registers for =
 register variable, gcc will accept it.
 
 Thanks & regards
 Rekha Bhintade
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Free download of GNUSH and GNUH8 tool chains for Hitachi's SH and H8 =
 Series.
 The following site also offers free support to European customers.
 Read more at http://www.kpit.com.
 Latest versions of GNUSH and GNUH8 are released on Apr 1, 2002.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20
 
 
 -----Original Message-----
 From: gcc-bugs-owner@gcc.gnu.org [mailto:gcc-bugs-owner@gcc.gnu.org]On
 Behalf Of kaspervandenberg@eu.omron.com
 Sent: Tuesday, April 16, 2002 3:29 PM
 To: gcc-gnats@gcc.gnu.org
 Subject: target/6318: GCC 3.0.3 rejects Hitachi SH2 registers "vbr" and
 "pc"
 
 
 
 >Number:         6318
 >Category:       target
 >Synopsis:       GCC 3.0.3 rejects Hitachi SH2 registers "vbr" and "pc"
 >Confidential:   no
 >Severity:       serious
 >Priority:       low
 >Responsible:    unassigned
 >State:          open
 >Class:          rejects-legal
 >Submitter-Id:   net
 >Arrival-Date:   Tue Apr 16 03:06:01 PDT 2002
 >Closed-Date:
 >Last-Modified:
 >Originator:     Kasper van den Berg
 >Release:        gcc version 3.0-GNUSH_v0202 (this is gcc 3.0.3)
 >Organization:
 >Environment:
 Host: Intel / WinNT / MinGW
 Target: Hitachi SH2 7043 / no OS
 
 gcc reports: Configured with:
 /home/kpit/fsfsrc/gcc-3.0.3patch_mingw/configure =
 --enable-languages=3Dc,c++,pr
 oto =
 --cache-file=3D/home/kpit/mingwsh-elfbld3.0.3rel/build-gcc-3.0.3patch_min=
 g
 w/config.cache --build=3Di686-pc-linux-gnu --host=3Di386-pc-mingw32msvc =
 --target
 =3Dsh-elf --with-newlib --prefix=3D/usr/mingwsh-elf3.0.3rel
 
 >Description:
 gcc doesn't know the registers names "vbr" and "pc"
 
 error messages:
 vbr.c: In function `main':
 vbr.c:5: invalid register name `vbr' for register variable
 vbr.c:6: invalid register name `pc' for register variable
 >How-To-Repeat:
 gcc -save-temps vbr.i
 >Fix:
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 ----gnatsweb-attachment----
 Content-Type: application/octet-stream; name=3D"vbr.i"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename=3D"vbr.i"
 
 IyAxICJ2YnIuYyINCmludCBtYWluICh2b2lkKQ0Kew0KICAgICAgICByZWdpc3RlciBpbnQgd=
 GVz
 dDEgYXNtKCJyMSIpOw0KICAgICAgICByZWdpc3RlciBpbnQgdGVzdDIgYXNtKCJnYnIiKTsNC=
 iAg
 ICAgICAgcmVnaXN0ZXIgaW50IHRlc3QzIGFzbSgidmJyIik7DQogICAgICAgIHJlZ2lzdGVyI=
 Glu
 dCB0ZXN0NCBhc20oInBjIik7DQoNCiAgICAgICAgcmV0dXJuIDA7DQp9DQo=3D
 


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