This is the mail archive of the gcc-patches@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: Patch ping


On Wednesday 28 April 2004 14:47, Richard Earnshaw wrote:
> On Wed, 2004-04-28 at 14:33, Paul Brook wrote:
> > Patch ping: Output dwarf expressions for memory locations involving
> > shifts.
> >
> > http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00856.html
> >
> > Paul
>
> I don't think this is quite right.  The MULT code had some
> simplifications when one of the operands was 0.  However, a shift by
> zero is not the same as a multiply by zero -- the later results in zero,
> the former is a NOP.

Are you sure?
I see a check for (op0==0 || op1=0), but this is testing for successful 
evaluation, not actual values.

Paul


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