move stab definition of beginning of function to after the prologue
[unix-history] / usr / src / old / pcc / ccom.tahoe / code.c
index 0ce7840..eecec80 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)code.c     1.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)code.c     1.4 (Berkeley) %G%";
 #endif
 
 # include "pass1.h"
 #endif
 
 # include "pass1.h"
@@ -181,15 +181,6 @@ bfcode( a, n ) int a[]; {
        /* routine prolog */
 
        printf( "       .word   L%d\n", ftnno);
        /* routine prolog */
 
        printf( "       .word   L%d\n", ftnno);
-       if (gdebug) {
-#ifdef STABDOT
-               pstabdot(N_SLINE, lineno);
-#else
-               pstab(NULLNAME, N_SLINE);
-               printf("0,%d,LL%d\n", lineno, labelno);
-               printf("LL%d:\n", labelno++);
-#endif
-       }
        ftlab1 = getlab();
        ftlab2 = getlab();
        printf( "       jbr     L%d\n", ftlab1);
        ftlab1 = getlab();
        ftlab2 = getlab();
        printf( "       jbr     L%d\n", ftlab1);
@@ -240,6 +231,15 @@ bfcode( a, n ) int a[]; {
                        }
 
                }
                        }
 
                }
+       if (gdebug) {
+#ifdef STABDOT
+               pstabdot(N_SLINE, lineno);
+#else
+               pstab(NULLNAME, N_SLINE);
+               printf("0,%d,LL%d\n", lineno, labelno);
+               printf("LL%d:\n", labelno++);
+#endif
+       }
        fdefflag = 1;
        }
 
        fdefflag = 1;
        }