Darwin : Avoid a C++ ODR violation seen with LTO.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 22 Nov 2020 11:19:32 +0000 (11:19 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 22 Nov 2020 12:56:20 +0000 (12:56 +0000)
commit3c52cd517a34b6b37eb17d4defd63bb31e60888b
treef7411892abebdc254d75d4de7046e3c4a12cebef
parent7a97e2fcf7ca91b77686373ebfb2263a28885570
Darwin : Avoid a C++ ODR violation seen with LTO.

We have a similar code pattern in darwin-c.c to one in c-pragmas
(most likely a cut & paste) with a struct type used locally to the
TU.  With C++ we need to rename the type to avoid an ODR violation.

gcc/ChangeLog:

* config/darwin-c.c (struct f_align_stack): Rename
to type from align_stack to f_align_stack.
(push_field_alignment): Likewise.
(pop_field_alignment): Likewise.
gcc/config/darwin-c.c