This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: [testsuite] darwin leftover .dSYM dirs in the testsuite ?


Hi Bernhard,

Thanks for the "Not a patch!". I have started to play with it.
In order to get something working I had to add

    rename standard_file ""
    rename saved-standard_file standard_file

at the end of the proc remove-build-dir, otherwise I had only errors

ERROR: gcc.c-torture/compile/20000105-2.c  -O3 -g : error executing dg-final: can't rename to "saved-standard_file": command already exists

I don't have any idea of the impact of this kludge on the time
taken by the test (I'll try to figure out that later).

AFAICT the number of *.dSYM directories for gcc is reduced from
over 1400 to less than 270, not too bad, but not perfect;-)
This may due to several errors I see. They are of two classes:

...
ERROR: gcc.dg/20040813-1.c: error executing dg-final: scan-assembler: too many arguments
ERROR: gcc.dg/20060410.c: error executing dg-final: scan-assembler: too many arguments
...
ERROR: c-c++-common/gomp/atomic-12.c: error executing dg-final: wrong # args: should be "cleanup-tree-dump suffix"
ERROR: c-c++-common/gomp/atomic-13.c: error executing dg-final: wrong # args: should be "cleanup-tree-dump suffix"
...

and

...
Running /opt/gcc/work/gcc/testsuite/gcc.dg/torture/tls/tls.exp ...
ERROR: tcl error sourcing /opt/gcc/work/gcc/testsuite/gcc.dg/torture/tls/tls.exp.
ERROR: torture-init: torture_without_loops is not empty as expected
    while executing
"error "torture-init: torture_without_loops is not empty as expected""
    invoked from within
"if [info exists torture_without_loops] {
	error "torture-init: torture_without_loops is not empty as expected"
    }"
    (procedure "torture-init" line 4)
    invoked from within
"torture-init"
    (file "/opt/gcc/work/gcc/testsuite/gcc.dg/torture/tls/tls.exp" line 48)
    invoked from within
"source /opt/gcc/work/gcc/testsuite/gcc.dg/torture/tls/tls.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /opt/gcc/work/gcc/testsuite/gcc.dg/torture/tls/tls.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
...

Although my Tcl is a little bit rusty, I think I can debug the first kind of errors.
The second kind will require to understand why torture_without_loops is not
empty, hence some of the dejagnu machinery.

Before starting debugging, I wonder if it would not be simpler to execute a
"rm -rf *.sYM" in the *.lof directories at the end of each test class (gcc, g++, ...).

Cheers,

Dominique


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