This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19293] New: avr-gcc crashes when using shifts with negative shift count
- From: "bjoern dot m dot haase at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2005 16:01:29 -0000
- Subject: [Bug c/19293] New: avr-gcc crashes when using shifts with negative shift count
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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