Commit c1416683 by Iain Sandoe Committed by Iain Sandoe

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
parent 7c17d420
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> 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.c (restore_saved_cr): Change a boolean * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
......
...@@ -2939,12 +2939,10 @@ darwin_file_end (void) ...@@ -2939,12 +2939,10 @@ darwin_file_end (void)
if (flag_objc_abi >= 2) if (flag_objc_abi >= 2)
{ {
flags = 16; flags = 16;
output_section_asm_op switch_to_section (darwin_sections[objc2_image_info_section]);
(darwin_sections[objc2_image_info_section]->unnamed.data);
} }
else else
output_section_asm_op switch_to_section (darwin_sections[objc_image_info_section]);
(darwin_sections[objc_image_info_section]->unnamed.data);
ASM_OUTPUT_ALIGN (asm_out_file, 2); ASM_OUTPUT_ALIGN (asm_out_file, 2);
fputs ("L_OBJC_ImageInfo:\n", asm_out_file); fputs ("L_OBJC_ImageInfo:\n", asm_out_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment