[Bug driver/82806] New: Stabilize paths in assembler and dumps

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 25 06:24:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82806

            Bug ID: 82806
           Summary: Stabilize paths in assembler and dumps
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Recently I've run  into the following issues:

1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82415 "Bug 82415 - FAIL:
gcc.target/i386/naked-1.c scan-assembler-not ret".
I build and tested gcc in a directory with "ret" in the path, and an assembler
scan triggered on that.

2. https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00055.html.
I build and tested gcc in a directory with "while" in the path, and a tree-dump
scan triggered on that.

I wonder if we can add a gcc option -fstrip-path[=<string>] that strips (or
replaces with a constant string) paths in compiler output such as dumps and
assembler.

By using by default fstrip-path="stripped-path" or some such in the testsuite,
we can stabilize compiler output and reduce noise in the testsuite.

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
3. https://gcc.gnu.org/ml/gcc-patches/2018-03/msg01357.html
vrp104.c scan-tree-dump-times "switch"
I build and tested gcc in a directory with switch in the path, and an tree-dump
scan triggered on that.


More information about the Gcc-bugs mailing list