1 /* Check some way in where code suppression caused various
3 extern int printf (const char *, ...);
4 typedef __SIZE_TYPE__
size_t;
6 size_t _brk_start
, _brk_end
;
7 void * extend_brk(size_t size
, size_t align
)
9 size_t mask
= align
- 1;
13 if (__builtin_expect(!!(_brk_start
== 0), 0))
18 _brk_end
= (_brk_end
+ mask
) & ~mask
;
19 ret
= (void *)_brk_end
;
25 static void get_args (int a
, int b
)
37 if (__builtin_expect(!!(0), 0)) {
38 if (__builtin_expect(!!__ret
, 0))
44 get_args(!!__ret
, sizeof(__ret
));
47 _Bool
chk(unsigned long addr
, unsigned long limit
, unsigned long size
)
50 /* This just needs to compile, no runtime test. (And it doesn't compile
51 only with certain internal checking added that's not committed). */
53 ret
= 0 != (!!(addr
> limit
- size
));
62 r
= extend_brk (4096, 16);