Mercurial > hg > CbC > CbC_gcc
comparison gcc/conditions.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Definitions for condition code handling in final.c and output routines. | 1 /* Definitions for condition code handling in final.c and output routines. |
2 Copyright (C) 1987, 2007 Free Software Foundation, Inc. | 2 Copyright (C) 1987-2017 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 |
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with GCC; see the file COPYING3. If not see | 17 along with GCC; see the file COPYING3. If not see |
18 <http://www.gnu.org/licenses/>. */ | 18 <http://www.gnu.org/licenses/>. */ |
19 | 19 |
20 /* None of the things in the files exist if we don't use CC0. */ | 20 #ifndef GCC_CONDITIONS_H |
21 | 21 #define GCC_CONDITIONS_H |
22 #ifdef HAVE_cc0 | |
23 | 22 |
24 /* The variable cc_status says how to interpret the condition code. | 23 /* The variable cc_status says how to interpret the condition code. |
25 It is set by output routines for an instruction that sets the cc's | 24 It is set by output routines for an instruction that sets the cc's |
26 and examined by output routines for jump instructions. | 25 and examined by output routines for jump instructions. |
27 | 26 |
49 | 48 |
50 #ifndef CC_STATUS_MDEP_INIT | 49 #ifndef CC_STATUS_MDEP_INIT |
51 #define CC_STATUS_MDEP_INIT 0 | 50 #define CC_STATUS_MDEP_INIT 0 |
52 #endif | 51 #endif |
53 | 52 |
54 typedef struct {int flags; rtx value1, value2; CC_STATUS_MDEP mdep;} CC_STATUS; | 53 struct CC_STATUS {int flags; rtx value1, value2; CC_STATUS_MDEP mdep;}; |
55 | 54 |
56 /* While outputting an insn as assembler code, | 55 /* While outputting an insn as assembler code, |
57 this is the status BEFORE that insn. */ | 56 this is the status BEFORE that insn. */ |
58 extern CC_STATUS cc_prev_status; | 57 extern CC_STATUS cc_prev_status; |
59 | 58 |
108 #define CC_NOT_SIGNED 0200 | 107 #define CC_NOT_SIGNED 0200 |
109 | 108 |
110 /* This is how to initialize the variable cc_status. | 109 /* This is how to initialize the variable cc_status. |
111 final does this at appropriate moments. */ | 110 final does this at appropriate moments. */ |
112 | 111 |
112 /* FIXME: We want to get rid of these ifndefs. */ | |
113 #ifndef CC_STATUS_INIT | |
113 #define CC_STATUS_INIT \ | 114 #define CC_STATUS_INIT \ |
114 (cc_status.flags = 0, cc_status.value1 = 0, cc_status.value2 = 0, \ | 115 (cc_status.flags = 0, cc_status.value1 = 0, cc_status.value2 = 0, \ |
115 CC_STATUS_MDEP_INIT) | 116 CC_STATUS_MDEP_INIT) |
116 | |
117 #endif | 117 #endif |
118 #endif /* GCC_CONDITIONS_H */ |