diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-05-18 08:07:56 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-05-18 08:07:56 +0000 |
commit | c141668376b558228712f643ec643c94765c5e6c (patch) | |
tree | 6153d78f96920a6902f05cfcf173300673a23053 /gcc | |
parent | 7c17d420fc5deb379c19f05926e596e1c6c06194 (diff) | |
download | gcc-c141668376b558228712f643ec643c94765c5e6c.zip gcc-c141668376b558228712f643ec643c94765c5e6c.tar.gz gcc-c141668376b558228712f643ec643c94765c5e6c.tar.bz2 |
darwin - use switch_to_section instead of asm output.
We have been emitting two section swiches in the Darwin's
file end function. This means that varasm is not updated
which could matter if we elect to reorder some of the file
end operations in support of LTO actions.
2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
* config/darwin.c (darwin_file_end): Use switch_to_section ()
instead of direct output of the asm.
From-SVN: r271369
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d27fff..260724a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-18 Iain Sandoe <iain@sandoe.co.uk> + + * config/darwin.c (darwin_file_end): Use switch_to_section () + instead of direct output of the asm. + 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org> * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index f62f1c7..17e1801 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -2939,12 +2939,10 @@ darwin_file_end (void) if (flag_objc_abi >= 2) { flags = 16; - output_section_asm_op - (darwin_sections[objc2_image_info_section]->unnamed.data); + switch_to_section (darwin_sections[objc2_image_info_section]); } else - output_section_asm_op - (darwin_sections[objc_image_info_section]->unnamed.data); + switch_to_section (darwin_sections[objc_image_info_section]); ASM_OUTPUT_ALIGN (asm_out_file, 2); fputs ("L_OBJC_ImageInfo:\n", asm_out_file); |