public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
@ 2011-08-13 15:29 dominiq at lps dot ens.fr
  2011-09-15 11:18 ` [Bug testsuite/50076] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-13 15:29 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50076
           Summary: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler
                    movl.*, var on x86_64-apple-darwin10
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: aldyh@gcc.gnu.org
              Host: x86_64-apple-darwin10
            Target: x86_64-apple-darwin10
             Build: x86_64-apple-darwin10


scan-assembler for c-c++-common/cxxbitfields-3.c fails on
x86_64-apple-darwin10. The assembly is

    .text
    .align 4,0x90
    .globl _setit
_setit:
LFB0:
    movq    _var@GOTPCREL(%rip), %rdx
    movl    (%rdx), %eax
    andb    $15, %al
    orl    $80, %eax
    movl    %eax, (%rdx)
    ret
LFE0:
    .comm    _var,4,2
    .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
EH_frame1:
    .set L$set$0,LECIE1-LSCIE1
    .long L$set$0
LSCIE1:
    .long    0
    .byte    0x1
    .ascii "zR\0"
    .byte    0x1
    .byte    0x78
    .byte    0x10
    .byte    0x1
    .byte    0x10
    .byte    0xc
    .byte    0x7
    .byte    0x8
    .byte    0x90
    .byte    0x1
    .align 3
LECIE1:
LSFDE1:
    .set L$set$1,LEFDE1-LASFDE1
    .long L$set$1
LASFDE1:
    .long    LASFDE1-EH_frame1
    .quad    LFB0-.
    .set L$set$2,LFE0-LFB0
    .quad L$set$2
    .byte    0
    .align 3
LEFDE1:
    .subsections_via_symbols

The test has been introduced in revision 176824 and probably never succeeded. I
cannot tell if the test should be updated for darwin or if it is a bug in the
compiler.


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
@ 2011-09-15 11:18 ` dominiq at lps dot ens.fr
  2011-09-19 16:10 ` aldyh at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-09-15 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-09-15 11:16:14 UTC ---
Could someone look at this pr and decide if the code

    movq    _var@GOTPCREL(%rip), %rdx
    movl    (%rdx), %eax

is buggy (in this case I cannot help) or if the dg-final has to be adjusted for
darwin (then I can try to find a suitable regexp).


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
  2011-09-15 11:18 ` [Bug testsuite/50076] " dominiq at lps dot ens.fr
@ 2011-09-19 16:10 ` aldyh at gcc dot gnu.org
  2011-11-29 10:52 ` dominiq at lps dot ens.fr
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-09-19 16:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-09-19 15:37:37 UTC ---
I will be contributing a testing harness that is back-end agnostic, so it won't
depend on scanning the assembly.  Stay tuned.


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
  2011-09-15 11:18 ` [Bug testsuite/50076] " dominiq at lps dot ens.fr
  2011-09-19 16:10 ` aldyh at gcc dot gnu.org
@ 2011-11-29 10:52 ` dominiq at lps dot ens.fr
  2011-12-09 18:12 ` aldyh at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-11-29 10:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-11-29 10:35:48 UTC ---
> I will be contributing a testing harness that is back-end agnostic, so it won't
> depend on scanning the assembly.  Stay tuned.

Any progress in this direction?


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2011-11-29 10:52 ` dominiq at lps dot ens.fr
@ 2011-12-09 18:12 ` aldyh at gcc dot gnu.org
  2012-01-28 14:12 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-09 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-09
         AssignedTo|unassigned at gcc dot       |aldyh at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-09 17:38:53 UTC ---
Proposed fix:
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00708.html


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2011-12-09 18:12 ` aldyh at gcc dot gnu.org
@ 2012-01-28 14:12 ` dominiq at lps dot ens.fr
  2012-02-12 15:21 ` iains at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-01-28 14:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-28 11:54:51 UTC ---
> Proposed fix:
> http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00708.html

A "stronger" fix has been proposed at
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00895.html and approved at
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00897.html . Could it be applied?
TIA.


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
                   ` (4 preceding siblings ...)
  2012-01-28 14:12 ` dominiq at lps dot ens.fr
@ 2012-02-12 15:21 ` iains at gcc dot gnu.org
  2012-02-12 15:22 ` iains at gcc dot gnu.org
  2012-02-12 23:03 ` howarth at nitro dot med.uc.edu
  7 siblings, 0 replies; 9+ messages in thread
From: iains at gcc dot gnu.org @ 2012-02-12 15:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> 2012-02-12 15:20:50 UTC ---
Author: iains
Date: Sun Feb 12 15:20:46 2012
New Revision: 184140

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184140
Log:

gcc/testsuite:

    PR testsuite/50076
    * c-c++-common/cxxbitfields-3.c: Adjust scan assembler for nonpic
    cases.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/cxxbitfields-3.c


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
                   ` (5 preceding siblings ...)
  2012-02-12 15:21 ` iains at gcc dot gnu.org
@ 2012-02-12 15:22 ` iains at gcc dot gnu.org
  2012-02-12 23:03 ` howarth at nitro dot med.uc.edu
  7 siblings, 0 replies; 9+ messages in thread
From: iains at gcc dot gnu.org @ 2012-02-12 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> 2012-02-12 15:22:08 UTC ---
sorry it took so long to apply the fix .. assuming this to be fixed now.


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

* [Bug testsuite/50076] FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10
  2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
                   ` (6 preceding siblings ...)
  2012-02-12 15:22 ` iains at gcc dot gnu.org
@ 2012-02-12 23:03 ` howarth at nitro dot med.uc.edu
  7 siblings, 0 replies; 9+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-02-12 23:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #8 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-02-12 23:02:59 UTC ---
I can confirm that r184140 fixes the c-c++-common/cxxbitfields-3.c failures on
x86_64-apple-darwin11.


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

end of thread, other threads:[~2012-02-12 23:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-13 15:29 [Bug testsuite/50076] New: FAIL: c-c++-common/cxxbitfields-3.c scan-assembler movl.*, var on x86_64-apple-darwin10 dominiq at lps dot ens.fr
2011-09-15 11:18 ` [Bug testsuite/50076] " dominiq at lps dot ens.fr
2011-09-19 16:10 ` aldyh at gcc dot gnu.org
2011-11-29 10:52 ` dominiq at lps dot ens.fr
2011-12-09 18:12 ` aldyh at gcc dot gnu.org
2012-01-28 14:12 ` dominiq at lps dot ens.fr
2012-02-12 15:21 ` iains at gcc dot gnu.org
2012-02-12 15:22 ` iains at gcc dot gnu.org
2012-02-12 23:03 ` howarth at nitro dot med.uc.edu

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