This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29964] [4.1 Regression] function with volatile operators still found to be pure
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2006 21:12:18 -0000
- Subject: [Bug tree-optimization/29964] [4.1 Regression] function with volatile operators still found to be pure
- References: <bug-29964-13615@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-11-25 21:12 -------
Subject: Bug 29964
Author: pinskia
Date: Sat Nov 25 21:12:08 2006
New Revision: 119208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119208
Log:
2006-11-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR tree-opt/29964
* ipa-pure-const.c (check_tree): If the original tree
is volatile return early and say the function is not pure
nor const. Remove the volatile check for writes.
(analyze_function): Print out the result of the local
analysis pass.
2006-11-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR tree-opt/29964
* gcc.dg/pure-1.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pure-1.c
- copied unchanged from r119162, trunk/gcc/testsuite/gcc.dg/pure-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/ipa-pure-const.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29964