Debian Codegraph @

gcc/testsuite/gfortran.dg/noinline.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-O2 -fdump-tree-dom2" }
3
4 subroutine bar(n,m,p,s)
5 implicit none
6 integer :: n,m
7 real,intent(inout) :: p(n),s(*)
8 call foo(n,m,p,s)
9 call foo(n,m,p,s)
10 end subroutine bar
11
12 subroutine foo(n,m,p,b)
13 implicit none
14 integer :: n,m,j
15 real,intent(inout) :: p(n),b(*)
16 !GCC$ ATTRIBUTES noinline :: foo
17 do j=1,n
18 b(m+j-1)=p(j)
19 enddo
20 m=m+n
21 end subroutine foo
22
23 ! { dg-final { scan-tree-dump-times "foo \\(" 4 "dom2"} }