===================================================================
@@ -1528,7 +1528,7 @@ add_debug_prefix_map (const char *arg)
debug_prefix_map *map;
const char *p;
- p = strchr (arg, '=');
+ p = strrchr (arg, '=');
if (!p)
{
error ("invalid value %qs for debug-prefix-map", arg);
===================================================================
@@ -26233,8 +26233,8 @@ output by higher-level build processes.
The form and behaviour is similar to @option{-fdebug-prefix-map}. That
is, the value of @env{SOURCE_PREFIX_MAP} must be of the form
-@samp{@var{old}=@var{new}}. The split occurs on the first @code{=}
-character, so that @var{old} cannot itself contain a @code{=}.
+@samp{@var{old}=@var{new}}. The split occurs on the last @code{=}
+character, so that @var{new} cannot itself contain a @code{=}.
Whenever an absolute source- or build-related filepath is to be emitted
in a final end-result output, GCC will replace @var{old} with @var{new}