public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dave.anglin at bell dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/27692] FAIL: g++.old-deja/g++.other/init5.C execution test
Date: Tue, 11 Oct 2011 12:07:00 -0000	[thread overview]
Message-ID: <bug-27692-4-xxukXud30j@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-27692-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27692

--- Comment #9 from dave.anglin at bell dot net 2011-10-11 12:06:25 UTC ---
On 10-Oct-11, at 5:45 PM, paolo.carlini at oracle dot com wrote:

> I honestly don't understand how such a warning would look like: like  
> warning
> for any snippet of code where destructors could run in an  
> unpredictable order?
> I'm adding Jason in CC in case he can imagine something in this  
> area...
> otherwise I guess I would ask you or Steve to just change those  
> testcases to be
> skipped instead of xfailed and be done with this very old PR.


In principle, I believe this could be fixed on 32-bit PA-RISC HP-UX.   
Initializer and finalizer
routines are registered by collect2 for executables and shared  
objects.  So, it should
be possible to run all destructors in reverse order of construction  
even for dynamically
loaded objects.  It's using atexit that's the problem.

64-bit HP-UX is somewhat different.  It uses .init_array/.fini_array  
but again this works
for shared libraries, etc.

Dave
--
John David Anglin    dave.anglin@bell.net


  parent reply	other threads:[~2011-10-11 12:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-27692-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 16:00 ` paolo.carlini at oracle dot com
2011-10-10 21:19 ` dave.anglin at bell dot net
2011-10-10 21:45 ` paolo.carlini at oracle dot com
2011-10-11  1:10 ` jason at gcc dot gnu.org
2011-10-11  1:27 ` paolo.carlini at oracle dot com
2011-10-11 12:07 ` dave.anglin at bell dot net [this message]
2011-10-11 13:08 ` jason at gcc dot gnu.org
2011-10-11 14:20 ` dave.anglin at bell dot net
2011-10-11 14:39 ` jason at gcc dot gnu.org
2006-05-20 20:36 [Bug c++/27692] New: " danglin at gcc dot gnu dot org
2006-05-21  5:34 ` [Bug c++/27692] " pinskia at gcc dot gnu dot org
2006-06-05 16:51 ` sje at cup dot hp dot com
2006-06-05 17:07 ` pinskia at gcc dot gnu dot org
2006-06-05 17:10 ` pinskia at gcc dot gnu dot org

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=bug-27692-4-xxukXud30j@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).