target/6318: GCC 3.0.3 rejects Hitachi SH2 registers "vbr" and "pc"

kaspervandenberg@eu.omron.com kaspervandenberg@eu.omron.com
Tue Apr 16 04:12:00 GMT 2002


>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=c,c++,proto --cache-file=/home/kpit/mingwsh-elfbld3.0.3rel/build-gcc-3.0.3patch_mingw/config.cache --build=i686-pc-linux-gnu --host=i386-pc-mingw32msvc --target=sh-elf --with-newlib --prefix=/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="vbr.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="vbr.i"

IyAxICJ2YnIuYyINCmludCBtYWluICh2b2lkKQ0Kew0KICAgICAgICByZWdpc3RlciBpbnQgdGVz
dDEgYXNtKCJyMSIpOw0KICAgICAgICByZWdpc3RlciBpbnQgdGVzdDIgYXNtKCJnYnIiKTsNCiAg
ICAgICAgcmVnaXN0ZXIgaW50IHRlc3QzIGFzbSgidmJyIik7DQogICAgICAgIHJlZ2lzdGVyIGlu
dCB0ZXN0NCBhc20oInBjIik7DQoNCiAgICAgICAgcmV0dXJuIDA7DQp9DQo=



More information about the Gcc-bugs mailing list