[Bug c/19293] New: avr-gcc crashes when using shifts with negative shift count

bjoern dot m dot haase at web dot de gcc-bugzilla@gcc.gnu.org
Thu Jan 6 16:01:00 GMT 2005


avr-gcc crashes with an internal compiler error when shift operations with 
negative shift count are used, e.g. a >> -13. Error message is "negative 
instruction length", probably since the expression used for calculating the 
instruction length (c-code) assumes the shift count to be a positive number. 
Test cases known to fail are, e.g. . 
 
gcc.c-torture/compile/20020710-1 
                      20021119-1 
                      20021123-4 
                      920626-1 
                      930621-1 
 
Problem is present in 4.0 and I expect it to exist in all the previous 
releases. (compare the test report in gcc-testreports@gcc.gnu.org. 
 
Björn.

-- 
           Summary: avr-gcc crashes when using shifts with negative shift
                    count
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bjoern dot m dot haase at web dot de
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: avr-*-*


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



More information about the Gcc-bugs mailing list