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: Designs for better debug info in GCC


Daniel Berlin wrote:

Here is the easy one:


z_5 = a_3 + b_3
x_4 = z_5 + c_3

DEBUG(x, x_4)


Reassoc may transform this into:



z_5 = c_3 + b_3 x_4 = z_5 + a_3

DEBUG(x, x_4)

Now x has the wrong value.
??

x_4 looks like it has the value 'a_3 + b_3 + c_3' in both examples to me, although computed in different orders...

so isn't that still the right value?

Andrew


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