]>
Commit | Line | Data |
---|---|---|
dd552284 | 1 | /* Definitions of C specific functions for TILEPro. |
5624e564 | 2 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
dd552284 WL |
3 | Contributed by Walter Lee (walt@tilera.com) |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify it | |
8 | under the terms of the GNU General Public License as published | |
9 | by the Free Software Foundation; either version 3, or (at your | |
10 | option) any later version. | |
11 | ||
12 | GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 | License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GCC; see the file COPYING3. If not see | |
19 | <http://www.gnu.org/licenses/>. */ | |
20 | ||
21 | #include "config.h" | |
22 | #include "system.h" | |
23 | #include "coretypes.h" | |
24 | #include "machmode.h" | |
25 | #include "tm.h" | |
26 | #include "tm_p.h" | |
27 | #include "cpplib.h" | |
40e23961 MC |
28 | #include "hash-set.h" |
29 | #include "machmode.h" | |
30 | #include "vec.h" | |
31 | #include "double-int.h" | |
32 | #include "input.h" | |
33 | #include "alias.h" | |
34 | #include "symtab.h" | |
35 | #include "wide-int.h" | |
36 | #include "inchash.h" | |
dd552284 WL |
37 | #include "tree.h" |
38 | #include "c-family/c-common.h" | |
39 | ||
40 | /* copy defines in c-cppbuiltin.c */ | |
41 | # define builtin_define(TXT) cpp_define (pfile, TXT) | |
42 | # define builtin_assert(TXT) cpp_assert (pfile, TXT) | |
43 | ||
44 | ||
45 | /* Implement TARGET_CPU_CPP_BUILTINS. */ | |
46 | void | |
47 | tilepro_cpu_cpp_builtins (struct cpp_reader *pfile) | |
48 | { | |
49 | builtin_define ("__tile__"); | |
50 | builtin_define ("__tilepro__"); | |
51 | builtin_assert ("cpu=tile"); | |
52 | builtin_assert ("machine=tile"); | |
53 | builtin_define ("__tile_chip__=1"); | |
54 | builtin_define ("__tile_chip_rev__=0"); | |
55 | ||
dab03fe3 WL |
56 | builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); |
57 | builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); | |
58 | builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); | |
59 | builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); | |
60 | ||
dd552284 WL |
61 | TILEPRO_CPU_CPP_ENDIAN_BUILTINS (); |
62 | GNU_USER_TARGET_OS_CPP_BUILTINS (); | |
63 | } | |
64 | ||
65 |