]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Darwin, machopic 9/n] Minor code clean-ups.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Oct 2019 19:18:34 +0000 (19:18 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Oct 2019 19:18:34 +0000 (19:18 +0000)
commita8bf45f436ead5d31db39e9a9578429524d70a2f
treed8ab9e4b04ab77f54f84a5a831ff9147a9cb3eca
parentbbcdad768752f5cab6727242515bcd15706acbea
[Darwin, machopic 9/n] Minor code clean-ups.

Improve some comments, replace some asserts that have been in the code
base for years with checking-asserts.

gcc/ChangeLog:

2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c: Use unsigned ints for the picbase label
counters, initialise the vars explicitly.
(update_pic_label_number_if_needed): Move a variable declaration
to where it's needed.
(machopic_output_function_base_name): Use a more strict checking
assert, and and unsigned int for the picbase label counter.
(machopic_get_function_picbase): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276967 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/darwin.c