[C++ PATCH] Feature macros are long

Nathan Sidwell nathan@acm.org
Wed Oct 30 16:36:00 GMT 2019


As discussed on IRC, this adds an L suffix to C++ feature macros, as 
specified by the std.  I'd forgotten that in preprocessor-land, 
expressions are evaluated as longs anyway, but the user might be trying 
to printf these constants, or similar, where the type suffix is significant.

Jakub, Thomas:
     cpp_define (pfile, "_OPENACC=201306");
     cpp_define (pfile, "_OPENMP=201511");
those two macros might need suffixing too, but I don't have a std handy.

nathan
-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmac.diff
Type: text/x-patch
Size: 10298 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191030/726fb6ea/attachment.bin>


More information about the Gcc-patches mailing list