diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-07-17 05:56:40 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-07-17 03:56:40 +0000 |
commit | 9f2e9ac43b09713711d3f358a2ab4dbb86a925bb (patch) | |
tree | 4a7695fc9b2d11cc77b1801a9f85ca70199d8db4 /gcc/testsuite/gcc.dg/pr32773.c | |
parent | 02634bb2873d57f5beda6c0f1633b8bfdbc08ffa (diff) | |
download | gcc-9f2e9ac43b09713711d3f358a2ab4dbb86a925bb.zip gcc-9f2e9ac43b09713711d3f358a2ab4dbb86a925bb.tar.gz gcc-9f2e9ac43b09713711d3f358a2ab4dbb86a925bb.tar.bz2 |
re PR rtl-optimization/32773 (SH: ICE in create_pre_exit, at mode-switching.c:223)
PR rtl-optimization/32773
* cfglayout.c (force_one_exit_fallthru): New function.
(cfg_layout_finalize): Use it.
* gcc.dg/pr32773.c: New test.
From-SVN: r126700
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr32773.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr32773.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr32773.c b/gcc/testsuite/gcc.dg/pr32773.c new file mode 100644 index 0000000..ca5dd53 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr32773.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fprofile-use" } */ +/* { dg-options "-O -m4 -fprofile-use" { target sh-*-* } } */ + +void foo (int *p) +{ + if (p) + *p = 0; +} /* { dg-message "note: \[^\n\]*execution counts estimated" } */ + +/* { dg-final { cleanup-coverage-files } } */ |