Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.208
 
1.209
 
MAIN:gmcgarry:20080625061409
 
pftn.c
_>18781878         return u;
 18791879 }
 18801880 
<> 1881+/*
  1882+ * Determine if a value is known to be constant at compile-time and
  1883+ * hence that PCC can perform constant-folding on expressions involving
  1884+ * that value.
  1885+ */
  1886+static NODE *
  1887+builtin_constant_p(NODE *f, NODE *a)
  1888+{
  1889+        int isconst = (a != NULL && a->n_op == ICON);
  1890+
  1891+        tfree(f);
  1892+        tfree(a);
  1893+
  1894+        return bcon(isconst);
  1895+}
  1896+
18811897 #ifndef TARGET_STDARGS
 18821898 static NODE *
 18831899 builtin_stdarg_start(NODE *f, NODE *a)
     
 !
19852001         NODE *(*fun)(NODE *f, NODE *a);
 19862002 } bitable[] = {
 19872003         { "__builtin_alloca", builtin_alloca },
<> 2004+        { "__builtin_constant_p", builtin_constant_p },
<_19882005 #ifndef TARGET_STDARGS
 19892006         { "__builtin_stdarg_start", builtin_stdarg_start },
 19902007         { "__builtin_va_arg", builtin_va_arg },
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-09-20 07:58 +0200