diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2006-09-29 06:52:04 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-09-29 06:52:04 +0000 |
commit | b55e7f34bc21a482d35dc2a9eaf38a878e0afbe4 (patch) | |
tree | d53b9b08a5977db3599ce6576e9b27bd13562c90 /gcc/ada/utils2.c | |
parent | 4f6c213142e5ce6f5ee17ef5d0f1cb85cd0ff573 (diff) | |
download | gcc-b55e7f34bc21a482d35dc2a9eaf38a878e0afbe4.zip gcc-b55e7f34bc21a482d35dc2a9eaf38a878e0afbe4.tar.gz gcc-b55e7f34bc21a482d35dc2a9eaf38a878e0afbe4.tar.bz2 |
decl.c (gnat_to_gnu_entity): Do not set "const" flag on "pure" Ada subprograms if SJLJ exceptions are used.
* decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
on "pure" Ada subprograms if SJLJ exceptions are used.
* trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
on the declaration node of JMPBUF_SAVE.
* utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
* utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
From-SVN: r117299
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; } |