Hi!
On 2020-05-26T04:08:44-0300, Alexandre Oliva <[email protected]> wrote:
> Thanks, here's the combined patch I'm checking in.
>
> revamp dump and aux output names
For BRIG (HSAIL) front end testing, I'm see a lot of failures like:
Running [...]/source-gcc/gcc/testsuite/brig.dg/dg.exp ...
PASS: brig.dg/test/gimple/variables.hsail (test for excess errors)
[-PASS:-]{+UNRESOLVED:+} variables.hsail.brig scan-tree-dump original
"__group_base_addr \\+ \\(0 \\+"
[-PASS:-]{+UNRESOLVED:+} variables.hsail.brig scan-tree-dump original
"__group_base_addr \\+ 0"
[-PASS:-]{+UNRESOLVED:+} variables.hsail.brig scan-tree-dump gimple "[
]*prog_global = s204;"
[-PASS:-]{+UNRESOLVED:+} variables.hsail.brig scan-tree-dump gimple
".module.mod_global;"
[...]
That's:
spawn -ignore SIGHUP [...]/build-gcc/gcc/xgcc -B[...]/build-gcc/gcc/
[...]/build-gcc/gcc/testsuite/brig/variables.hsail.brig -fdump-tree-gimple
-fdump-tree-original -S -o variables.s
PASS: brig.dg/test/gimple/variables.hsail (test for excess errors)
variables.hsail.brig: dump file does not exist
dump file: variables.hsail.brig.original
UNRESOLVED: variables.hsail.brig scan-tree-dump original "__group_base_addr
\\+ \\(0 \\+"
We're trying to scan 'variables.hsail.brig.*', but for input file name
'variables.hsail.brig', we're now creating:
$ ls -1 build-gcc/gcc/testsuite/brig/variables.*???t.*
build-gcc/gcc/testsuite/brig/variables.brig.004t.original
build-gcc/gcc/testsuite/brig/variables.brig.005t.gimple
Before your changes, GCC produced the expected:
$ ls -1 build-gcc/gcc/testsuite/brig/variables.*???t.*
build-gcc/gcc/testsuite/brig/variables.hsail.brig.004t.original
build-gcc/gcc/testsuite/brig/variables.hsail.brig.005t.gimple
Are you able to easily create a patch for that? How/where to adjust:
producer-side (GCC driver, or BRIG (HSAIL) front end?), or consumer-side
(testsuite: tree scanning machinery, or have to put some '-dumpbase' into
all test case files?)?
Grüße
Thomas
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander
Walter