comparison gcc/gimple.h @ 116:367f9f4f266e

fix gimple.h
author mir3636
date Tue, 28 Nov 2017 20:22:01 +0900
parents 4cb7a319550d
children d34655255c78
comparison
equal deleted inserted replaced
115:4cb7a319550d 116:367f9f4f266e
3243 /* If CBCGOTO_P is true, mark call statement S as being a cbc goto 3243 /* If CBCGOTO_P is true, mark call statement S as being a cbc goto
3244 (i.e., a call just before the exit of a function). These calls are 3244 (i.e., a call just before the exit of a function). These calls are
3245 candidate for tail call optimization. */ 3245 candidate for tail call optimization. */
3246 3246
3247 static inline void 3247 static inline void
3248 gimple_call_set_cbc_goto (gimple s, bool cbcgoto_p) 3248 gimple_call_set_cbc_goto (gimple *s, bool cbcgoto_p)
3249 { 3249 {
3250 GIMPLE_CHECK (s, GIMPLE_CALL); 3250 GIMPLE_CHECK (s, GIMPLE_CALL);
3251 if (cbcgoto_p) 3251 if (cbcgoto_p)
3252 s->gsbase.subcode |= GF_CALL_CBC_GOTO; 3252 s->subcode |= GF_CALL_CBC_GOTO;
3253 else 3253 else
3254 s->gsbase.subcode &= ~GF_CALL_CBC_GOTO; 3254 s->subcode &= ~GF_CALL_CBC_GOTO;
3255 } 3255 }
3256 #endif 3256 #endif
3257 3257
3258 /* 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. */
3259 3259
3268 static inline void 3268 static inline void
3269 gimple_call_set_must_tail (gcall *s, bool must_tail_p) 3269 gimple_call_set_must_tail (gcall *s, bool must_tail_p)
3270 { 3270 {
3271 if (must_tail_p) 3271 if (must_tail_p)
3272 s->subcode |= GF_CALL_MUST_TAIL_CALL; 3272 s->subcode |= GF_CALL_MUST_TAIL_CALL;
3273 else
3274 s->subcode &= ~GF_CALL_MUST_TAIL_CALL;
3275 }
3276
3273 #ifndef noCbC 3277 #ifndef noCbC
3274 /* Return true if GIMPLE_CALL S is marked as a cbc goto. */ 3278 /* Return true if GIMPLE_CALL S is marked as a cbc goto. */
3275 3279
3276 static inline bool 3280 static inline bool
3277 gimple_call_cbc_goto_p (gimple s) 3281 gimple_call_cbc_goto_p (gimple *s)
3278 { 3282 {
3279 GIMPLE_CHECK (s, GIMPLE_CALL); 3283 GIMPLE_CHECK (s, GIMPLE_CALL);
3280 return (s->gsbase.subcode & GF_CALL_CBC_GOTO) != 0; 3284 return (s->subcode & GF_CALL_CBC_GOTO) != 0;
3281 } 3285 }
3282 #endif 3286 #endif
3283 else
3284 s->subcode &= ~GF_CALL_MUST_TAIL_CALL;
3285 }
3286 3287
3287 /* Return true if call statement has been marked as requiring 3288 /* Return true if call statement has been marked as requiring
3288 tail call optimization. */ 3289 tail call optimization. */
3289 3290
3290 static inline bool 3291 static inline bool