URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* This testcase ICEd on x86-64 because LABEL_REF + small const was not
|
/* This testcase ICEd on x86-64 because LABEL_REF + small const was not
|
considered as local_symbolic_operand. */
|
considered as local_symbolic_operand. */
|
/* { dg-do compile { target fpic } } */
|
/* { dg-do compile { target fpic } } */
|
/* { dg-options "-O2 -fpic" } */
|
/* { dg-options "-O2 -fpic" } */
|
|
|
typedef __builtin_va_list va_list;
|
typedef __builtin_va_list va_list;
|
|
|
static unsigned int
|
static unsigned int
|
foo (void *a, float b, const char *c, va_list d, void *e)
|
foo (void *a, float b, const char *c, va_list d, void *e)
|
{
|
{
|
return -1;
|
return -1;
|
}
|
}
|
|
|
unsigned int
|
unsigned int
|
bar (void *a, float b, const char *c, ...)
|
bar (void *a, float b, const char *c, ...)
|
{
|
{
|
va_list args;
|
va_list args;
|
unsigned int d;
|
unsigned int d;
|
|
|
__builtin_va_start (args, c);
|
__builtin_va_start (args, c);
|
d = foo (a, b, c, args, a);
|
d = foo (a, b, c, args, a);
|
__builtin_va_end (args);
|
__builtin_va_end (args);
|
return d;
|
return d;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.