public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ralf Gütlein <ralf.guetlein@aranea.de>
To: "Kazu Hirata" <kazu@hxi.com>, "gcc" <gcc@gcc.gnu.org>,
	"gnuh8" <gnuh8@pcserv.demon.co.uk>
Subject: Re: h8300: less optimal (buggy?) compiler output with last build
Date: Wed, 16 Aug 2000 09:00:00 -0000	[thread overview]
Message-ID: <000a01c0079b$129edba0$650b0d0a@Alzenau> (raw)
In-Reply-To: <41ECF07CC183D111A6F800805FEDAB190CE6D1@EXCHANGE1>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]

----- Original Message -----
From: Kazu Hirata <kazu@hxi.com>
To: 'Ralf Gütlein' <ralf.guetlein@biotest-mt.de>; gcc <gcc@gcc.gnu.org>;
gnuh8
> > testcase_1: sub   r2l, r2l
> >             mov.b r2l, TCW
> >             rts
> >
> > testcase_2: sub   r2l, r2l
> >             mov.b r2l, TCW
> >             mov.b TCW, r2l  ; <-- ????
> >             rts
>
> This sounds serious.  I am using the latest gcc from the cvs, but this
> problem did not happen.  Does your version actually output TCW, not @_TCW?
> Have you applied any patches that are not in the cvs?
>
> Kazu Hirata
>

Sorry but I made a typo. Of course, what the compiler emits reads:

testcase_2: sub   r2l, r2l
            mov.b r2l, @TCW
            mov.b @TCW, r2l  ; <-- ????
            rts

Still, this is a serious issue, which appears to be present on other
targets also. I can prove it at least for i586:

_testcase_1__Fv:
    movb    $0, _TCW
    ret
(...)
_testcase_2__Fv:
    movb    $0, _TCW
    movb    _TCW, %al   ; <-- ????
    ret

This is happening only with the c++-compiler, the c-compiler issues the
expected code. IMO this means that the error must be somewhere within
the target-independend part of the sources.

This applies to last weeks snapshot. I don't know how long this has been
an issue, because I haven't been involved in GCC for a while.


Regards,
Ralf


           .....
           ô ô )
-----oOOo--(_)---oOOo------

Ralf Guetlein
Biotest Medizintechnik GmbH
Industriestrasse 19
D-63755 Alzenau
Germany
---------------------------
Tel. +49 6023 9487-42
Fax. +49 6023 9487-33
ralf.guetlein@biotest-mt.de
---------------------------


  reply	other threads:[~2000-08-16  9:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-16  8:21 Kazu Hirata
2000-08-16  9:00 ` Ralf Gütlein [this message]
2000-08-16  9:24   ` Alan Lehotsky
2000-08-18  5:45   ` Kai Ruottu
2000-08-21  7:36     ` Jeffrey A Law
     [not found] <200008161601.LAA05198@mail.teleteam.net>
2000-08-17  2:36 ` Ralf Gütlein
2000-08-18  1:47   ` Ralf Gütlein
  -- strict thread matches above, loose matches on Subject: below --
2000-08-16  7:20 Ralf Gütlein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000a01c0079b$129edba0$650b0d0a@Alzenau' \
    --to=ralf.guetlein@aranea.de \
    --cc=gcc@gcc.gnu.org \
    --cc=gnuh8@pcserv.demon.co.uk \
    --cc=kazu@hxi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).