diff options
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/sem_util.adb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 18c9de05..3af029f 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -21226,6 +21226,11 @@ package body Sem_Util is then return True; + -- A function with side-effects is volatile + + elsif Is_Function_With_Side_Effects (Func_Id) then + return True; + -- Otherwise the function is treated as volatile if it is subject to -- enabled pragma Volatile_Function. |