public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bill Currie <bill@taniwha.tssc.co.nz>
To: law@cygnus.com
Cc: egcs@cygnus.com
Subject: Re: reload segfault
Date: Sun, 24 Jan 1999 13:53:00 -0000	[thread overview]
Message-ID: <36AB9655.30985146@taniwha.tssc.co.nz> (raw)
In-Reply-To: <13856.917133923@hurl.cygnus.com>

Jeffrey A Law wrote:
> This pseudo should have been replaced by a hard reg or a stack slot by the
> time reload_cse runs.

That's what I suspected.  This means I did something wrong somewhere
during the reload pass (ie allocating a pseudo is my best guess).

> The first thing I check for when I see this kind of problem is the use/set
> counts for the register in question.
> 
> p reg_n_info.u.regs[169]

gdb didn't like that: `There is no member named u.'

> In particular check the "refs" field.  If it is zero, then the problem is
> probably before allocation & reload.  If it's nonzero, then you're going to
> have to dive deeper into reload.

I beleive I'll have to anyway (I can't quickly find the info your
talking about) as I think I've incorrectly allocated a pseudo (thanks to
your confirmation of that thought) that somehow slipped though the check
in gen_reg_rtx.  I'll do some careful breakpoint trickery on that
function and see if it get's me anywhere.

I seem to remember a discussion about reload_in_progress and
reload_completed not being enough to test whether it's safe to allocate
pseudos.  Is this true, and if so, what's the solution?

Bill
-- 
Leave others their otherness.

WARNING: multiple messages have this Message-ID
From: Bill Currie <bill@taniwha.tssc.co.nz>
To: law@cygnus.com
Cc: egcs@cygnus.com
Subject: Re: reload segfault
Date: Sun, 31 Jan 1999 23:58:00 -0000	[thread overview]
Message-ID: <36AB9655.30985146@taniwha.tssc.co.nz> (raw)
Message-ID: <19990131235800.eklh18EHM9JBw-mTelE5NpYmNMIl6UsrCNFDd2HhnDg@z> (raw)
In-Reply-To: <13856.917133923@hurl.cygnus.com>

Jeffrey A Law wrote:
> This pseudo should have been replaced by a hard reg or a stack slot by the
> time reload_cse runs.

That's what I suspected.  This means I did something wrong somewhere
during the reload pass (ie allocating a pseudo is my best guess).

> The first thing I check for when I see this kind of problem is the use/set
> counts for the register in question.
> 
> p reg_n_info.u.regs[169]

gdb didn't like that: `There is no member named u.'

> In particular check the "refs" field.  If it is zero, then the problem is
> probably before allocation & reload.  If it's nonzero, then you're going to
> have to dive deeper into reload.

I beleive I'll have to anyway (I can't quickly find the info your
talking about) as I think I've incorrectly allocated a pseudo (thanks to
your confirmation of that thought) that somehow slipped though the check
in gen_reg_rtx.  I'll do some careful breakpoint trickery on that
function and see if it get's me anywhere.

I seem to remember a discussion about reload_in_progress and
reload_completed not being enough to test whether it's safe to allocate
pseudos.  Is this true, and if so, what's the solution?

Bill
-- 
Leave others their otherness.

  reply	other threads:[~1999-01-24 13:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-23 12:51 Bill Currie
1999-01-23 19:21 ` Jeffrey A Law
1999-01-24 13:53   ` Bill Currie [this message]
1999-01-24 22:37     ` Jeffrey A Law
1999-01-31 23:58       ` Jeffrey A Law
1999-01-31 23:58     ` Bill Currie
1999-01-28 17:45   ` Bill Currie
1999-01-28 18:45     ` Bill Currie
1999-01-28 20:03     ` Jeffrey A Law
1999-01-29  0:51       ` Bill Currie
1999-01-29  3:48         ` Michael Hayes
1999-01-31 11:47           ` Bill Currie
1999-01-29  8:02         ` Jeffrey A Law
1999-01-31 23:58   ` Jeffrey A Law
1999-01-31 23:58 ` Bill Currie

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=36AB9655.30985146@taniwha.tssc.co.nz \
    --to=bill@taniwha.tssc.co.nz \
    --cc=egcs@cygnus.com \
    --cc=law@cygnus.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).