comparison gcc/opts-global.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Command line option handling. Code involving global state that 1 /* Command line option handling. Code involving global state that
2 should not be shared with the driver. 2 should not be shared with the driver.
3 Copyright (C) 2002-2017 Free Software Foundation, Inc. 3 Copyright (C) 2002-2018 Free Software Foundation, Inc.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free 8 the terms of the GNU General Public License as published by the Free
36 #include "toplev.h" 36 #include "toplev.h"
37 #include "context.h" 37 #include "context.h"
38 #include "stringpool.h" 38 #include "stringpool.h"
39 #include "attribs.h" 39 #include "attribs.h"
40 #include "asan.h" 40 #include "asan.h"
41 #include "file-prefix-map.h" /* add_*_prefix_map() */
41 42
42 typedef const char *const_char_p; /* For DEF_VEC_P. */ 43 typedef const char *const_char_p; /* For DEF_VEC_P. */
43 44
44 static vec<const_char_p> ignored_options; 45 static vec<const_char_p> ignored_options;
45 46
361 dbg_cnt_list_all_counters (); 362 dbg_cnt_list_all_counters ();
362 break; 363 break;
363 364
364 case OPT_fdebug_prefix_map_: 365 case OPT_fdebug_prefix_map_:
365 add_debug_prefix_map (opt->arg); 366 add_debug_prefix_map (opt->arg);
367 break;
368
369 case OPT_ffile_prefix_map_:
370 add_file_prefix_map (opt->arg);
366 break; 371 break;
367 372
368 case OPT_fdump_: 373 case OPT_fdump_:
369 if (!g->get_dumps ()->dump_switch_p (opt->arg)) 374 if (!g->get_dumps ()->dump_switch_p (opt->arg))
370 error ("unrecognized command line option %<-fdump-%s%>", opt->arg); 375 error ("unrecognized command line option %<-fdump-%s%>", opt->arg);