This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71750] New: Define _REENTRANT on Blackfin when -pthread is passed
- From: "thomas dot petazzoni at free-electrons dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Jul 2016 08:50:34 +0000
- Subject: [Bug target/71750] New: Define _REENTRANT on Blackfin when -pthread is passed
- Auto-submitted: auto-generated
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: thomas.petazzoni@free-electrons.com
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.