This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A new ia32 backend
- To: norbert at dune dot gia dot rwth-aachen dot de
- Subject: Re: A new ia32 backend
- From: craig at jcb-sc dot com
- Date: 16 Jun 1999 13:41:39 -0000
- Cc: rth at cygnus dot com, egcs at egcs dot cygnus dot com
- Cc: craig at jcb-sc dot com
- References: <9906161334.AA19933@dune.gia.rwth-aachen.de>
>Richard Henderson wrote in <19990615224736.A29894@cygnus.com>:
>
>>...
>> while (a--) { /* nothing dependant on a */ }
>> becomes
>> if (a) do { ... } while (--a);
>>...
>
>Is it really equivalent? Even if `(a == 0)' just before
>the two lines?
No, good point, there needs to be an `else --a;' added to the
`if' clause. (Presumably the actual code in the compiler is
correct, but it's always good to check, as well as make sure
these email'ed "doclets" are correct as well!)
tq vm, (burley)