URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
! { dg-options "-O2 -fdump-tree-optimized" }
|
! { dg-options "-O2 -fdump-tree-optimized" }
|
! Tests whether volatile really works for pointers
|
! Tests whether volatile really works for pointers
|
! PR fortran/29601
|
! PR fortran/29601
|
logical, pointer, volatile :: t1
|
logical, pointer, volatile :: t1
|
logical, pointer :: t2
|
logical, pointer :: t2
|
integer :: i
|
integer :: i
|
|
|
t1 => NULL(t1)
|
t1 => NULL(t1)
|
if(associated(t1)) print *, 'VolatileNotOptimizedAway'
|
if(associated(t1)) print *, 'VolatileNotOptimizedAway'
|
t2 => NULL(t2)
|
t2 => NULL(t2)
|
if(associated(t2)) print *, 'NonVolatileNotOptimizedAway'
|
if(associated(t2)) print *, 'NonVolatileNotOptimizedAway'
|
end
|
end
|
! { dg-final { scan-tree-dump "VolatileNotOptimizedAway" "optimized" } }
|
! { dg-final { scan-tree-dump "VolatileNotOptimizedAway" "optimized" } }
|
! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway" "optimized" } }
|
! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway" "optimized" } }
|
! { dg-final { cleanup-tree-dump "optimized" } }
|
! { dg-final { cleanup-tree-dump "optimized" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.