[PATCH][libstdc++-v3 parallel mode] Tackle further XXX todos

Johannes Singler singler@ira.uka.de
Mon Sep 28 15:00:00 GMT 2009


Okay, let's continue:

types.h  // XXX need to use <cstdint>
         // XXX numeric_limits::digits?

How do you like the attached patch?


Tested x86_64-unknown-linux-gnu: No regressions

Please approve for mainline.

2009-09-28  Johannes Singler  <singler@ira.uka.de>
        * include/parallel/base.h: Take integer types from
        <tr1/cstdint>.
        * include/parallel/compatibility.h: Likewise.
        * include/parallel/multiseq_selection.h: Likewise.
        * include/parallel/random_shuffle.h: Likewise.
        * include/parallel/random_number.h: Likewise;
        use numeric_limits<>::digit instead of sizeof()*8.
        * include/parallel/types.h: Likewise.



// XXX atomics interface?

Very good idea, but how do I bring it in?  Already

#include <cstdatomic>

or

#include <stdatomic.h>

make the compilation fail.  Is there any way to get access to the
functions without enabling the C++0x mode?  Hmm, declaring functions
volatile does not seem backwards-compatible.

Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdint_types.patch
Type: text/x-patch
Size: 13536 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090928/2702e6f9/attachment.bin>


More information about the Libstdc++ mailing list