| rjw | 91288f9 | 2022-11-01 13:59:36 +0800 | [diff] [blame^] | 1 | From ddddc7335539fb8a6d30beba21781762df159186 Mon Sep 17 00:00:00 2001 | 
 | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 
 | 3 | Date: Wed, 16 Mar 2016 05:39:59 -0400 | 
 | 4 | Subject: [PATCH 42/47] Reuse -fdebug-prefix-map to replace -ffile-prefix-map | 
 | 5 |  | 
 | 6 | The oe-core may use external toolchain to compile, | 
 | 7 | which may not support -ffile-prefix-map. | 
 | 8 |  | 
 | 9 | Since we use -fdebug-prefix-map to do the same thing, | 
 | 10 | so we could reuse it to replace -ffile-prefix-map. | 
 | 11 |  | 
 | 12 | Upstream-Status: Inappropriate[oe-core specific] | 
 | 13 |  | 
 | 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 
 | 15 | --- | 
 | 16 |  gcc/opts-global.c | 4 ++++ | 
 | 17 |  1 file changed, 4 insertions(+) | 
 | 18 |  | 
 | 19 | diff --git a/gcc/opts-global.c b/gcc/opts-global.c | 
 | 20 | index 50bad77c347..32b1d286721 100644 | 
 | 21 | --- a/gcc/opts-global.c | 
 | 22 | +++ b/gcc/opts-global.c | 
 | 23 | @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3.  If not see | 
 | 24 |  #include "langhooks.h" | 
 | 25 |  #include "dbgcnt.h" | 
 | 26 |  #include "debug.h" | 
 | 27 | +#include "file-map.h" | 
 | 28 |  #include "output.h" | 
 | 29 |  #include "plugin.h" | 
 | 30 |  #include "toplev.h" | 
 | 31 | @@ -357,6 +358,9 @@ handle_common_deferred_options (void) | 
 | 32 |   | 
 | 33 |  	case OPT_fdebug_prefix_map_: | 
 | 34 |  	  add_debug_prefix_map (opt->arg); | 
 | 35 | + | 
 | 36 | +	  /* Reuse -fdebug-prefix-map to replace -ffile-prefix-map */ | 
 | 37 | +	  add_file_prefix_map (opt->arg); | 
 | 38 |  	  break; | 
 | 39 |   | 
 | 40 |  	case OPT_fdump_: | 
 | 41 | --  | 
 | 42 | 2.12.2 | 
 | 43 |  |