[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2008-02-03 Thread steven at gcc dot gnu dot org


--- Comment #6 from steven at gcc dot gnu dot org  2008-02-03 14:35 ---
Should be fixed on the trunk.


-- 

steven at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.3.0


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



[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2007-09-30 Thread dnovillo at gcc dot gnu dot org


--- Comment #5 from dnovillo at gcc dot gnu dot org  2007-09-30 16:00 
---
Subject: Bug 33593

Author: dnovillo
Date: Sun Sep 30 16:00:36 2007
New Revision: 128893

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=128893
Log:

PR 33593
* tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
throw an exception.


testsuite/ChangeLog

PR 33593
* g++.dg/tree-ssa/pr33593.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/pr33593.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ter.c


-- 


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



[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2007-09-29 Thread rsandifo at gcc dot gnu dot org


--- Comment #1 from rsandifo at gcc dot gnu dot org  2007-09-29 19:05 
---
Assigning to Diego as he already has a patch (thanks!)


-- 

rsandifo at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dnovillo at google dot com
   |dot org |


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



[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2007-09-29 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2007-09-29 19:05 ---
1 / 0;

that does not aways trap.  on ppc an undefined value is returned.


-- 


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



[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2007-09-29 Thread dnovillo at google dot com


--- Comment #3 from dnovillo at google dot com  2007-09-29 19:08 ---
Subject: Re:  tree-outof-ssa moves sources of non-call exceptions past sequence
points

On 29 Sep 2007 19:05:20 -, pinskia at gcc dot gnu dot org
[EMAIL PROTECTED] wrote:

 1 / 0;

 that does not aways trap.  on ppc an undefined value is returned.

In which case tree_could_trap_p() will/should return false on this
expression then.


-- 


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



[Bug tree-optimization/33593] tree-outof-ssa moves sources of non-call exceptions past sequence points

2007-09-29 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-09-29 19:08 ---
I think 1/0 should not be marked as throwing though as it is target dependent
if it actually will trap or not.  In fact as I mentioned on PPC, it does not
trap.


-- 


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