Since add_debug_regex_map is used in opts-global.c unconditionally, we can't

disable the code with #ifndef __NetBSD__ because it breaks cross-building.
This commit is contained in:
christos 2019-10-23 18:55:36 +00:00
parent 1c5b1926dd
commit ad28d61a37

View File

@ -123,7 +123,8 @@ remap_macro_filename (const char *filename)
return remap_filename (macro_prefix_maps, filename);
}
#ifndef __NetBSD__
/* Original GCC version disabled. The NetBSD version handles regex */
#if 0
/* Remap using -fdebug-prefix-map. Return the GC-allocated new name
corresponding to FILENAME or FILENAME if no remapping was performed. */
const char *
@ -131,7 +132,12 @@ remap_debug_filename (const char *filename)
{
return remap_filename (debug_prefix_maps, filename);
}
#else
#endif
/*****
***** The following code is a NetBSD extension that allows regex and
***** \[0-9] substitutition arguments.
*****/
/* Perform user-specified mapping of debug filename prefixes. Return
the new name corresponding to FILENAME. */
@ -238,4 +244,3 @@ remap_debug_filename (const char *filename)
{
return remap_debug_regex_filename (remap_debug_prefix_filename (filename));
}
#endif