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: [Bug tree-optimization/19723] [4.0 Regression] A side effectis missed in 0 % a++.


This fixes the two regressions I introduced with my recent fold-const.c
change.

Basically we move the test for 0 % X down so that we do not optimize
0 % 0 and we correct the return value so that any side effects in X
are preserved.

Tests for both bugs have also been added to the regression testsuite.

Bootstrapped and regression tested on i686-pc-linux-gnu.


Attachment: PPP
Description: Text document


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