>Number: 10848 >Category: target >Synopsis: avr-gcc (3.2) generates bad assembler code >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Sun May 18 21:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Peter Janhäll >Release: 3.2 >Organization: >Environment: Linux bums 2.2.5-22 #1 Wed Jun 2 09:02:27 EDT 1999 i586 unknown >Description: bums!speja% avr-gcc -g --save-temps error2.c error2.s: Assembler messages: error2.s:128: Error: operand out of range: -65 bums!speja% avr-gcc -v Reading specs from /home/speja/local/lib/gcc-lib/avr/3.2/specs Configured with: ../gcc-3.2/configure --prefix=/home/speja/local --enable-languages=c --program-prefix=avr- --target=avr Thread model: single gcc version 3.2 bums!speja% avr-as -v GNU assembler version 2.14.90 (avr) using BFD version 2.14.90 20030517 >How-To-Repeat: Compile error2.c with 'avr-gcc', it will not pass the assembler. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="error2.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="error2.c" CnN0YXRpYyB1bnNpZ25lZCBjaGFyIGV2ZW50c1sxNl0sIHJpeD0wLCB3aXg9MDsKCi8qIEVuYWJs aW5nIHRoZSBmb2xsb3dpbmcgZnVuY3Rpb24gcHJvZHVjZXMgYSBzZWNvbmQgZXJyb3IgKi8KI2lm IDAKaW50IGZvbyh1bnNpZ25lZCB4LCB1bnNpZ25lZCBpKSB7CiAgcmV0dXJuICEoeCYoMTw8aSkp Owp9CiNlbmRpZgoKc3RhdGljIHVuc2lnbmVkIGNoYXIga2l4PTAsIGxhc3RrZXlzWzNdLCBsYXN0 a2V5OwoKdm9pZCBrZXlfcG9sbCh2b2lkKSB7CiAgdW5zaWduZWQgY2hhciB4OwogIHVuc2lnbmVk IGNoYXIgaTsKICBsYXN0a2V5c1traXhdID0gNTU7CiAgeCA9IChsYXN0a2V5c1swXSZsYXN0a2V5 c1sxXSkKICAgIHwgKGxhc3RrZXlzWzBdJmxhc3RrZXlzWzJdKQogICAgfCAobGFzdGtleXNbMV0m bGFzdGtleXNbMl0pOwogIGlmICggeCAhPSBsYXN0a2V5KQogICAgZm9yIChpPTA7IGk8ODsgaSsr KQogICAgICBpZiAoKGxhc3RrZXleeCkmKDE8PGkpKSB7Cgl1bnNpZ25lZCBjaGFyIHogPSAod2l4 KzEpJWxlbmd0aChldmVudHMpOwoJaWYgKHJpeCAhPSB6ICkgewoJICBldmVudHNbd2l4XSA9IChp KzEpPDwxOwoJICBpZiAoISh4JigxPDxpKSkpCgkgICAgZXZlbnRzW3dpeF0gfD0gMTsKCX0KICAg ICAgfQp9CgoKCg==