c-family: Fix bootstrap for targets defining TARGET_FORMAT_TYPES.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 2 Oct 2021 08:19:24 +0000 (09:19 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 2 Oct 2021 08:19:24 +0000 (09:19 +0100)
commitfc0beded58a909d6bcdc4af669d89341cdd601c3
treee90d39f91e4dbc88de26ca816fefcd20d2e367d2
parent5f0285418940577142b3891d756f7de767bfc537
c-family: Fix bootstrap for targets defining TARGET_FORMAT_TYPES.

A recent improvement in Waddress causes a bootstrap failure on
targets that define TARGET_FORMAT_TYPES since it cannot be NULL
if defined to an address.

There is no default for this target macro, and it would seem no
purpose to defining it to NULL, so the warning appears reasonable.

Fixed by removing the pointless test.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/c-family/ChangeLog:

* c-format.c: Remove a test of TARGET_FORMAT_TYPES with
NULL, this is not needed.
gcc/c-family/c-format.c