re PR rtl-optimization/35729 (const volatile variable access incorrectly hoisted...
authorZdenek Dvorak <ook@ucw.cz>
Mon, 31 Mar 2008 14:19:52 +0000 (16:19 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Mon, 31 Mar 2008 14:19:52 +0000 (14:19 +0000)
commit66f91b93db67ccea9e4d0ec803492e2dbd03974c
treeffad40ad79ed9653b2a213a4f8b639c6da089e67
parent6b20c50ffe1de0c65fc196825236387da0b5ba34
re PR rtl-optimization/35729 (const volatile variable access incorrectly hoisted out of loop)

PR rtl-optimization/35729
* loop-invariant.c (check_maybe_invariant): Disallow volatile memory
references.

* gcc.dg/pr35729.c: New test.

From-SVN: r133755
gcc/ChangeLog
gcc/loop-invariant.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr35729.c [new file with mode: 0644]