summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pg.c
blob: 9b8d8fa02cd57dba15312ec7fbbc36e1fff339a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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");
}