Mercurial > hg > CbC > CbC_gcc
comparison gcc/gimple.h @ 115:4cb7a319550d
fix c-parser.c
author | mir3636 |
---|---|
date | Tue, 28 Nov 2017 19:31:15 +0900 |
parents | ab0bcb71f44d |
children | 367f9f4f266e |
comparison
equal
deleted
inserted
replaced
114:e234ee7b7292 | 115:4cb7a319550d |
---|---|
135 | 135 |
136 Keep this list sorted. */ | 136 Keep this list sorted. */ |
137 enum gf_mask { | 137 enum gf_mask { |
138 GF_ASM_INPUT = 1 << 0, | 138 GF_ASM_INPUT = 1 << 0, |
139 GF_ASM_VOLATILE = 1 << 1, | 139 GF_ASM_VOLATILE = 1 << 1, |
140 <<<<<<< local | |
141 GF_CALL_FROM_THUNK = 1 << 0, | 140 GF_CALL_FROM_THUNK = 1 << 0, |
142 GF_CALL_RETURN_SLOT_OPT = 1 << 1, | 141 GF_CALL_RETURN_SLOT_OPT = 1 << 1, |
143 GF_CALL_TAILCALL = 1 << 2, | 142 GF_CALL_TAILCALL = 1 << 2, |
144 GF_CALL_VA_ARG_PACK = 1 << 3, | 143 GF_CALL_VA_ARG_PACK = 1 << 3, |
145 GF_CALL_NOTHROW = 1 << 4, | 144 GF_CALL_NOTHROW = 1 << 4, |
148 GF_CALL_CTRL_ALTERING = 1 << 7, | 147 GF_CALL_CTRL_ALTERING = 1 << 7, |
149 GF_CALL_WITH_BOUNDS = 1 << 8, | 148 GF_CALL_WITH_BOUNDS = 1 << 8, |
150 GF_CALL_MUST_TAIL_CALL = 1 << 9, | 149 GF_CALL_MUST_TAIL_CALL = 1 << 9, |
151 GF_CALL_BY_DESCRIPTOR = 1 << 10, | 150 GF_CALL_BY_DESCRIPTOR = 1 << 10, |
152 GF_CALL_NOCF_CHECK = 1 << 11, | 151 GF_CALL_NOCF_CHECK = 1 << 11, |
153 ======= | |
154 GF_CALL_CANNOT_INLINE = 1 << 0, | |
155 GF_CALL_FROM_THUNK = 1 << 1, | |
156 GF_CALL_RETURN_SLOT_OPT = 1 << 2, | |
157 GF_CALL_TAILCALL = 1 << 3, | |
158 GF_CALL_VA_ARG_PACK = 1 << 4, | |
159 GF_CALL_NOTHROW = 1 << 5, | |
160 #ifndef noCbC | 152 #ifndef noCbC |
161 GF_CALL_CBC_GOTO = 1 << 5, | 153 GF_CALL_CBC_GOTO = 1 << 5, |
162 #endif | 154 #endif |
163 >>>>>>> other | |
164 GF_OMP_PARALLEL_COMBINED = 1 << 0, | 155 GF_OMP_PARALLEL_COMBINED = 1 << 0, |
165 GF_OMP_PARALLEL_GRID_PHONY = 1 << 1, | 156 GF_OMP_PARALLEL_GRID_PHONY = 1 << 1, |
166 GF_OMP_TASK_TASKLOOP = 1 << 0, | 157 GF_OMP_TASK_TASKLOOP = 1 << 0, |
167 GF_OMP_FOR_KIND_MASK = (1 << 4) - 1, | 158 GF_OMP_FOR_KIND_MASK = (1 << 4) - 1, |
168 GF_OMP_FOR_KIND_FOR = 0, | 159 GF_OMP_FOR_KIND_FOR = 0, |
3265 #endif | 3256 #endif |
3266 | 3257 |
3267 /* Return true if GIMPLE_CALL S is marked as a tail call. */ | 3258 /* Return true if GIMPLE_CALL S is marked as a tail call. */ |
3268 | 3259 |
3269 static inline bool | 3260 static inline bool |
3270 <<<<<<< local | |
3271 gimple_call_tail_p (gcall *s) | 3261 gimple_call_tail_p (gcall *s) |
3272 { | 3262 { |
3273 return (s->subcode & GF_CALL_TAILCALL) != 0; | 3263 return (s->subcode & GF_CALL_TAILCALL) != 0; |
3274 } | 3264 } |
3275 | 3265 |
3278 static inline void | 3268 static inline void |
3279 gimple_call_set_must_tail (gcall *s, bool must_tail_p) | 3269 gimple_call_set_must_tail (gcall *s, bool must_tail_p) |
3280 { | 3270 { |
3281 if (must_tail_p) | 3271 if (must_tail_p) |
3282 s->subcode |= GF_CALL_MUST_TAIL_CALL; | 3272 s->subcode |= GF_CALL_MUST_TAIL_CALL; |
3283 ======= | |
3284 gimple_call_tail_p (gimple s) | |
3285 { | |
3286 GIMPLE_CHECK (s, GIMPLE_CALL); | |
3287 return (s->gsbase.subcode & GF_CALL_TAILCALL) != 0; | |
3288 } | |
3289 | |
3290 #ifndef noCbC | 3273 #ifndef noCbC |
3291 /* Return true if GIMPLE_CALL S is marked as a cbc goto. */ | 3274 /* Return true if GIMPLE_CALL S is marked as a cbc goto. */ |
3292 | 3275 |
3293 static inline bool | 3276 static inline bool |
3294 gimple_call_cbc_goto_p (gimple s) | 3277 gimple_call_cbc_goto_p (gimple s) |
3295 { | 3278 { |
3296 GIMPLE_CHECK (s, GIMPLE_CALL); | 3279 GIMPLE_CHECK (s, GIMPLE_CALL); |
3297 return (s->gsbase.subcode & GF_CALL_CBC_GOTO) != 0; | 3280 return (s->gsbase.subcode & GF_CALL_CBC_GOTO) != 0; |
3298 } | 3281 } |
3299 #endif | 3282 #endif |
3300 | |
3301 /* Set the inlinable status of GIMPLE_CALL S to INLINABLE_P. */ | |
3302 | |
3303 static inline void | |
3304 gimple_call_set_cannot_inline (gimple s, bool inlinable_p) | |
3305 { | |
3306 GIMPLE_CHECK (s, GIMPLE_CALL); | |
3307 if (inlinable_p) | |
3308 s->gsbase.subcode |= GF_CALL_CANNOT_INLINE; | |
3309 >>>>>>> other | |
3310 else | 3283 else |
3311 s->subcode &= ~GF_CALL_MUST_TAIL_CALL; | 3284 s->subcode &= ~GF_CALL_MUST_TAIL_CALL; |
3312 } | 3285 } |
3313 | 3286 |
3314 /* Return true if call statement has been marked as requiring | 3287 /* Return true if call statement has been marked as requiring |