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 libstdc++/64203] shared_mutex compile errors on bare-metal targets


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64203

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #34208|0                           |1
        is obsolete|                            |

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 34210
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34210&action=edit
fix config macros for shared_lock

(In reply to Sandra Loosemore from comment #2)
> FAOD it looks like on this target _GLIBCXX_USE_C99_STDINT_TR1 is defined but
> _GLIBCXX_HAS_GTHREADS is not.

Right, which means that defer_lock_t etc should be defined, but my patch was
incomplete and <shared_mutex> didn't include <mutex> to get those definitions.

How's this one?


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