Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47141 - Spim 6.5 bugfix patch
Summary: Spim 6.5 bugfix patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 14:26 UTC by Luke Macken (RETIRED)
Modified: 2004-04-10 19:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A trivial patch to fix this bug (parser.y.patch,270 bytes, patch)
2004-04-07 14:26 UTC, Luke Macken (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macken (RETIRED) gentoo-dev 2004-04-07 14:26:30 UTC
There is a bug in spim 6.5 where doing the following would generate the wrong code:

lw      $s0, FRAMESIZE-4($sp) 

A way to get around this is to do -4+FRAMESIZE($sp).  
Here is a patch to fix this bug.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Luke Macken (RETIRED) gentoo-dev 2004-04-07 14:26:58 UTC
Created attachment 28852 [details, diff]
A trivial patch to fix this bug
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 19:22:02 UTC
Can you give an example of the wrong code please?  Ideal would be code
generated before and after your patch.  Thanks.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-04-10 19:11:27 UTC
Ok, confirmed bug and patch with upstream.  Added to CVS.  Thanks for
the bug report and patch.