[perl #36407] [BUG] imcc - register allocation

Christoph Otto via RT parrotbug-followup at parrotcode.org
Sat Apr 18 03:09:11 UTC 2009


On Sun Jun 15 06:26:12 2008, chromatic at wgz.org wrote:
> On Sunday 15 June 2008 03:31:56 Patrick R. Michaud wrote:
> 
> > On Sat, Jun 14, 2008 at 08:58:22PM -0400, Bob Rogers wrote:
> > > [...]  And
> > > the easiest fix would be to decide not to support it at all.
> > +1.  Another +1 if we can somehow get IMCC to report an error
> > when there's a label/symbol conflict.
> 
> I think that may be possible.  I'll look into it while I'm fixing
> another bug
> in register allocation today.
> 
> -- c
> 

The attached patch makes imcc fail more gracefully when a symreg and a
label have the same name.  I'm not exactly sure if this is the kind of
fix that we're looking for, but it does report the correct line number
for rgrjr's example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imcc_duplicate_symbols_fix.patch
Type: text/x-diff
Size: 1293 bytes
Desc: not available
URL: <http://lists.parrot.org/pipermail/parrot-dev/attachments/20090417/d5132d78/attachment.bin>


More information about the parrot-dev mailing list