public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/54083] New: FAIL: gcc.dg/torture/pr53922.c on x86_64-apple-darwin10
@ 2012-07-24 12:59 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
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-07-24 12:59 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54083
           Summary: FAIL: gcc.dg/torture/pr53922.c on
                    x86_64-apple-darwin10
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: iains@gcc.gnu.org, rguenth@gcc.gnu.org
              Host: x86_64-apple-darwin10
            Target: x86_64-apple-darwin10
             Build: x86_64-apple-darwin10


The test gcc.dg/torture/pr53922.c fails on x86_64-apple-darwin10 with

FAIL: gcc.dg/torture/pr53922.c  -O0  (test for excess errors)
Excess errors:
Undefined symbols:
  "_y", referenced from:
      _y$non_lazy_ptr in cc15xBZL.o
     (maybe you meant: _y$non_lazy_ptr)
ld: symbol(s) not found


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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 ` dominiq at lps dot ens.fr
  2012-09-04 11:10 ` dominiq at lps dot ens.fr
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-07-24 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-apple-darwin10       |*-apple-darwin*
               Host|x86_64-apple-darwin10       |*-apple-darwin*
            Summary|FAIL:                       |FAIL:
                   |gcc.dg/torture/pr53922.c on |gcc.dg/torture/pr53922.c on
                   |x86_64-apple-darwin10       |*-apple-darwin*
              Build|x86_64-apple-darwin10       |*-apple-darwin*

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-07-24 22:43:40 UTC ---
Same thing on powerpc-apple-darwin9:

FAIL: gcc.dg/torture/pr53922.c  -O0  (test for excess errors)
Excess errors:
Undefined symbols:
  "_y", referenced from:
      _y$non_lazy_ptr in ccYDPj6e.o
ld: symbol(s) not found


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-04 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-04
     Ever Confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-04 11:10:11 UTC ---
The failing test has been introduced by

Author: rguenth
Date: Fri Jul 13 11:21:39 2012
New Revision: 189461

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189461
Log:
2012-07-13  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/53922
    * tree-vrp.c (value_inside_range): Change prototype to take
    min/max instead of value-range.
    (range_includes_zero_p): Likewise.  Return the result from
    value_inside_range.
    (extract_range_from_binary_expr_1): Adjust to handle dont-know
    return value from range_includes_zero_p.
    (extract_range_from_unary_expr_1): Likewise.
    (compare_range_with_value): Likewise.
    (vrp_meet_1): Likewise.

    * gcc.dg/torture/pr53922.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr53922.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-09-16 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> 2012-09-16 15:45:38 UTC ---
Test also fails on 32-bit hppa*-*-hpux* because undefined weak symbols
are not supported.

Isn't this a tree optimization bug?


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (2 preceding siblings ...)
  2012-09-16 15:46 ` danglin at gcc dot gnu.org
@ 2012-09-23 21:36 ` dominiq at lps dot ens.fr
  2012-09-23 21:37 ` dominiq at lps dot ens.fr
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-23 21:36 UTC (permalink / raw)
  To: gcc-bugs


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.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (3 preceding siblings ...)
  2012-09-23 21:36 ` dominiq at lps dot ens.fr
@ 2012-09-23 21:37 ` dominiq at lps dot ens.fr
  2012-09-27 21:29 ` fang at csl dot cornell.edu
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-23 21:37 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-23 21:37:12 UTC ---
Created attachment 28255
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28255
alternative patch


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (4 preceding siblings ...)
  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
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: fang at csl dot cornell.edu @ 2012-09-27 21:29 UTC (permalink / raw)
  To: gcc-bugs


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

David Fang <fang at csl dot cornell.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fang at csl dot cornell.edu

--- Comment #6 from David Fang <fang at csl dot cornell.edu> 2012-09-27 21:29:17 UTC ---
http://gcc.gnu.org/ml/gcc-testresults/2012-09/msg02736.html

