Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: Daniel Jacobowitz <drow@mvista.com>,
	gdb-patches@sources.redhat.com, cagney@redhat.com,
	kevinb@redhat.com, echristo@redhat.com
Subject: Re: [RFC] Mips, N32, cc, gcc, and gdb (longish)
Date: Fri, 02 Aug 2002 10:22:00 -0000	[thread overview]
Message-ID: <3D4ABFEF.50807@ges.redhat.com> (raw)
In-Reply-To: <3D49F5F7.C2135261@redhat.com>

> Daniel Jacobowitz wrote:

>> > > > This of course makes gdb's behavior dependent on which
>> > > > compiler it detects.
>> > > >
>> > > > There is one problem: there is no variable "gcc_p" within
>> > > > the scope of mips_push_arguments, because PUSH_ARGUMENTS
>> > > > does not pass it.  So that would need to be solved,
>> > > > possibly by modifying the definition of PUSH_ARGUMENTS.
>> > > >
>> > > > Comments?
> 
>> > >
>> > > Comment - you're on a slippery slope.  I know of at least one other
>> > > variation in this area; for structures of less than a word SGI CC
>> > > shifts them in register only for big endian targets, and not for little
>> > > endian (on the old versions of CC which support little endian).  There
>> > > comes a point where we just need to get GCC fixed, and I think this is
>> > > it.
> 
>> >
>> > Right -- but this thread concerns what to do if that DOESN'T happen.
>> >
>> > In answer to your comment, I believe the code currently in GDB
>> > already handles the case you describe, both for CC and for GCC.
>> > So what I'm discussing here will bring stack-passing into line
>> > with register-passing.
>> >
>> > However, you may be right that I need to check for endian-ness
>> > in my proposed change.  I haven't tested that.
> 
>> 
>> I'm not actually sure if it's the same if statement. 
> 
> 
> It's not.
> 
> 
>> Certainly GDB and GCC do not agree on mipsel-linux.
>> 
>> I'd say the proper thing to do is to see that GCC is fixed, not to lay
>> contingency plans...
> 
> 
> Well then, I hope somebody else replies!   ;-)

I hope it wasn't me :-)

GCC need to be fixed.  Either they need to define a new abi that 
specifies all their breakage OR they fix it to match the offical abi.  I 
have a sinking feeling that they'll do both.

Andrew



  reply	other threads:[~2002-08-02 17:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-01 18:32 Michael Snyder
2002-08-01 18:57 ` Daniel Jacobowitz
2002-08-01 19:42   ` Michael Snyder
2002-08-01 19:45     ` Daniel Jacobowitz
2002-08-01 20:19       ` Michael Snyder
2002-08-02 10:22         ` Andrew Cagney [this message]
2002-08-02 12:52           ` Eric Christopher

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=3D4ABFEF.50807@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=cagney@redhat.com \
    --cc=drow@mvista.com \
    --cc=echristo@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=msnyder@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