2 /* Originator: <dat94ali@ludat.lth.se> */
3 /* { dg-do compile { target sparc*-*-* } } */
4 /* { dg-options "-O2 -mtune=supersparc" { target sparc64-*-* sparcv9-*-* } } */
8 extern unsigned long __malloc_trim_threshold
;
9 extern unsigned long __malloc_top_pad
;
11 int _mallopt_r(struct _reent
*reent_ptr
, int param_number
, int value
)
13 __malloc_lock(reent_ptr
);
18 __malloc_trim_threshold
= value
;
19 __malloc_unlock(reent_ptr
);
23 __malloc_top_pad
= value
;
24 __malloc_unlock(reent_ptr
);
28 __malloc_unlock(reent_ptr
);
32 __malloc_unlock(reent_ptr
);
36 __malloc_unlock(reent_ptr
);