Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/ipa/inlinehint-3.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */ /* { dg-add-options bind_pic_locally } */ void abort (void); int scc_entry (int); int sum; int a[10]; int scc_next (int c) { int i; for (i=0;i<c;i++) a[i]=c; scc_entry (c); } int scc_entry (int c) { int i; for (i=0;i<c;i++) sum+=a[i]; if (c--) scc_next (c); return sum; } int main() { int sum; int i; for (i=0;i<10;i++) scc_entry (i); if (sum < 0) abort (); return 0; } /* { dg-final { scan-ipa-dump "in_scc" "inline" } } */ /* { dg-final { scan-ipa-dump "same_scc" "inline" } } */ /* Main is not in scc, the two functions are. */ /* { dg-final { scan-ipa-dump-times "In SCC" 2 "inline" } } */