URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu89" } */
|
/* { dg-options "-std=gnu89" } */
|
/* Make sure we can inline a varargs function whose variable arguments
|
/* Make sure we can inline a varargs function whose variable arguments
|
are not used. See PR32493. */
|
are not used. See PR32493. */
|
#include <stddef.h>
|
#include <stddef.h>
|
static inline __attribute__((always_inline)) void __check_printsym_format(const
|
static inline __attribute__((always_inline)) void __check_printsym_format(const
|
char *fmt, ...)
|
char *fmt, ...)
|
{
|
{
|
}
|
}
|
static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
|
static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
|
ptrdiff_t addr)
|
ptrdiff_t addr)
|
{
|
{
|
__check_printsym_format(fmt, "");
|
__check_printsym_format(fmt, "");
|
}
|
}
|
void do_initcalls(void **call)
|
void do_initcalls(void **call)
|
{
|
{
|
print_symbol(": %s()", (ptrdiff_t) *call);
|
print_symbol(": %s()", (ptrdiff_t) *call);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.