public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: cgd@broadcom.com
To: echristo@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/5625: exception unwinding creates invalid pointer o n mips
Date: Tue, 23 Apr 2002 13:56:00 -0000	[thread overview]
Message-ID: <20020423205602.9395.qmail@sources.redhat.com> (raw)

The following reply was made to PR libstdc++/5625; it has been noted by GNATS.

From: cgd@broadcom.com
To: echristo@redhat.com
Cc: "Ed Maste" <emaste@sandvine.com>,
	"'echristo@gcc.gnu.org'" <echristo@gcc.gnu.org>,
	"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
	"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: Re: libstdc++/5625: exception unwinding creates invalid pointer
 o n mips
Date: 23 Apr 2002 13:53:31 -0700

 At Tue, 23 Apr 2002 19:47:09 +0000 (UTC), "Eric Christopher" wrote:
 > On Tue, 2002-04-23 at 12:35, Ed Maste wrote:
 > > Yes, the MIPS documentation states that the destination register 
 > > gets the sign-extended result ("GPR[rt]<-sign_extend(temp31..0)").
 > > 
 > > However, note the ADDIU instruction Restrictions section:
 > > 
 > >      Restrictions:
 > >      If GPR rs does not contain a sign-extended 
 > >      32-bit value (bits 63..31 equal), then the 
 > >      result of the operation is UNPREDICTABLE.
 > > 
 > 
 > So it sounds like both your processor and gcc are in error. gcc by not
 > sign extending the value before and you for not sign extending it after.
 
 No, there is no processor error there.
 
 If the inputs are not sign extended, the result is unpredictable,
 period.  There is no guarantee of sign extension in that case.
 
 My understanding is that if it wanted to, the processor could, well,
 do anything that it wanted within the confines of the definition of
 UNPREDICTABLE (i.e., no hangs or halts and no security holes).  it
 could happily signal an implementation-dependent exception, return a
 strange value (either consistently or inconsnstently), etc.
 
 
 cgd
 
 


             reply	other threads:[~2002-04-23 20:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 13:56 cgd [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-01 10:36 cgd
2002-04-24 12:46 Ed Maste
2002-04-23 16:16 cgd
2002-04-23 12:56 Eric Christopher
2002-04-23 12:36 Ed Maste

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=20020423205602.9395.qmail@sources.redhat.com \
    --to=cgd@broadcom.com \
    --cc=echristo@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    /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).