diff options
author | Richard Biener <rguenther@suse.de> | 2018-03-02 07:42:58 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-03-02 07:42:58 +0000 |
commit | 2ebb413bb0f3c0794e7ec109d558860f386212cc (patch) | |
tree | 7c68c7f466fafdbded86bfd9373a73f2d7e504cd /gcc | |
parent | e688c1ddef2462da3b0dc86e0ecdab87c77a6829 (diff) | |
download | gcc-2ebb413bb0f3c0794e7ec109d558860f386212cc.zip gcc-2ebb413bb0f3c0794e7ec109d558860f386212cc.tar.gz gcc-2ebb413bb0f3c0794e7ec109d558860f386212cc.tar.bz2 |
re PR target/82005 (Early lto debug not implemented on Darwin)
2018-03-02 Richard Biener <rguenther@suse.de>
PR target/82005
* config/darwin.c (saved_debug_info_level): New static global.
(darwin_asm_lto_start): Disable debug info generation for LTO out.
(darwin_asm_lto_end): Restore debug info generation settings.
From-SVN: r258123
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/darwin.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff97b4b..1b06b3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-03-02 Richard Biener <rguenther@suse.de> + + PR target/82005 + * config/darwin.c (saved_debug_info_level): New static global. + (darwin_asm_lto_start): Disable debug info generation for LTO out. + (darwin_asm_lto_end): Restore debug info generation settings. + 2018-03-01 Martin Liska <mliska@suse.cz> PR sanitizer/82484 diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 8dc2b9d..3a08aea 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1933,6 +1933,7 @@ static GTY (()) vec<darwin_lto_section_e, va_gc> *lto_section_names; in darwin_end_file. */ static FILE *lto_asm_out_file, *saved_asm_out_file; static char *lto_asm_out_name; +static enum debug_info_levels saved_debug_info_level; /* Prepare asm_out_file for LTO output. For darwin, this means hiding asm_out_file and switching to an alternative output file. */ @@ -1941,6 +1942,8 @@ darwin_asm_lto_start (void) { gcc_assert (! saved_asm_out_file); saved_asm_out_file = asm_out_file; + saved_debug_info_level = debug_info_level; + debug_info_level = DINFO_LEVEL_NONE; if (! lto_asm_out_name) lto_asm_out_name = make_temp_file (".lto.s"); lto_asm_out_file = fopen (lto_asm_out_name, "a"); @@ -1959,6 +1962,7 @@ darwin_asm_lto_end (void) fclose (lto_asm_out_file); asm_out_file = saved_asm_out_file; saved_asm_out_file = NULL; + debug_info_level = saved_debug_info_level; } static void |