OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [ultrasp8.c] - Blame information for rev 327

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 326 jeremybenn
/* PR target/10067 */
2
/* Originator: <dat94ali@ludat.lth.se> */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -mtune=supersparc" } */
6
 
7
struct _reent;
8
 
9
extern unsigned long __malloc_trim_threshold;
10
extern unsigned long __malloc_top_pad;
11
 
12
int _mallopt_r(struct _reent *reent_ptr, int param_number, int value)
13
{
14
  __malloc_lock(reent_ptr);
15
 
16
  switch(param_number)
17
  {
18
    case -1:
19
      __malloc_trim_threshold = value;
20
      __malloc_unlock(reent_ptr);
21
      return 1;
22
 
23
    case -2:
24
      __malloc_top_pad = value;
25
      __malloc_unlock(reent_ptr);
26
      return 1;
27
 
28
    case -3:
29
      __malloc_unlock(reent_ptr);
30
      return 1;
31
 
32
    case -4:
33
      __malloc_unlock(reent_ptr);
34
      return value == 0;
35
 
36
    default:
37
      __malloc_unlock(reent_ptr);
38
      return 0;
39
  }
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.