Ticket #59927: bison.c

File bison.c, 1.3 KB (added by akimd (Akim Demaille), 3 years ago)

Check _Noreturn support

Line 
1/*
2/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -arch ppc -E bison.c
3*/
4
5
6#ifndef _Noreturn
7# if (defined __cplusplus \
8      && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
9          || (defined _MSC_VER && 1900 <= _MSC_VER)))
10case 1
11#  define _Noreturn [[noreturn]]
12# elif ((!defined __cplusplus || defined __clang__) \
13        && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
14            || (!defined __STRICT_ANSI__ \
15                && (__4 < __GNUC__ + (7 <= __GNUC_MINOR__) \
16                    || (defined __apple_build_version__ \
17                        ? 6000000 <= __apple_build_version__ \
18                        : 3 < __clang_major__ + (5 <= __clang_minor__))))))
19   /* _Noreturn works as-is.  */
20case 2
21# elif (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \
22        || 0x5110 <= __SUNPRO_C)
23#  define _Noreturn __attribute__ ((__noreturn__))
24# elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
25case 3
26#  define _Noreturn __declspec (noreturn)
27# else
28case 4
29#  define _Noreturn
30# endif
31#endif
32
33c++: __cplusplus
34clang: __clang__
35clang maj: __clang_major__
36clang min: __clang_minor__
37STDC: __STDC_VERSION__
38STRICT_ANSI: __STRICT_ANSI__
39GNUC: __GNUC__
40GNUC MIN: __GNUC_MINOR__
41apple: __apple_build_version__
42
43_Noreturn static void
44yyFail (yyGLRStack* yystackp, YYLTYPE *yylocp, const char* yymsg);