public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/10848: avr-gcc (3.2) generates bad assembler code
@ 2003-05-18 21:46 speja
  0 siblings, 0 replies; only message in thread
From: speja @ 2003-05-18 21:46 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2143 bytes --]


>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==


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-18 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18 21:46 target/10848: avr-gcc (3.2) generates bad assembler code speja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).