view gcc/testsuite/gcc.dg/pg.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Test -fprofile override */
/* { dg-do compile } */
/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */
/* { dg-final { scan-assembler-not "mcount" } } */
/* Origin: Andi Kleen */
extern void foobar(const char *);

__attribute__((no_instrument_function)) void func(void)
{
  foobar ("Hello world\n");
}

__attribute__((no_instrument_function)) void func2(void)
{
  int i;
  for (i = 0; i < 10; i++)
    foobar ("Hello world");
}