darwin - use switch_to_section instead of asm output.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 18 May 2019 08:07:56 +0000 (08:07 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 18 May 2019 08:07:56 +0000 (08:07 +0000)
commitc141668376b558228712f643ec643c94765c5e6c
tree6153d78f96920a6902f05cfcf173300673a23053
parent7c17d420fc5deb379c19f05926e596e1c6c06194
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
gcc/ChangeLog
gcc/config/darwin.c