This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/46693] incorrect code generation with -O2 optimization enabled


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46693

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
      Known to work|                            |4.3.5, 4.4.6
      Known to fail|                            |4.5.1

--- Comment #11 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2010-12-14 09:27:58 UTC ---
So the problem on trunk atleast seems to be in gimple-fold 

maybe_fold_or_comparisons and friends where all the comparisons are folded out
into a single boolean node of 1 where ideally the result of the basic block
should be reduced to the (c <= 31) && (x != 9) check . The other 2 equality
comparisons are superfluous. 

I won't be able to look at this for a couple of days - hence unassigning
myself.


The problem for this file goes away with -fno-tree-vrp but that's a heavy
weight work around.



cheers
Ramana


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