Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(192)

Side by Side Diff: src/cmd/8g/gsubr.c

Issue 6845053: code review 6845053: cmd/8g: fix erroneous LEAL nil. (Closed)
Patch Set: diff -r 2a55e349097f https://go.googlecode.com/hg/ Created 12 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/cmd/8g/cgen.c ('k') | test/fixedbugs/issue4399.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Derived from Inferno utils/8c/txt.c 1 // Derived from Inferno utils/8c/txt.c
2 // http://code.google.com/p/inferno-os/source/browse/utils/8c/txt.c 2 // http://code.google.com/p/inferno-os/source/browse/utils/8c/txt.c
3 // 3 //
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
6 // Portions Copyright © 1997-1999 Vita Nuova Limited 6 // Portions Copyright © 1997-1999 Vita Nuova Limited
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com) 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com)
8 // Portions Copyright © 2004,2006 Bruce Ellis 8 // Portions Copyright © 2004,2006 Bruce Ellis
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 switch(as) { 1740 switch(as) {
1741 case AMOVB: 1741 case AMOVB:
1742 case AMOVW: 1742 case AMOVW:
1743 case AMOVL: 1743 case AMOVL:
1744 if(f != N && t != N && samaddr(f, t)) 1744 if(f != N && t != N && samaddr(f, t))
1745 return nil; 1745 return nil;
1746 break; 1746 break;
1747 ········ 1747 ········
1748 case ALEAL: 1748 case ALEAL:
1749 if(f != N && isconst(f, CTNIL)) 1749 if(f != N && isconst(f, CTNIL))
1750 » » » fatal("gins LEAQ nil %T", f->type); 1750 » » » fatal("gins LEAL nil %T", f->type);
1751 break; 1751 break;
1752 } 1752 }
1753 1753
1754 memset(&af, 0, sizeof af); 1754 memset(&af, 0, sizeof af);
1755 memset(&at, 0, sizeof at); 1755 memset(&at, 0, sizeof at);
1756 if(f != N) 1756 if(f != N)
1757 naddr(f, &af, 1); 1757 naddr(f, &af, 1);
1758 if(t != N) 1758 if(t != N)
1759 naddr(t, &at, 1); 1759 naddr(t, &at, 1);
1760 p = prog(as); 1760 p = prog(as);
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 2032
2033 int 2033 int
2034 sudoaddable(int as, Node *n, Addr *a) 2034 sudoaddable(int as, Node *n, Addr *a)
2035 { 2035 {
2036 USED(as); 2036 USED(as);
2037 USED(n); 2037 USED(n);
2038 USED(a); 2038 USED(a);
2039 2039
2040 return 0; 2040 return 0;
2041 } 2041 }
OLDNEW
« no previous file with comments | « src/cmd/8g/cgen.c ('k') | test/fixedbugs/issue4399.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b