OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr42998.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 297 jeremybenn
void foo(void *);
2
void bar(void *);
3
void ndisc_fill_addr_option(unsigned char *opt, int data_len,
4
                            unsigned short addr_type)
5
{
6
  int pad;
7
  if (addr_type == 32)
8
    pad = 2;
9
  else
10
    pad = 0;
11
  __builtin_memset(opt + 2, 0, pad);
12
  opt += pad;
13
  __builtin_constant_p(data_len) ? foo (opt+2) : bar (opt+2);
14
}
15
 

powered by: WebSVN 2.1.0

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