This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

recent MIPS mdebug-related changes cause gcc testsuitefailures.


FYI:

It looks like the recent MIPS mdebug-related changes cause gcc testuite
(specifically, g++.dg/debug) failures.  E.g., see the g++ test .log
file output below.

It looks like -gcoff1 doesn't produce a message which matches:

        if { ! [string match "*: unknown or unsupported -g option*" \
                $comp_output] } {

so the tests try to run that combination of options, and fail.


Not really sure what the right thing to do is.  maybe turn on mdebug
if people ask of -gcoff?  hmm, looks like in the current compiler,
subtarget_asm_debugging_spec is:

*subtarget_asm_debugging_spec:
%{g} %{g0} %{g1} %{g2} %{g3} %{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} %{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}

Doesn't look like that flag will be passed unmolested to the
assembler.  "-mdebug" would have to be passed in via the specs, it
seems...


Thoughts?


chris
==============================================================================
Testing debug/const1.C, -gcoff1
Executing on host: /projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/gcc/testsuite/../g++ -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/gcc/testsuite/../ /home/cgd/proj/gcc-testing/combined/gcc/testsuite/g++.dg/debug/const1.C  -nostdinc++ -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/libstdc++-v3/include/mips-elf -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/libstdc++-v3/include -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/libsupc++ -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/libio -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/include/backward -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/testsuite -fmessage-length=0 -gcoff1 -O    -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib/targ-include -I/home/cgd/proj/gcc-testing/combined/newlib/libc/include -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libgloss/mips/ -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libgloss/mips -L/home/cgd/proj/gcc-testing/combined/libgloss/mips -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/ld -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib/ -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib   -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libstdc++-v3/src/.libs -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libiberty  -lm -Wl,-Tidt.ld  -o const1.exe    (timeout = 300)
spawn /projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/gcc/testsuite/../g++ -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/gcc/testsuite/../ /home/cgd/proj/gcc-testing/combined/gcc/testsuite/g++.dg/debug/const1.C -nostdinc++ -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/libstdc++-v3/include/mips-elf -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/libstdc++-v3/include -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/libsupc++ -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/libio -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/include/backward -I/home/cgd/proj/gcc-testing/combined/libstdc++-v3/testsuite -fmessage-length=0 -gcoff1 -O -I/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib/targ-include -I/home/cgd/proj/gcc-testing/combined/newlib/libc/include -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libgloss/mips/ -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libgloss/mips -L/home/cgd/proj/gcc-testing/combined/libgloss/mips -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/ld -B/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib/ -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./newlib -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libstdc++-v3/src/.libs -L/projects/bbp_ext7/systems/cgd/proj/gcc-testing/work/mips-elf.build/mips-elf/./libiberty -lm -Wl,-Tidt.ld -o const1.exe 
/tmp/ccsKQGo8.s: Assembler messages:
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.def'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.val'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.scl'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.etype'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.endef'
compiler exited with status 1
output is:
/tmp/ccsKQGo8.s: Assembler messages:
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.def'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.val'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.scl'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.etype'
/tmp/ccsKQGo8.s:7: Error: unknown pseudo-op: `.endef'

FAIL: g++.dg/debug/const1.C (test for excess errors)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]