diff options
author | Martin Liska <marxin@gcc.gnu.org> | 2017-03-28 11:37:22 +0000 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-03-28 11:37:22 +0000 |
commit | c5ad24334348a54a8378366613d71a095386e5da (patch) | |
tree | ba4975babde9f783968283e700435904bbaaf893 /gcc/testsuite | |
parent | 17722fb9e6f8c79c7016c68ea359d6fe2dd5aadd (diff) | |
download | gcc-c5ad24334348a54a8378366613d71a095386e5da.zip gcc-c5ad24334348a54a8378366613d71a095386e5da.tar.gz gcc-c5ad24334348a54a8378366613d71a095386e5da.tar.bz2 |
Handle PHI nodes w/o a argument (PR ipa/80205).
2017-03-28 Martin Liska <mliska@suse.cz>
PR ipa/80205
* g++.dg/ipa/pr80205.C: New test.
2017-03-28 Richard Biener <rguenther@suse.de>
PR ipa/80205
* tree-inline.c (copy_phis_for_bb): Do not create PHI node
without arguments, generate default definition of a SSA name.
From-SVN: r246530
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ipa/pr80205.C | 34 |
2 files changed, 39 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe42af1..b3a5471 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-03-28 Martin Liska <mliska@suse.cz> + + PR ipa/80205 + * g++.dg/ipa/pr80205.C: New test. + 2017-03-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.c-torture/execute/pr79121.c:Use __{U}INT32_TYPE__ for targets diff --git a/gcc/testsuite/g++.dg/ipa/pr80205.C b/gcc/testsuite/g++.dg/ipa/pr80205.C new file mode 100644 index 0000000..460bdcb --- /dev/null +++ b/gcc/testsuite/g++.dg/ipa/pr80205.C @@ -0,0 +1,34 @@ +// PR ipa/80205 +// { dg-options "-fnon-call-exceptions --param early-inlining-insns=100 -O2" } + +class a +{ +public: + virtual ~a (); +}; +class b +{ +public: + template <typename c> b (c); + ~b () { delete d; } + void + operator= (b e) + { + b (e).f (*this); + } + void + f (b &e) + { + a g; + d = e.d; + e.d = &g; + } + a *d; +}; +void +h () +{ + b i = int(); + void j (); + i = j; +} |