[Bug tree-optimization/29964] [4.1/4.2 Regression] function with volatile operators still found to be pure

2006-11-25 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2006-11-25 16:45 ---
Subject: Bug 29964

Author: pinskia
Date: Sat Nov 25 16:45:09 2006
New Revision: 119202

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=119202
Log:
2006-11-25  Andrew Pinski  [EMAIL PROTECTED]

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  [EMAIL PROTECTED]

PR tree-opt/29964
* gcc.dg/pure-1.c: New test.



Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pure-1.c
  - copied unchanged from r119162, trunk/gcc/testsuite/gcc.dg/pure-1.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/ipa-pure-const.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29964



[Bug tree-optimization/29964] [4.1/4.2 Regression] function with volatile operators still found to be pure

2006-11-24 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2006-11-24 18:34 ---
Fixed on the mainline will test and commit to the 4.1 and 4.2 branches later
this holiday weekend.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail||4.1.1 4.2.0
  Known to work||4.0.4 4.3.0
Summary|[4.1/4.2/4.3 Regression]|[4.1/4.2 Regression]
   |function with volatile  |function with volatile
   |operators still found to be |operators still found to be
   |pure|pure


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29964