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

            Bug ID: 93371
           Summary: -ffile-prefix-map ignored with assembly files
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: comexk at gmail dot com
  Target Milestone: ---

When using the GCC frontend to invoke GNU as, GCC passes through
-fdebug-prefix-map (as --debug-prefix-map), but ignores -ffile-prefix-map. 
-ffile-prefix-map is supposed to be "equivalent to specifying all the
individual -f*-prefix-map options."

Most likely, GCC should be changed to pass --debug-prefix-map to as when the
driver is passed -ffile-prefix-map (specifically in the definition of ASM_MAP
in gcc/gcc.c).  An alternative might be to add a --file-prefix-map option to
GNU as and pass that instead; however, the only other type of prefix map is
-fmacro-prefix-map, and that doesn't apply to raw as.

Reply via email to