[PATCH] gcc/final.c: -fdebug-prefix-map support to remap sources with relative path

Joseph Myers joseph@codesourcery.com
Wed Mar 30 18:08:00 GMT 2016


On Sun, 27 Mar 2016, Hongxu Jia wrote:

> PR other/70428
> * final.c (remap_debug_filename): Use lrealpath to translate
> relative path before remapping

I think this would break cases that currently work.  When using 
-fdebug-prefix-map you should understand what paths will appear in debug 
info (which means understanding something about how a path gets split by 
DWARF into multiple pieces), and likely inspect the resulting debug info 
(in an automated way) to see if you missed any paths and need to add more 
such options.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list