[llvm-commits] [commit-after-approval] c94 define __STDC_VERSION__
Chris Lattner
clattner at apple.com
Mon Jul 20 16:29:27 PDT 2009
On Jul 20, 2009, at 4:15 PM, Ryan Flynn wrote:
> match gcc behavior by defining preprocessor token
> __STDC__VERSION=199409L if given -std=iso9899:199409
Looks great to me, please commit. Please send clang patches to cfe-
commits though,
-Chris
>
> 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
> <c94-
> define__STDC_VERSION__
> .patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list