This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/71750] New: Define _REENTRANT on Blackfin when -pthread is passed


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]