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 [EMAIL PROTECTED] 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