From: Mark Mitchell <mark@codesourcery.com>
To: gcc@gcc.gnu.org
Cc: aoliva@redhat.com, jason@redhat.com, nathan@codesourcery.com
Subject: PR 8134: C++ crash
Date: Tue, 15 Oct 2002 12:15:00 -0000 [thread overview]
Message-ID: <107620000.1034706921@warlock.codesourcery.com> (raw)
PR 8134 is a crash in force_store_init_value on the branch; it is a
regression.
The root problem here is that we were not handling zero-initialization
of pointers to members correctly. Alexandre tried to fix the problem,
but in the process introduced the crashes above. This was resolved on
the mainline with a rather substantial reworking of class layout code;
that was my patch to create a separate base class variant of each type.
What should we do on the branch?
The obvious choices are:
a) Nothing
In this case, stuff blows up badly.
b) Move my changes over.
As far as we know, these are correct -- but they are substantial,
and therefore risky.
c) Revert Alexandre's patch.
In this case, we get back to GCC 3.0-like behavior; incorrect
zero-initialization of some pointers-to-members.
I don't like any of these choices. I think I lean towards (c),
merely as a "devil you know" kind of choice. I can also do (b), if
people feel that's the right thing, but I'm nervous about somehow
making an inadvertant ABI change in the minor release.
Thoughts?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
next reply other threads:[~2002-10-15 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-15 12:15 Mark Mitchell [this message]
2002-10-15 12:37 ` Gabriel Dos Reis
2002-10-15 12:59 ` Nathan Sidwell
2002-10-16 13:02 ` Mark Mitchell
2002-10-16 13:23 ` Nathan Sidwell
2002-10-16 13:24 ` Mark Mitchell
2002-10-15 15:38 ` Jason Merrill
2002-10-15 16:41 ` Mark Mitchell
2002-10-15 12:25 Benjamin Kosnik
2002-10-16 4:03 Reichelt
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=107620000.1034706921@warlock.codesourcery.com \
--to=mark@codesourcery.com \
--cc=aoliva@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=nathan@codesourcery.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).