public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joern Rennecke <joern.rennecke@st.com>
To: aoliva@redhat.com
Cc: ezannoni@redhat.com, gcc@gcc.gnu.org, gdb@sources.redhat.com,
	bje@redhat.com, ac131313@cygnus.com
Subject: Re: SH5 compact register numbering in gcc -> gdb interface
Date: Tue, 07 May 2002 07:57:00 -0000	[thread overview]
Message-ID: <3CD7EB51.7816DD1@st.com> (raw)
In-Reply-To: <or4rhotrng.fsf@livre.redhat.lsd.ic.unicamp.br>

aoliva@redhat.com wrote:
> The register numbering used by GCC is definitely arbitrary.  I hadn't
> even considered there might be reasons for it not to be, for which I
> apologize.  It's a bit unfortunate that this has come up when we're
> this close to the first GCC release to include the SH5 port.  I'm not
> sure we have enough time to come up with a solution, nor whether Mark
> would accept it in the branch.  It would be too bad if GDB couldn't
> debug code compiled by GCC 3.1.  Perhaps we can come up with a
> backward-compatible register mapping, even if GDB would work in a
> degraded mode when the current register numbering is in use.

I was proposing only to change the SHcompact mapping, so that code
compiled with the default options won't be affected.  Moreover, there
are still a number of bugs in gcc 3.1 that affect the SH5 port, some
of which can only be fixed with changes to the machine-independent sources.
I am working on this, but it is not feasible to finish this work in time
for gcc 3.1 .  Hence, I'd expect some gcc 3.2 snapshots to be better
for SH5 than gcc 3.1 for production code.

Another reason to switch to a post 3.1 compiler will be debugging speed.
The prologue-disassembling slows backtraces considerably when debugging
on real hardware.  We are currently working on SH gcc emitting proper
cfi information, and gdb making use of it.  For SH4 this has already
proved to make quite an improvement, and the gcc bug fixes for this
are among the next patches I intend to put into the FSF gcc repository.

-- 
--------------------------
SuperH
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:+44 1454 462330

  reply	other threads:[~2002-05-07 14:57 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30 10:53 Joern Rennecke
2002-04-30 12:30 ` Joern Rennecke
2002-05-01 17:55   ` Elena Zannoni
2002-05-02  3:13     ` Joern Rennecke
2002-05-01 17:52 ` Elena Zannoni
2002-05-02  5:06   ` Joern Rennecke
2002-05-03 22:21     ` Alexandre Oliva
2002-05-07  7:57       ` Joern Rennecke [this message]
2002-05-07 10:12         ` Andrew Cagney
2002-05-07 12:03           ` Joern Rennecke
2002-05-07 12:09             ` Elena Zannoni
2002-05-07 15:13             ` Andrew Cagney
2002-05-09 14:53               ` SH5 compact register numbering in gcc -> gdb interface - include/elf/sh.h ? Joern Rennecke
2002-05-09 15:42                 ` Elena Zannoni
2002-05-09 18:22                   ` Andrew Cagney
2002-05-10  7:33                     ` Joern Rennecke
2002-05-10  7:52                       ` Andrew Cagney
2002-05-10  8:38                         ` Joern Rennecke
2002-05-10  4:14                   ` Joern Rennecke
2002-05-10  7:49                     ` Andrew Cagney
2002-05-10  7:53                       ` Joern Rennecke
2002-05-10  4:18                   ` Joern Rennecke
2002-05-07 12:04           ` SH5 compact register numbering in gcc -> gdb interface Joern Rennecke
2002-05-09 22:53             ` Alexandre Oliva
2002-05-08  0:56         ` DWARFx ? .debug sections infos phi 4369
2002-05-08  1:57           ` Lars Brinkhoff
2002-05-08  2:43             ` phi 4369
2002-05-08  7:34               ` Petr Sorfa
2002-05-07 10:19     ` SH5 compact register numbering in gcc -> gdb interface Andrew Cagney

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=3CD7EB51.7816DD1@st.com \
    --to=joern.rennecke@st.com \
    --cc=ac131313@cygnus.com \
    --cc=aoliva@redhat.com \
    --cc=bje@redhat.com \
    --cc=ezannoni@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb@sources.redhat.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).