[llvm-commits] [commit-after-approval] c94 define __STDC_VERSION__

Ryan Flynn parseerror at gmail.com
Mon Jul 20 16:15:34 PDT 2009


match gcc behavior by defining preprocessor token
__STDC__VERSION=199409L if given -std=iso9899:199409

before:
$ echo "" | gcc -dM -E -std=iso9899:199409 - | grep STDC
#define __STDC_HOSTED__ 1
#define __STDC_VERSION__ 199409L

$ echo "" | clang-cc -dM -E -std=iso9899:199409 | grep STDC
#define __STDC_HOSTED__ 1
#define __STDC__ 1

after:

$ echo "" | ~/proj/llvm-commit/Debug/bin/clang-cc -dM -E
-std=iso9899:199409 | grep STDC
#define __STDC_HOSTED__ 1
#define __STDC_VERSION__ 199409L
#define __STDC__ 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c94-define__STDC_VERSION__.patch
Type: text/x-diff
Size: 897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090720/44e09682/attachment.patch>


More information about the llvm-commits mailing list