public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41856]  New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
@ 2009-10-28 13:17 howarth at nitro dot med dot uc dot edu
  2009-10-28 14:00 ` [Bug c++/41856] " jakub at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2009-10-28 13:17 UTC (permalink / raw)
  To: gcc-bugs

Two of the new testcases introduced in r153552 fail on both
powerpc-apple-darwin9 and x86_64-apple-darwin10...

FAIL: g++.dg/lookup/extern-c-redecl3.C scan-assembler call[\\t ]+fork
FAIL: g++.dg/lookup/extern-c-redecl4.C scan-assembler call[\\t ]+_Z4forkv


-- 
           Summary: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler
                    fails on darwin
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: *-apple-darwin*
  GCC host triplet: *-apple-darwin*
GCC target triplet: *-apple-darwin*


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
@ 2009-10-28 14:00 ` jakub at gcc dot gnu dot org
  2009-10-28 15:39 ` dodji at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-10-28 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-10-28 14:00 -------
I guess it is going to fail on many more targets.
One issue is that only some targets have call insn called that way, it can have
many other names on other targets.  Even on ix86/x86_64 it could be tail called
and be it jmp fork instead of call fork.  The second issue is that some targets
put various prefixes before the symbol name, guess the most often used one is
just an extra _ prefix.
So, probably the test should be limited to ix86/x86_64, ensure it is not built
with optimizations and accept extra optional _ before symbol name.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu dot org


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
  2009-10-28 14:00 ` [Bug c++/41856] " jakub at gcc dot gnu dot org
@ 2009-10-28 15:39 ` dodji at gcc dot gnu dot org
  2009-10-28 20:53 ` dodji at seketeli dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-10-28 15:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dodji at gcc dot gnu dot org  2009-10-28 15:38 -------
Yes, I'll limit the test to ix86/x86_64. Patch coming soon.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-28 15:38:45
               date|                            |


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
  2009-10-28 14:00 ` [Bug c++/41856] " jakub at gcc dot gnu dot org
  2009-10-28 15:39 ` dodji at gcc dot gnu dot org
@ 2009-10-28 20:53 ` dodji at seketeli dot org
  2009-10-28 21:41 ` dominiq at lps dot ens dot fr
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at seketeli dot org @ 2009-10-28 20:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dodji at seketeli dot org  2009-10-28 20:53 -------
Subject: Re:  g++.dg/lookup/extern-c-redecl[3,4] .C
        scan-assembler fails on darwin

Does this patch qualify as obvious ?

/bin/bash: call : commande introuvable
diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
index 00ff4a9..3f2fee2 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
@@ -1,8 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020
+// { dg-options "-O0" }
 // { dg-do compile }
-// { dg-final { scan-assembler-not "call\[\t \]+_Z4forkv" } }
-// { dg-final { scan-assembler "call\[\t \]+fork" } }
+// { dg-final { scan-assembler-not "call\[\t \]+_?_Z4forkv" { target i?86-*-*
x86_64-*-* } } }
+// { dg-final { scan-assembler "call\[\t \]+_?fork" { target i?86-*-*
x86_64-*-* } } }

 extern "C" int fork (void);

diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
index 9dfa54d..bbe625e 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
@@ -1,10 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020

-// Avoid the "-ansi -pedantic" option
-// { dg-options "" }
+// { dg-options "-O0" }
 // { dg-do compile }
