Mercurial > hg > CbC > CbC_gcc
diff gcc/lto-opts.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/lto-opts.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/lto-opts.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ /* LTO IL options. - Copyright (C) 2009-2018 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. Contributed by Simon Baldwin <simonb@google.com> This file is part of GCC. @@ -65,7 +65,7 @@ char *args; bool first_p = true; - section_name = lto_get_section_name (LTO_section_opts, NULL, NULL); + section_name = lto_get_section_name (LTO_section_opts, NULL, 0, NULL); lto_begin_section (section_name, false); obstack_init (&temporary_obstack); @@ -94,6 +94,10 @@ : "-fno-pie"); } + /* If debug info is enabled append -g. */ + if (debug_info_level > DINFO_LEVEL_NONE) + append_to_collect_gcc_options (&temporary_obstack, &first_p, "-g"); + /* Append options from target hook and store them to offload_lto section. */ if (lto_stream_offload_p) { @@ -122,7 +126,7 @@ case OPT_dumpbase: case OPT_SPECIAL_unknown: case OPT_SPECIAL_ignore: - case OPT_SPECIAL_deprecated: + case OPT_SPECIAL_warn_removed: case OPT_SPECIAL_program_name: case OPT_SPECIAL_input_file: case OPT_dumpdir: