summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/nop-mcount.c
blob: 139fbb0638ee31b84247a7e7539dc599a7e4f30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Test -mnop-mcount */
/* { dg-do compile { target { { *-*-linux* } && nonpic } } } */
/* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
/* { dg-final { scan-assembler-not "__fentry__" } } */
/* Origin: Andi Kleen */
extern void foobar(char *);

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

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

void func3(a)
char *a;
{
  foobar("Hello world");
}