public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Steve Ellcey <sje@cup.hp.com>
To: Jan Hubicka <hubicka@ucw.cz>
Cc: John David Anglin <dave@hiauly1.hia.nrc.ca>, gcc-patches@gcc.gnu.org
Subject: Re: HPPA constructor merge patch, PR middle-end/45388
Date: Mon, 06 Dec 2010 22:53:00 -0000	[thread overview]
Message-ID: <201012062235.oB6MZhQ25845@lucas.cup.hp.com> (raw)
In-Reply-To: <20100928163015.GD6708@atrey.karlin.mff.cuni.cz>

On 09/28/2010 18:30 AM, Jan Hubicka wrote:

> > On 09/28/2010 08:36 AM, Jan Hubicka wrote:
> > > This is bit difficult to arrange with LTO.  We produce at compile time the consturctor
> > > function with magic names, then at LTO time we want to produce single constructor function
> > > calling them all.   We would need to guess on what name is the magic name (by same logic
> > > as what collect does) and rename function back.
> > > I can definitly implement it, but it seems more hackish than the collect2 side change.
> > 
> > An alternative is that at compile time we emit
> > 
> >   _Z41__static_initialization_and_destruction_0ii
> > 
> > to the intermediate code as the constructor, and
> > 
> >   GLOBAL__I__ZN2c12f6Ev calls
> > 
> > to the object code calling _Z41.  However, we don't emit
> > GLOBAL to the intermediate code at all.  Thus when LTO 
> > replaces the object files there's no trace of the original
> > GLOBAL function at all, and thus collect2 does not see it.
> > LTO will simply see _Z41 and call that function directly.
> > 
> > This is not entirely different from the case in which we
> > have .ctor support -- it's not like we read in the piece
> > of the object code that contains the .ctor data.  Just
> > consider the GLOBAL function object file data.
> > 
> > This should be doable with a flag on the decl for GLOBAL
> > that indicates that it should not be serialized.
> 
> Or we can just produce those collected global constructors after
> serialization.  I will check...
> 
> Honza
> > 
> > 
> > r~

Honza,

Have you looked into this any more?  I haven't seen any follow up from
you since this email.  This defect, PR middle-end/45388, is a P1 defect,
it breaks the hppa bootstrap, and it has been open for over a month.  I
would like to see this fixed, or your patch reverted, before we release
4.6.

Steve Ellcey
sje@cup.hp.com

  parent reply	other threads:[~2010-12-06 22:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 12:18 Steve Ellcey
2010-09-28 12:26 ` Richard Henderson
2010-09-28 13:03   ` Steve Ellcey
2010-09-28 13:28     ` Richard Henderson
2010-09-28 15:21       ` Jan Hubicka
2010-09-28 18:56         ` John David Anglin
2010-09-28 19:05           ` Jan Hubicka
2010-09-28 19:45             ` Richard Henderson
2010-09-28 19:59               ` Jan Hubicka
2010-11-08 21:49                 ` John David Anglin
2010-12-06 22:53                 ` Steve Ellcey [this message]
2010-12-12 17:46                 ` John David Anglin
2010-12-12 20:15                   ` Mark Mitchell
2010-12-12 22:05                     ` Jan Hubicka
2010-12-13  0:30                       ` Jan Hubicka
2010-12-13  1:04                         ` John David Anglin
2010-12-13 13:36                           ` John David Anglin
2010-12-13 13:40                             ` Jan Hubicka
2010-12-13 15:38                               ` Mark Mitchell
2010-12-13 17:33                                 ` Jan Hubicka
2010-12-13 17:52                                   ` Mark Mitchell
2010-12-13 18:45                                     ` Jan Hubicka
2010-12-13 21:42                                       ` John David Anglin
2010-12-14  7:08                                       ` H.J. Lu
2010-12-14 11:24                                         ` Jan Hubicka
2010-12-14 12:04                                           ` Richard Henderson

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=201012062235.oB6MZhQ25845@lucas.cup.hp.com \
    --to=sje@cup.hp.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    /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).