]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Darwin, Objective-C] Switch Objective-C meta-data sections properly.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 3 Sep 2019 19:13:23 +0000 (19:13 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 3 Sep 2019 19:13:23 +0000 (19:13 +0000)
commit825c1d10fa2314bc86a0ce01b0b1ad587ef451c2
tree28ec8593e7b8035222e58e07bef12f3176aa48cd
parentde935e9c93236d42be620fde0ba39b74097281a8
[Darwin, Objective-C] Switch Objective-C meta-data sections properly.

We were emitting the directives to switch, but not recording the change
in varasm. This means that subsequent switches might be omitted (since
varasm incorrectly concludes that the wrong section is current).

2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
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: r275349
gcc/ChangeLog
gcc/config/darwin.c