Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.37
 
1.38
 
MAIN:ragge:20030623185010
 
trees.c
_>17651765 #endif
 17661766 #endif
 17671767 
<>1768 -#if !defined(MULTIPASS)
 1769 -static void
 1770 -to_pass2(NODE *p)
 1771 -{
 1772 -        if (isinlining)
 1773 -                inline_savenode(p);
 1774 -        else
 1775 -                topt_treecomp(p);
 1776 -}
 1777 -#endif
 1778 -
17791768 void
 17801769 ecode(NODE *p)  
 17811770 {
     
 !
17911780 #endif
 17921781         p2tree(p);
 17931782 #if !defined(MULTIPASS)
<>1794 -        to_pass2(p);
  1783+        send_passt(IP_NODE, p);
17951784 #endif
 17961785 }
 17971786 
     
 !
18141803                 vprintf(fmt, ap);
 18151804         va_end(ap);
 18161805 }
<_ 1806+
  1807+/*
  1808+ * Send something further on to the next pass.
  1809+ */
  1810+void
  1811+send_passt(int type, ...)
  1812+{
  1813+        struct interpass *ip;
  1814+        va_list ap;
  1815+
  1816+        va_start(ap, type);
  1817+        ip = isinlining ? permalloc(sizeof(*ip)) : tmpalloc(sizeof(*ip));
  1818+        ip->type = type;
  1819+        switch (type) {
  1820+        case IP_NODE:
  1821+                ip->ip_node = va_arg(ap, NODE *);
  1822+                break;
  1823+        case IP_PROLOG:
  1824+        case IP_NEWBLK:
  1825+        case IP_EPILOG:
  1826+                ip->ip_regs = va_arg(ap, int);
  1827+                ip->ip_auto = va_arg(ap, int);
  1828+                ip->ip_retl = va_arg(ap, int);
  1829+                break;
  1830+        default:
  1831+                cerror("bad send_passt type %d", type);
  1832+        }
  1833+        va_end(ap);
  1834+        if (isinlining)
  1835+                inline_addarg(ip);
  1836+        else if (Oflag)
  1837+                topt_compile(ip);
  1838+        else
  1839+                pass2_compile(ip);
  1840+}
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-21 06:20 +0200