-// { dg-final { scan-assembler "call\[\t \]+_Z4forkv" } }
+// { dg-final { scan-assembler "call\[\t \]+_?_Z4forkv" { target i?86-*-*
x86_64-*-* } } }

 class frok
 {


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2009-10-28 20:53 ` dodji at seketeli dot org
@ 2009-10-28 21:41 ` dominiq at lps dot ens dot fr
  2009-10-29  7:22 ` dodji at seketeli dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-10-28 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dominiq at lps dot ens dot fr  2009-10-28 21:41 -------
On i686-apple-darwin9, with the patch I get:

Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...
FAIL: g++.dg/lookup/extern-c-redecl4.C scan-assembler call[\t ]+_?_Z4forkv

                === g++ Summary for unix ===

# of expected passes            11
# of unexpected failures        1
Running target unix/-m64
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...

                === g++ Summary for unix/-m64 ===

# of expected passes            12

                === g++ Summary ===

# of expected passes            23
# of unexpected failures        1
/Volumes/MacBook/opt/gcc/i686-darwin/gcc/testsuite/g++/../../g++  version 4.5.0
20091028 (experimental) [trunk revision 153644p3d] (GCC) 

grepping the assembly file for ++.dg/lookup/extern-c-redecl4.C compiled with
-m32, I see

        call    L__Z4forkv$stub
        call    LPC$1

The failure disappears with the following patch:

--- ../_gcc_clean/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C       
2009-10-26 17:19:09.000000000 +0100
+++ gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C      2009-10-28
22:39:48.000000000 +0100
@@ -2,9 +2,9 @@
 // Origin: PR c++/41020

 // Avoid the "-ansi -pedantic" option
-// { dg-options "" }
+// { dg-options "-O0" }
 // { dg-do compile }
-// { dg-final { scan-assembler "call\[\t \]+_Z4forkv" } }
+// { dg-final { scan-assembler "call\[\t \]+L?_?_Z4forkv" { target i?86-*-*
x86_64-*-* } } }

 class frok
 {


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (3 preceding siblings ...)
  2009-10-28 21:41 ` dominiq at lps dot ens dot fr
@ 2009-10-29  7:22 ` dodji at seketeli dot org
  2009-10-29 14:36 ` dominiq at lps dot ens dot fr
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at seketeli dot org @ 2009-10-29  7:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dodji at seketeli dot org  2009-10-29 07:22 -------
Subject: Re:  g++.dg/lookup/extern-c-redecl[3,4] .C
        scan-assembler fails on darwin

Thanks for testing.

How about this one ?

diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
index 00ff4a9..117c6d1 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
@@ -1,8 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020
+// { dg-options "" }
 // { dg-do compile }
-// { dg-final { scan-assembler-not "call\[\t \]+_Z4forkv" } }
-// { dg-final { scan-assembler "call\[\t \]+fork" } }
+// { dg-final { scan-assembler-not "call\[\t \]+.*?_Z4forkv" { target i?86-*-*
x86_64-*-* } } }
+// { dg-final { scan-assembler "call\[\t \]+_?fork" { target i?86-*-*
x86_64-*-* } } }

 extern "C" int fork (void);

diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
index 9dfa54d..a4515fd 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
@@ -1,10 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020

-// Avoid the "-ansi -pedantic" option
 // { dg-options "" }
 // { dg-do compile }
