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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [inline-1.C] - Diff between revs 301 and 384

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 384
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline2" } */
/* { dg-options "-O2 -fdump-tree-einline2" } */
/* { dg-add-options bind_pic_locally } */
/* { dg-add-options bind_pic_locally } */
namespace std {
namespace std {
  extern "C" void puts(const char *s);
  extern "C" void puts(const char *s);
}
}
template  void
template  void
foreach (T b, T e, void (*ptr)(E))
foreach (T b, T e, void (*ptr)(E))
{
{
  for (; b != e; b++)
  for (; b != e; b++)
    ptr(*b);
    ptr(*b);
}
}
void
void
inline_me (char *x)
inline_me (char *x)
{
{
  std::puts(x);
  std::puts(x);
}
}
static void
static void
inline_me_too (char *x)
inline_me_too (char *x)
{
{
  std::puts(x);
  std::puts(x);
}
}
int main(int argc, char **argv)
int main(int argc, char **argv)
{
{
  foreach (argv, argv + argc, inline_me);
  foreach (argv, argv + argc, inline_me);
  foreach (argv, argv + argc, inline_me_too);
  foreach (argv, argv + argc, inline_me_too);
}
}
/* { dg-final { scan-tree-dump-times "Inlining void inline_me\\(" 1 "einline2"} } */
/* { dg-final { scan-tree-dump-times "Inlining void inline_me\\(" 1 "einline2"} } */
/* { dg-final { scan-tree-dump-times "Inlining void inline_me_too\\(" 1 "einline2"} } */
/* { dg-final { scan-tree-dump-times "Inlining void inline_me_too\\(" 1 "einline2"} } */
/* { dg-final { cleanup-tree-dump "einline2" } } */
/* { dg-final { cleanup-tree-dump "einline2" } } */
 
 

powered by: WebSVN 2.1.0

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