Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr56727-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile { target fpic } } */ | 1 /* { dg-do compile { target fpic } } */ |
2 /* { dg-options "-O2 -fPIC" } */ | 2 /* { dg-options "-O2 -fPIC" } */ |
3 /* { dg-require-alias "" } */ | 3 /* { dg-require-alias "" } */ |
4 /* { dg-final { scan-assembler "@(PLT|plt)" { target i?86-*-* x86_64-*-* powerpc*-*-linux* } } } */ | |
5 | 4 |
6 __attribute__((noinline, noclone)) | 5 __attribute__((noinline, noclone)) |
7 void f (short b) | 6 void f (short b) |
8 { | 7 { |
8 __builtin_setjmp (0); /* Prevent tailcall */ | |
9 f (0); | 9 f (0); |
10 } | 10 } |
11 | 11 |
12 static void g (short) __attribute__ ((alias ("f"))); | 12 static void g (short) __attribute__ ((alias ("f"))); |
13 | 13 |
14 void h () | 14 void h () |
15 { | 15 { |
16 g (0); | 16 g (0); |
17 } | 17 } |
18 | |
19 /* { dg-final { scan-assembler "@(PLT|plt)" { target i?86-*-* x86_64-*-* } } } */ | |
20 /* { dg-final { scan-assembler "@(PLT|plt)" { target { powerpc*-*-linux* && ilp32 } } } } */ | |
21 /* { dg-final { scan-assembler "bl f\n\\s*nop" { target { powerpc*-*-linux* && lp64 } } } } */ |