From 5e13fdf7526539b77f38ed6aa14f993d542c4b9d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 30 Oct 2005 19:14:15 +0100 Subject: re PR tree-optimization/24172 (error: incorrect sharing of tree nodes) PR tree-optimization/24172 * tree-inline.c (copy_body_r): Unshare the substituted value first. * g++.dg/tree-ssa/pr24172.C: New testcase. From-SVN: r106247 --- gcc/testsuite/g++.dg/tree-ssa/pr24172.C | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/tree-ssa/pr24172.C (limited to 'gcc/testsuite/g++.dg') diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr24172.C b/gcc/testsuite/g++.dg/tree-ssa/pr24172.C new file mode 100644 index 0000000..245186a --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr24172.C @@ -0,0 +1,11 @@ +// { dg-options "-O2" } +void IOException( char); +inline int* dummy( const char* const mode ) +{ + IOException(*mode+*mode); +} + +void prepare_inpaint( ) +{ + dummy ("rb"); +} -- cgit v1.1