https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71750
Bug ID: 71750
Summary: Define _REENTRANT on Blackfin when -pthread is passed
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Created attachment 38828
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38828&action=edit
Patch that defines _REENTRANT on Blackfin when -pthread is passed
When -pthread is passed, gcc should define _REENTRANT to make the C library use
reentrant version of various functions, and also because userspace code
sometimes checks _REENTRANT to decide if thread support is available or not
(see ax_pthread.m4 in autoconf-archive).
The attached patch makes sure _REENTRANT gets defined on Blackfin when -pthread
is specified.