develooper Front page | perl.perl6.internals | Postings from July 2002

[netlabs #770] [PATCH] imcc strangeness

From:
Sean O'Rourke
Date:
July 7, 2002 14:04
Subject:
[netlabs #770] [PATCH] imcc strangeness
Message ID:
rt-770-3601.5.60457410271695@netlabs
# New Ticket Created by  "Sean O'Rourke" 
# Please include the string:  [netlabs #770]
# in the subject line of all future correspondence about this issue. 
# <URL: http://bugs6.perl.org/rt2/Ticket/Display.html?id=770 >


simplify() was getting called with no arguments, but expecting one.  I
changed it to use the global interference_graph, which is what the other
routines seem to do.  Maybe I should reorder the file so prototypes get
checked, or add declarations to the header, but it's not my code...

/s

Index: imc.c
===================================================================
RCS file: /cvs/public/parrot/languages/imcc/imc.c,v
retrieving revision 1.9
diff -p -u -r1.9 imc.c
--- imc.c	4 Jul 2002 02:58:30 -0000	1.9
+++ imc.c	7 Jul 2002 20:55:01 -0000
@@ -180,9 +180,11 @@ int interferes(SymReg * r0, SymReg * r1)
  *
  */

-int simplify (SymReg **g){
+int simplify (){
     int changes = 0;
     int x;
+
+    SymReg ** g = interference_graph;

     for(x = 0; x < n_symbols; x++) {
 	if (g[x]->simplified) {







nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About