Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.225
 
1.226
 
MAIN:ragge:20080622152459
 
reader.c
_>12271227 }
 12281228 
 12291229 /*
<> 1230+ * Check that given constraints are valid.  Currently only cc and memory.
  1231+ */
  1232+static void
  1233+ccheck(NODE *p, void *arg)
  1234+{
  1235+        if (p->n_op == ICON && p->n_type == STRTY)
  1236+                return; /* no constraints */
  1237+
  1238+        if (strcmp(p->n_name, "cc") == 0 || strcmp(p->n_name, "memory") == 0)
  1239+                return;
  1240+#ifdef notyet
  1241+        if (myccheck(p))
  1242+                return;
  1243+#endif
  1244+        comperr("unsupporter xasm constraint %s", p->n_name);
  1245+}
  1246+
  1247+/*
12301248  * Ensure that a node is correct for the destination.
 12311249  */
 12321250 static void
     
 !
12391257         char *w;
 12401258         int asg = 0;
 12411259 
<>1242 -#ifdef notyet
12431260         if (myxasm(ip, p))
 12441261                 return/* handled by target-specific code */
<>1245 -#endif
12461262 
 12471263         w = p->n_name;
 12481264         if (*w == '=')
     
 !
12941310                  */
 12951311                 flist(p, ltypify, ip);
 12961312 
<>1297 -
12981313                 p = ip->ip_node->n_right;
<>1299 -                if (p->n_op != ICON || p->n_type != STRTY)
 1300 -                        uerror("xasm constraints not supported");
  1314+                /* Check validity of statement constraints */
  1315+                flist(p, ccheck, 0);
<_13011316         }
 13021317 }
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-18 19:22 +0100