seen same failures with 4.7.2 on powerpc-darwin8


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (5 preceding siblings ...)
  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
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-27 21:33 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-27 21:33:32 UTC ---
The patch in comment #5 should fix it.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (6 preceding siblings ...)
  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
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-09-30 17:42 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from John David Anglin <danglin at gcc dot gnu.org> 2012-09-30 17:41:55 UTC ---
Author: danglin
Date: Sun Sep 30 17:41:49 2012
New Revision: 191873

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191873
Log:
    PR target/54083
    * gcc.dg/torture/pr53922.c: Skip on 32-bit hppa-*-hpux*.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/pr53922.c


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (7 preceding siblings ...)
  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
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-09-30 17:44 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from John David Anglin <danglin at gcc dot gnu.org> 2012-09-30 17:44:09 UTC ---
Author: danglin
Date: Sun Sep 30 17:44:04 2012
New Revision: 191874

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191874
Log:
    PR target/54083
    * gcc.dg/torture/pr53922.c: Skip on 32-bit hppa-*-hpux*.


Modified:
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr53922.c


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (8 preceding siblings ...)
  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
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-09-30 17:55 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #10 from John David Anglin <danglin at gcc dot gnu.org> 2012-09-30 17:54:57 UTC ---
Test is fixed on 32-bit hpux.

Sorry, for messing up proposed patches.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (9 preceding siblings ...)
  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
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-11-19 16:49 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-11-19 16:48:30 UTC ---
Author:    hjl
Date:    Mon Nov 5 21:59:49 2012 UTC (13 days, 18 hours ago)
New Revision: 193193

URL: http://gcc.gnu.org/viewcvs?view=revision&sortby=date&revision=193193
Log:    
    * gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on
    darwin.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/pr53922.c

This does not fix the failures for powerpc-apple-darwin9.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (10 preceding siblings ...)
  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
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-11-19 17:01 UTC (permalink / raw)
  To: gcc-bugs


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

Jack Howarth <howarth at nitro dot med.uc.edu> changed:

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

--- Comment #12 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-19 17:00:21 UTC ---
(In reply to comment #11)
> Author:    hjl
> Date:    Mon Nov 5 21:59:49 2012 UTC (13 days, 18 hours ago)
> New Revision: 193193
> 
> URL: http://gcc.gnu.org/viewcvs?view=revision&sortby=date&revision=193193
> Log:    
>     * gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on
>     darwin.
> 
> Modified:
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/testsuite/gcc.dg/torture/pr53922.c
>  
> This does not fix the failures for powerpc-apple-darwin9.

This is will never be fixable for darwin9 short of using a newer linker as the
test case for radr://10466868, "-undefined dynamic_lookup linker bug" fails
under Xcode 3.1.4.

17-Nov-2011 08:22 PM Jack Howarth:
Summary: The following weak.c test case reveals a linker bug in -undefined
dynamic_lookup in Xcode 4.2/4.2.1 under both darwin10 and darwin11.

--------------- weak.c ---------------------
#include <stdio.h>

char *myweakfunc(void) __attribute__((weak)) ;

int main(int argc, char **argv)
{
  if (myweakfunc)
    printf ("found myweakfunc %s\n", myweakfunc());
  else
    printf("Weak func not found\n");
  return 0;
}
-------------------------------------------

Steps to Reproduce:
1) Install Xcode 4.2 on darwin10 or darwin11.
2) Compile the weak.c test case with...

/usr/bin/llvm-gcc weak.c -o wk -undefined dynamic_lookup

3) Execute the resulting "wk" executable

Expected Results:

I expected the same results as is seen when the weak.c test case is compiled
with llvm-gcc from Xcode 3.2.6...

howarth% /Developer-3.2.6/usr/bin/llvm-gcc weak.c -o wk -undefined
dynamic_lookup
howarth% ./wk
Weak func not found

Actual Results:

The resulting binary fails to execute with the runtime error...

dyld: Symbol not found: _myweakfunc
  Referenced from: /Users/howarth/./wk
  Expected in: flat namespace
 in /Users/howarth/./wk
