Mercurial > hg > CbC > CbC_gcc
comparison gcc/cppbuiltin.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Define builtin-in macros for all front ends that perform preprocessing | 1 /* Define builtin-in macros for all front ends that perform preprocessing |
2 Copyright (C) 2010-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2010-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
23 #include "memmodel.h" | 23 #include "memmodel.h" |
24 #include "target.h" | 24 #include "target.h" |
25 #include "tree.h" | 25 #include "tree.h" |
26 #include "version.h" | 26 #include "version.h" |
27 #include "flags.h" | 27 #include "flags.h" |
28 #include "cpp-id-data.h" | 28 #include "cpplib.h" |
29 #include "cppbuiltin.h" | 29 #include "cppbuiltin.h" |
30 | 30 |
31 | 31 |
32 /* Parse a BASEVER version string of the format "major.minor.patchlevel" | 32 /* Parse a BASEVER version string of the format "major.minor.patchlevel" |
33 or "major.minor" to extract its components. */ | 33 or "major.minor" to extract its components. */ |
108 if (!flag_errno_math) | 108 if (!flag_errno_math) |
109 cpp_define (pfile, "__NO_MATH_ERRNO__"); | 109 cpp_define (pfile, "__NO_MATH_ERRNO__"); |
110 | 110 |
111 cpp_define_formatted (pfile, "__FINITE_MATH_ONLY__=%d", | 111 cpp_define_formatted (pfile, "__FINITE_MATH_ONLY__=%d", |
112 flag_finite_math_only); | 112 flag_finite_math_only); |
113 if (flag_cilkplus) | |
114 cpp_define (pfile, "__cilk=200"); | |
115 | |
116 if (flag_check_pointer_bounds) | |
117 cpp_define (pfile, "__CHKP__"); | |
118 } | 113 } |
119 | 114 |
120 | 115 |
121 /* Define built-in macros for LP64 targets. */ | 116 /* Define built-in macros for LP64 targets. */ |
122 static void | 117 static void |