This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: [PATCH][gold] compiling gold with libc++ and __stl_hash_string


> That's not the right fix.  That code should only be used if gold is
> using <ext/hash_map>, which is a fall back for older compilers.
> Currently gold prefers <tr1/unordered_map>.  I think we need to add a
> case to configure.ac and system.h to use <unordered_map> if it is
> available, as I assume it is for libc++.

Ian, does the attached patch look OK?

Would we want to turn on C++11 at some point? I believe we get
<unordered_map> in G++ if we turn on --std=c++11.

-cary


2013-12-18  Cary Coutant  <ccoutant@google.com>

gold/
        * configure.ac: Check for <unordered_set> and <unordered_map>.
        * config.in: Regenerate.
        * configure: Regenerate.
        * system.h: Use <unordered_set> and <unordered_map> if available.

Attachment: config-patch.txt
Description: Text document


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