diff options
Diffstat (limited to 'gcc/ada/utils2.c')
-rw-r--r-- | gcc/ada/utils2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/utils2.c b/gcc/ada/utils2.c index 65837bb..ffca597 100644 --- a/gcc/ada/utils2.c +++ b/gcc/ada/utils2.c @@ -1431,7 +1431,8 @@ build_call_0_expr (tree fundecl) build_unary_op (ADDR_EXPR, NULL_TREE, fundecl), NULL_TREE, NULL_TREE); - TREE_SIDE_EFFECTS (call) = 1; + /* We rely on build3 to compute TREE_SIDE_EFFECTS. This makes it possible + to propagate the DECL_IS_PURE flag on parameterless functions. */ return call; } |