[Bug target/57118] New: g++.dg/debug/* tests fail on MIPS due to micromips checkin, scan-assembler pattern needs update

sje at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 29 20:36:00 GMT 2013


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

             Bug #: 57118
           Summary: g++.dg/debug/* tests fail on MIPS due to micromips
                    checkin, scan-assembler pattern needs update
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sje@gcc.gnu.org
                CC: clm@codesourcery.com
            Target: mips*-*-*


The micromips checkin changed the assembler output for MIPS by adding a '.set
nomicromips' psuedo-instruction to the instruction stream.  This is causing the
following tests to fail.  I think the fix is to update the scan pattern for
mips in gcc/testsuite/lib/scanasm.exp.  It looks for mips16/nomips16 but does
not check for micromips/nomicromips.

Tests that fail:

FAIL: g++.dg/debug/dwarf2/lineno-simple1.C -std=gnu++11  scan-assembler
\\t\\.loc [0-9]+ 13 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\tmain\\n\\t\\.type\\tmain,
@function\\nmain:\\n
FAIL: g++.dg/debug/dwarf2/lineno-simple1.C -std=gnu++11  scan-assembler
\\t\\.loc [0-9]+ 4 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN1CC[12]Ev\\n\\t\\.type\\t_ZN1CC[12]Ev,
@function\\n_ZN1CC[12]Ev:\\n
FAIL: g++.dg/debug/dwarf2/lineno-simple1.C -std=gnu++11  scan-assembler
\\t\\.loc [0-9]+ 7 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN1C3fooEv\\n\\t\\.type\\t_ZN1C3fooEv,
@function\\n_ZN1C3fooEv:\\n
FAIL: g++.dg/debug/dwarf2/lineno-simple1.C -std=gnu++98  scan-assembler
\\t\\.loc [0-9]+ 13 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\tmain\\n\\t\\.type\\tmain,
@function\\nmain:\\n
FAIL: g++.dg/debug/dwarf2/lineno-simple1.C -std=gnu++98  scan-assembler
\\t\\.loc [0-9]+ 4 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN1CC[12]Ev\\n\\t\\.type\\t_ZN1CC[12]Ev,
@function\\n_ZN1CC[12]Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr44641.C -std=gnu++11  scan-assembler \\t\\.loc
[0-9]+ 22 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN12MisplacedDbgI4FullEC[12]Ev\\n\\t\\.type\\t_ZN12MisplacedDbgI4FullEC[12]Ev,
@function\\n_ZN12MisplacedDbgI4FullEC[12]Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr44641.C -std=gnu++11  scan-assembler \\t\\.loc
[0-9]+ 22 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN12MisplacedDbgI4FullED0Ev\\n\\t\\.type\\t_ZN12MisplacedDbgI4FullED0Ev,
@function\\n_ZN12MisplacedDbgI4FullED0Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr44641.C -std=gnu++11  scan-assembler \\t\\.loc
[0-9]+ 29 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN12MisplacedDbgIP3ArgEC[12]Ev\\n\\t\\.type\\t_ZN12MisplacedDbgIP3ArgEC[12]Ev,
@function\\n_ZN12MisplacedDbgIP3ArgEC[12]Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr44641.C -std=gnu++98  scan-assembler \\t\\.loc
[0-9]+ 35 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN12MisplacedDbgI3ArgEC[12]Ev\\n\\t\\.type\\t_ZN12MisplacedDbgI3ArgEC[12]Ev,
@function\\n_ZN12MisplacedDbgI3ArgEC[12]Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr44641.C -std=gnu++98  scan-assembler \\t\\.loc
[0-9]+ 35 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN12MisplacedDbgI3ArgED0Ev\\n\\t\\.type\\t_ZN12MisplacedDbgI3ArgED0Ev,
@function\\n_ZN12MisplacedDbgI3ArgED0Ev:\\n
FAIL: g++.dg/debug/dwarf2/pr46527.C -std=gnu++11  scan-assembler \\t\\.loc
[0-9]+ 12 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN6StructIdE13defined_laterEv\\n\\t\\.type\\t_ZN6StructIdE13defined_laterEv,
@function\\n_ZN6StructIdE13defined_laterEv:\\n
FAIL: g++.dg/debug/dwarf2/pr46527.C -std=gnu++98  scan-assembler \\t\\.loc
[0-9]+ 12 0(
[^\\n]*)?\\n(\\t.cfi_startproc[^\\t]*\\n)*\\t\\.set\\t(no)?mips16\\n\\t\\.ent\\t_ZN6StructIdE13defined_laterEv\\n\\t\\.type\\t_ZN6StructIdE13defined_laterEv,
@function\\n_ZN6StructIdE13defined_laterEv:\\n



More information about the Gcc-bugs mailing list