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: unassig...@gcc.gnu.org

        ReportedBy: s...@gcc.gnu.org

                CC: c...@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

Reply via email to