public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66486] New: MMIX code produced is invalid
@ 2015-06-10 13:03 ruckert at cs dot hm.edu
2015-06-12 1:21 ` [Bug target/66486] " hp at gcc dot gnu.org
2015-06-12 1:22 ` hp at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: ruckert at cs dot hm.edu @ 2015-06-10 13:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66486
Bug ID: 66486
Summary: MMIX code produced is invalid
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ruckert at cs dot hm.edu
Target Milestone: ---
The following c code:
typedef struct node { struct node *next; int i; } node;
void InsertEnd(node *p, node **head)
{ while (*head!=0) head=&((*head)->next);
*head=p;
}
compliled with mmix-gcc -O2 -S bug.c
produces:
InsertEnd IS @
LDO $15,$1,0
BZ $15,L:9
L:5 IS @
SET $1,$2
LDO $2,$1,0
PBNZ $2,L:5
L:9 IS @
STOU $0,$1,0
POP 0,0
In the first SET instruction $2 is uninitialized. Probably the $15 in the
first two instructions should be a $2.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/66486] MMIX code produced is invalid
2015-06-10 13:03 [Bug target/66486] New: MMIX code produced is invalid ruckert at cs dot hm.edu
@ 2015-06-12 1:21 ` hp at gcc dot gnu.org
2015-06-12 1:22 ` hp at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: hp at gcc dot gnu.org @ 2015-06-12 1:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66486
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |mmix-knuth-mmixware
CC| |hp at gcc dot gnu.org
Known to work| |4.3.5
Target Milestone|--- |4.3.5
Known to fail| |4.0.1
--- Comment #1 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
I can't reproduce this with current trunk (to-be 6.1). Note that gcc-4.0.1 is
quite old. I tried an old installation for gcc-4.3.5, and that too produces
correct code (using $2 instead of $15), so I'll have to simply advise to use a
newer version.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/66486] MMIX code produced is invalid
2015-06-10 13:03 [Bug target/66486] New: MMIX code produced is invalid ruckert at cs dot hm.edu
2015-06-12 1:21 ` [Bug target/66486] " hp at gcc dot gnu.org
@ 2015-06-12 1:22 ` hp at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: hp at gcc dot gnu.org @ 2015-06-12 1:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66486
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
Thus marking as fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-12 1:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10 13:03 [Bug target/66486] New: MMIX code produced is invalid ruckert at cs dot hm.edu
2015-06-12 1:21 ` [Bug target/66486] " hp at gcc dot gnu.org
2015-06-12 1:22 ` hp at gcc dot gnu.org
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).