This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Fun with exceptions -- opinions needed


Michael Matz writes:
 > 
 > There was some thread about exactly this problem some months ago (it was
 > in Java, but that doesn't matter here).  IIRC the actual problem was, that
 > something _was_ assigned to the pseudo representing 'i', although the
 > function threw (thereby overwriting the initial value).

IIRC the problem was something similar to

   int a = b/c;

This generated a div instruction with `a' in a register as its
destination.  Java requires `a' not to be overwritten if the division
traps, but the machine specification leaves `a' undefined in this
case.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]