-// { dg-final { scan-assembler "call\[\t \]+_Z4forkv" } }
+// { dg-final { scan-assembler "call\[\t \]+.*?_Z4forkv" { target i?86-*-*
x86_64-*-* } } }

 class frok
 {


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (4 preceding siblings ...)
  2009-10-29  7:22 ` dodji at seketeli dot org
@ 2009-10-29 14:36 ` dominiq at lps dot ens dot fr
  2009-10-29 17:09 ` dodji at seketeli dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-10-29 14:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dominiq at lps dot ens dot fr  2009-10-29 14:36 -------
Without test the part '.*?' in the rerexps seems odd. Why not '.*' only?  My
practice of regexp taught me that '.*' is asking for trouble and, when
possible, should be replaced by [^some pattern]*. Why not "call[^Z]*Z4forkv"
(not regtested, but it works when grepping the assembly)?


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (5 preceding siblings ...)
  2009-10-29 14:36 ` dominiq at lps dot ens dot fr
@ 2009-10-29 17:09 ` dodji at seketeli dot org
  2009-10-29 17:29 ` schwab at linux-m68k dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at seketeli dot org @ 2009-10-29 17:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dodji at seketeli dot org  2009-10-29 17:09 -------
Subject: Re:  g++.dg/lookup/extern-c-redecl[3,4] .C
        scan-assembler fails on darwin

> ------- Comment #6 from dominiq at lps dot ens dot fr  2009-10-29 14:36 -------
> Without test the part '.*?' in the rerexps seems odd. Why not '.*' only?
The '.*?' is the non greedy form of '.*'. If I put '.*' only, then '.*foo'
'.*' will match the foo coming after and that will not do what I want.


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (6 preceding siblings ...)
  2009-10-29 17:09 ` dodji at seketeli dot org
@ 2009-10-29 17:29 ` schwab at linux-m68k dot org
  2009-10-31 17:13 ` dominiq at lps dot ens dot fr
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: schwab at linux-m68k dot org @ 2009-10-29 17:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from schwab at linux-m68k dot org  2009-10-29 17:29 -------
(In reply to comment #7)
> The '.*?' is the non greedy form of '.*'. If I put '.*' only, then '.*foo'
> '.*' will match the foo coming after and that will not do what I want.

The nongreedy form will not prevent that.  You should never use '.*' because
'.' can match newline.


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (7 preceding siblings ...)
  2009-10-29 17:29 ` schwab at linux-m68k dot org
@ 2009-10-31 17:13 ` dominiq at lps dot ens dot fr
  2009-10-31 17:32 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-10-31 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from dominiq at lps dot ens dot fr  2009-10-31 17:13 -------
> The '.*?' is the non greedy form of '.*'.

I have learnt regexps at a time when this was not available on all regexp
engines, so I always forget such constructs.

I think pr41890 is a duplicate of this one.


-- 


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


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

* [Bug c++/41856] g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (8 preceding siblings ...)
  2009-10-31 17:13 ` dominiq at lps dot ens dot fr
@ 2009-10-31 17:32 ` hjl dot tools at gmail dot com
  2009-10-31 22:01 ` [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific danglin at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-10-31 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from hjl dot tools at gmail dot com  2009-10-31 17:31 -------
*** Bug 41890 has been marked as a duplicate of this bug. ***


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl dot tools at gmail dot
                   |                            |com


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (9 preceding siblings ...)
  2009-10-31 17:32 ` hjl dot tools at gmail dot com
@ 2009-10-31 22:01 ` danglin at gcc dot gnu dot org
  2009-11-02 20:20 ` dodji at redhat dot com
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-10-31 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from danglin at gcc dot gnu dot org  2009-10-31 22:00 -------
Also fail on hppa*-*-hpux*.


-- 

danglin at gcc dot gnu dot org changed:

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


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (10 preceding siblings ...)
  2009-10-31 22:01 ` [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific danglin at gcc dot gnu dot org
@ 2009-11-02 20:20 ` dodji at redhat dot com
  2009-11-02 21:21 ` dominiq at lps dot ens dot fr
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at redhat dot com @ 2009-11-02 20:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from dodji at gcc dot gnu dot org  2009-11-02 20:20 -------
Subject: Re:  g++.dg/lookup/extern-c-redecl[3,4] .C
        scan-assembler fails on darwin

Sorry for my late reply.
Could you please test this patch on darwin ?

Thanks.

diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
index 00ff4a9..56dcefa 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
@@ -1,8 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020
+// { dg-options "" }
 // { dg-do compile }
-// { dg-final { scan-assembler-not "call\[\t \]+_Z4forkv" } }
-// { dg-final { scan-assembler "call\[\t \]+fork" } }
+// { dg-final { scan-assembler-not "call\[\t \]+\[^\$\]*?_Z4forkv" { target
i?86-*-* x86_64-*-* } } }
+// { dg-final { scan-assembler "call\[\t \]+_?fork" { target i?86-*-*
x86_64-*-* } } }

 extern "C" int fork (void);

diff --git a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
index 9dfa54d..c385ea7 100644
--- a/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
+++ b/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C
@@ -1,10 +1,9 @@
 // Contributed by Dodji Seketeli <dodji@redhat.com>
 // Origin: PR c++/41020

-// Avoid the "-ansi -pedantic" option
 // { dg-options "" }
 // { dg-do compile }
