[Darwin, machopic 10/n] Rework X86 mcount stub code.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 9 Nov 2019 13:43:04 +0000 (13:43 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 9 Nov 2019 13:43:04 +0000 (13:43 +0000)
commit95cc59f17b4f3f858879bd2fbc6bcf12a865a08c
tree785c75c7e4c096467b1c7996cac82892472ba8d0
parent038d7e1b199fcc480cf24e344e8c4030591de026
[Darwin, machopic 10/n] Rework X86 mcount stub code.

When a stub is used to call the mcount function, the code is already
marking it as used unconditionally;  This is the only use of the so-
called validation outside darwin.{h,c}.  This moves the 'validation'
into darwin.c which is a step towards making validation routine local.

gcc/

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

* config/darwin.c (machopic_mcount_stub_name): Validate the
symbol stub name when it is created.
* config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
stub validation.

From-SVN: r278000
gcc/ChangeLog
gcc/config/darwin.c
gcc/config/i386/darwin.h