Trace/BPT trap

This behavior was works in Xcode 3.2.6 up to Xcode 4.2 where it was broken
again. It was fixed again after Xcode 4.4.1 and we should be careful to test
for this linker behavior in the FSF gcc testsuite to insure that Apple doesn't
break it again.

Note that MacPorts provides an ld64 package on powerpc darwin9 which is based
on the linker from Xcode 3.2.6 which should work.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (11 preceding siblings ...)
  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
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: iains at gcc dot gnu.org @ 2012-11-19 21:34 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #13 from Iain Sandoe <iains at gcc dot gnu.org> 2012-11-19 21:33:51 UTC ---
(In reply to comment #12)

> This is will never be fixable for darwin9 short of using a newer linker as the

weak linking works perfectly on Darwin9, when the semantics are as per the
vendor's design (i.e. the exe link is done against a library containing the
weak symbol, either real or dummy).  The weak reference then behaves as
expected at runtime.

There is a work-around to make Darwin9/Mach-O behave more like ELF weak
(although this is NOT likely a good idea for general applications, it seems
reasonable in the confines of this test).

/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin9* } } */


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (12 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: fang at csl dot cornell.edu @ 2012-11-19 21:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #14 from David Fang <fang at csl dot cornell.edu> 2012-11-19 21:40:44 UTC ---
Would this be needed for darwin8 as well?


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (13 preceding siblings ...)
  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
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: iains at gcc dot gnu.org @ 2012-11-19 21:54 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> 2012-11-19 21:53:54 UTC ---
(In reply to comment #14)
> Would this be needed for darwin8 as well?

I don't recall the status of D8,  
.. I suspect that, in this case, it is as per D9 (if you have a build around,
you could confirm this).


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (14 preceding siblings ...)
  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
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-03-11 18:23 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-03-11 18:22:34 UTC ---
(In reply to comment #15)
> > Would this be needed for darwin8 as well?
>
> I don't recall the status of D8,  
> .. I suspect that, in this case, it is as per D9 (if you have a build around,
> you could confirm this).

I don't have the test suite setup for d8, but the test executes when compiled
with

gcc-fsf-4.7 -Wl,-undefined,dynamic_lookup -Wl,-flat_namespace pr53922.c

[pbook] dominiq/tempo% gcc-fsf-4.7 -v
Using built-in specs.
COLLECT_GCC=gcc-fsf-4.7
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.7/libexec/gcc/powerpc-apple-darwin8.11.0/4.7.2/lto-wrapper
Target: powerpc-apple-darwin8.11.0
Configured with: ../gcc-4.7.2/configure --prefix=/sw AS=odas AS_FOR_TARGET=odas
NM_FOR_TARGET=odnm LD_FOR_TARGET=odld AR_FOR_TARGET=odar LIPO_FOR_TARGET=odlipo
OBJDUMP_FOR_TARGET=odobjdump RANLIB_FOR_TARGET=odranlib
STRIP_FOR_TARGET=odstrip --prefix=/sw/lib/gcc4.7 --mandir=/sw/share/man
--infodir=/sw/lib/gcc4.7/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.7 --enable-cloog-backend=isl --with-dwarf2
--disable-libjava-multilib --disable-libquadmath
Thread model: posix
gcc version 4.7.2 (GCC) 

but does not if -Wl,-flat_namespace is omitted. So I guess the answer is yes.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (15 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-03-26 22:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The test gcc.dg/torture/pr60092.c fails on powerpc-apple-darwin9 for the same
reason. It is fixed by the patch

--- ../_clean/gcc/testsuite/gcc.dg/torture/pr60092.c    2014-03-24
08:05:33.000000000 +0100
+++ gcc/testsuite/gcc.dg/torture/pr60092.c    2014-03-26 22:57:17.000000000
+0100
@@ -1,6 +1,8 @@
 /* { dg-do run } */
 /* { dg-require-weak "" } */
 /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } {
"" } } */
+/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target
*-*-darwin* } } */
+/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
*/
 /* { dg-xfail-run-if "posix_memalign modifies first arg on error" {
*-*-solaris2.11* } { "-O0" } } */

 typedef __SIZE_TYPE__ size_t;


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (16 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dave.anglin at bell dot net @ 2014-03-26 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from dave.anglin at bell dot net ---
On 26-Mar-14, at 6:11 PM, dominiq at lps dot ens.fr wrote:

> /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } }  
> { "*" } {
> "" } } */