-// { dg-final { scan-assembler "call\[\t \]+_Z4forkv" } }
+// { dg-final { scan-assembler "call\[\t \]+\[^\$\]*?_Z4forkv" { target
i?86-*-* x86_64-*-* } } }

 class frok
 {


-- 


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (11 preceding siblings ...)
  2009-11-02 20:20 ` dodji at redhat dot com
@ 2009-11-02 21:21 ` dominiq at lps dot ens dot fr
  2009-11-02 22:58 ` dodji at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-11-02 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from dominiq at lps dot ens dot fr  2009-11-02 21:21 -------
Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...

                === g++ Summary for unix ===

# of expected passes            12
Running target unix/-m64
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...

> Could you please test this patch on darwin ?

With the patch in comment#12 I get on i686-apple-darwin9:

make -k check-g++ RUNTESTFLAGS="dg.exp=lookup/extern-c-redecl*
--target_board=unix'{,-m64}'"

...
Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...

                === g++ Summary for unix ===

# of expected passes            12
Running target unix/-m64
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/gcc/testsuite/g++.dg/dg.exp ...

                === g++ Summary for unix/-m64 ===

# of expected passes            12

                === g++ Summary ===

# of expected passes            24
/Volumes/MacBook/opt/gcc/i686-darwin/gcc/testsuite/g++/../../g++  version 4.5.0
20091102 (experimental) [trunk revision 153817p1] (GCC) 


-- 


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (12 preceding siblings ...)
  2009-11-02 21:21 ` dominiq at lps dot ens dot fr
@ 2009-11-02 22:58 ` dodji at gcc dot gnu dot org
  2009-11-02 23:02 ` dodji at gcc dot gnu dot org
  2009-11-03 13:47 ` dodji at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-11-02 22:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from dodji at gcc dot gnu dot org  2009-11-02 22:58 -------
Subject: Bug 41856

Author: dodji
Date: Mon Nov  2 22:58:07 2009
New Revision: 153829

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153829
Log:
Fix PR c++/41856

        PR c++/41856
        * g++.dg/lookup/extern-c-redecl3.C: Make the test x86
        only.
        * g++.dg/lookup/extern-c-redecl4.C: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
    trunk/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C


-- 


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (13 preceding siblings ...)
  2009-11-02 22:58 ` dodji at gcc dot gnu dot org
@ 2009-11-02 23:02 ` dodji at gcc dot gnu dot org
  2009-11-03 13:47 ` dodji at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-11-02 23:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from dodji at gcc dot gnu dot org  2009-11-02 23:02 -------
Fixed in 4.5.


-- 

dodji at gcc dot gnu dot org changed:

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


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


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

* [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific
  2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
                   ` (14 preceding siblings ...)
  2009-11-02 23:02 ` dodji at gcc dot gnu dot org
@ 2009-11-03 13:47 ` dodji at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-11-03 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from dodji at gcc dot gnu dot org  2009-11-03 13:47 -------
Subject: Bug 41856

Author: dodji
Date: Tue Nov  3 13:46:46 2009
New Revision: 153851

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153851
Log:
Fix PR c++/41856

        PR c++/41856
        * g++.dg/lookup/extern-c-redecl3.C: Make the test x86 only.
        * g++.dg/lookup/extern-c-redecl4.C: Likewise.

Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C


-- 


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


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

end of thread, other threads:[~2009-11-03 13:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-28 13:17 [Bug c++/41856] New: g++.dg/lookup/extern-c-redecl[3,4] .C scan-assembler fails on darwin howarth at nitro dot med dot uc dot edu
2009-10-28 14:00 ` [Bug c++/41856] " jakub at gcc dot gnu dot org
2009-10-28 15:39 ` dodji at gcc dot gnu dot org
2009-10-28 20:53 ` dodji at seketeli dot org
2009-10-28 21:41 ` dominiq at lps dot ens dot fr
2009-10-29  7:22 ` dodji at seketeli dot org
2009-10-29 14:36 ` dominiq at lps dot ens dot fr
2009-10-29 17:09 ` dodji at seketeli dot org
2009-10-29 17:29 ` schwab at linux-m68k dot org
2009-10-31 17:13 ` dominiq at lps dot ens dot fr
2009-10-31 17:32 ` hjl dot tools at gmail dot com
2009-10-31 22:01 ` [Bug testsuite/41856] g++.dg/lookup/extern-c-redecl[3,4] .C should be target specific danglin at gcc dot gnu dot org
2009-11-02 20:20 ` dodji at redhat dot com
2009-11-02 21:21 ` dominiq at lps dot ens dot fr
2009-11-02 22:58 ` dodji at gcc dot gnu dot org
2009-11-02 23:02 ` dodji at gcc dot gnu dot org
2009-11-03 13:47 ` dodji at gcc dot gnu dot org

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