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 target/15948] [3.4,3.5 Regression] THUMB: ICE with non-commutative cbranch


------- Additional Comments From rearnsha at gcc dot gnu dot org  2004-06-22 11:21 -------
Confirmed.  The compiler is using a non-commutative operation that sets the
condition codes.  Unfortunately, the register allocator has dug a pit that
reload doesn't know how to climb out of.  The attached patch should give it a
suitable step up again.

The other cbranch insns in the machine description need auditing to see if they
might suffer from the same problem.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|rtl-optimization            |target
     Ever Confirmed|                            |1
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-22 11:21:23
               date|                            |
            Summary|THUMB -O2: Very short file  |[3.4,3.5 Regression] THUMB:
                   |causes assert failure       |ICE with non-commutative
                   |                            |cbranch
   Target Milestone|---                         |3.4.2


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


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