public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
Date: Sun, 23 Sep 2012 21:36:00 -0000	[thread overview]
Message-ID: <bug-54083-4-e4nSpL2p7m@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54083-4@http.gcc.gnu.org/bugzilla/>


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at bromo dot
                   |                            |med.uc.edu

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-23 21:35:49 UTC ---
A patch has been posted at
http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01602.html and I have also tested
it on x86_64-apple-darwin10. Note that it won't fix the failure for 32-bit
hppa*-*-hpux*.

The fix used also works for gcc.dg/attr-weakref-1.c

--- ../_clean/gcc/testsuite/gcc.dg/attr-weakref-1.c    2012-03-12
19:39:57.000000000 +0100
+++ gcc/testsuite/gcc.dg/attr-weakref-1.c    2012-09-23 23:23:33.000000000
+0200
@@ -4,12 +4,13 @@
 // This test requires support for undefined weak symbols.  This support
 // is not available on hppa*-*-hpux*.  The test is skipped rather than
 // xfailed to suppress the warning that would otherwise arise.
-// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
+// { dg-skip-if "" { "hppa*-*-hpux*" } "*" { "" } }
 // For kernel modules and static RTPs, the loader treats undefined weak
 // symbols in the same way as undefined strong symbols.  The test
 // therefore fails to load, so skip it.
 // { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } }
 // { dg-options "-O2" }
+// { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
 // { dg-additional-sources "attr-weakref-1a.c" }

 // Copyright 2005 Free Software Foundation, Inc.

For the record, following the suggestions of Richard Guenther and Tobias Burnus
on IRC, I have tested the attached patch which mimics gcc.dg/attr-weakref-1.c
and also works on x86_64-apple-darwin10 and powerpc-apple-darwin9.


  parent reply	other threads:[~2012-09-23 21:36 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 12:59 [Bug target/54083] New: FAIL: gcc.dg/torture/pr53922.c on x86_64-apple-darwin10 dominiq at lps dot ens.fr
2012-07-24 22:43 ` [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin* dominiq at lps dot ens.fr
2012-09-04 11:10 ` dominiq at lps dot ens.fr
2012-09-16 15:46 ` danglin at gcc dot gnu.org
2012-09-23 21:36 ` dominiq at lps dot ens.fr [this message]
2012-09-23 21:37 ` dominiq at lps dot ens.fr
2012-09-27 21:29 ` fang at csl dot cornell.edu
2012-09-27 21:33 ` dominiq at lps dot ens.fr
2012-09-30 17:42 ` danglin at gcc dot gnu.org
2012-09-30 17:44 ` danglin at gcc dot gnu.org
2012-09-30 17:55 ` danglin at gcc dot gnu.org
2012-11-19 16:49 ` dominiq at lps dot ens.fr
2012-11-19 17:01 ` howarth at nitro dot med.uc.edu
2012-11-19 21:34 ` iains at gcc dot gnu.org
2012-11-19 21:41 ` fang at csl dot cornell.edu
2012-11-19 21:54 ` iains at gcc dot gnu.org
2013-03-11 18:23 ` dominiq at lps dot ens.fr
2014-03-26 22:11 ` dominiq at lps dot ens.fr
2014-03-26 22:43 ` dave.anglin at bell dot net
2014-03-26 23:29 ` dominiq at lps dot ens.fr
2014-03-27  0:17 ` dave.anglin at bell dot net
2014-03-27  9:37 ` dominiq at lps dot ens.fr
2014-04-02  8:58 ` dominiq at gcc dot gnu.org
2014-04-06 11:44 ` dominiq at gcc dot gnu.org
2014-04-06 11:45 ` dominiq at lps dot ens.fr

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-54083-4-e4nSpL2p7m@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).