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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [inline-23.c] - Diff between revs 298 and 338

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);
}
}
 
 

powered by: WebSVN 2.1.0

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