gcc: define _REENTRANT for OpenRISC when -pthread is passed
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 27 Mar 2020 20:23:53 +0000 (21:23 +0100)
committerStafford Horne <shorne@gmail.com>
Wed, 2 Feb 2022 11:02:59 +0000 (20:02 +0900)
commitcac2f69cdad434ad5cb60f5fe931d45cd82ef476
tree293e1591c216ab62e008e6dbc1871d7e35951e7f
parent9f6f411f63f3aceddd846e4b0d27202a6e13d42c
gcc: define _REENTRANT for OpenRISC when -pthread is passed

The detection of pthread support fails on OpenRISC unless _REENTRANT
is defined. Added the CPP_SPEC definition to correct this.

gcc/ChangeLog:

PR target/94372
* config/or1k/linux.h (CPP_SPEC): Define.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
gcc/config/or1k/linux.h