I have patch which removes the default args from the above line.  They  
are no longer needed.

You can either make change or I'll hold of update until you change is  
applied.

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (17 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-03-26 23:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I have patch which removes the default args from the above line.  
> They are no longer needed.

I was wondering why it was removed on my G5 darwin9:

--- ../_gcc_clean/gcc/testsuite/gcc.dg/torture/pr60092.c    2014-03-24
13:58:14.000000000 +0100
+++ gcc/testsuite/gcc.dg/torture/pr60092.c    2014-02-20 14:12:02.000000000
+0100
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-require-weak "" } */
-/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } { "*" } {
"" } } */
+/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target
*-*-darwin* } } */
+/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } }
*/
 /* { dg-xfail-run-if "posix_memalign modifies first arg on error" {
*-*-solaris2.11* } { "-O0" } } */

 typedef __SIZE_TYPE__ size_t;

Do you remember any post about it?

Anyway, I have no problem to commit this patch once I get the green light.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (18 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dave.anglin at bell dot net @ 2014-03-27  0:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from dave.anglin at bell dot net ---
On 26-Mar-14, at 7:29 PM, dominiq at lps dot ens.fr wrote:

> Do you remember any post about it?

See this thread:
http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01222.html

I'm not sure when the support for default args was updated.

Attached is the fix I was testing.

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (19 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-03-27  9:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> See this thread:
> http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01222.html

Please commit your patch, I'll adjust mine.


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (20 preceding siblings ...)
  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
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at gcc dot gnu.org @ 2014-04-02  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Wed Apr  2 08:58:03 2014
New Revision: 209018

URL: http://gcc.gnu.org/viewcvs?rev=209018&root=gcc&view=rev
Log:
2014-03-26  Dominique d'Humieres  <dominiq@lps.ens.fr>
        Iain Sandoe <iain@codesourcery.com>

    PR target/54083
    * gcc.dg/attr-weakref-1.c: Allow the test on darwin
    with the additional options -Wl,-undefined,dynamic_lookup
    and -Wl,-flat_namespace.
    * gcc.dg/torture/pr53922.c: Additional option
    -Wl,-flat_namespace for darwin[89].             
    * gcc.dg/torture/pr60092.c: Additional options          
    -Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace           
    for darwin[89].                                                         


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/attr-weakref-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr53922.c
    trunk/gcc/testsuite/gcc.dg/torture/pr60092.c


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (21 preceding siblings ...)
  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
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at gcc dot gnu.org @ 2014-04-06 11:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Sun Apr  6 11:43:38 2014
New Revision: 209162

URL: http://gcc.gnu.org/viewcvs?rev=209162&root=gcc&view=rev
Log:
2014-04-06  Dominique d'Humieres  <dominiq@lps.ens.fr>
        Iain Sandoe <iain@codesourcery.com>

    PR target/54083
    * gcc.dg/attr-weakref-1.c: Allow the test on darwin with
    the additional options -Wl,-undefined,dynamic_lookup and
    -Wl,-flat_namespace
    * gcc.dg/torture/pr53922.c: Additional option
    -Wl,-flat_namespace for darwin[89].


Modified:
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/attr-weakref-1.c
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr53922.c


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug target/54083] FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*
  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
                   ` (22 preceding siblings ...)
  2014-04-06 11:44 ` dominiq at gcc dot gnu.org
@ 2014-04-06 11:45 ` dominiq at lps dot ens.fr
  23 siblings, 0 replies; 25+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-04-06 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #26 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Closing as FIXED.


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-04-06 11:45 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).