shithub: mc

Download patch

ref: 416a47f74171d93f9237afede0d434bcc841e3fd
parent: a143d21397a31766874783b7e008a54928af5da5
author: Ori Bernstein <[email protected]>
date: Tue Jul 24 21:35:41 EDT 2012

Add platform prefix to what we're checking against.

--- a/8/isel.c
+++ b/8/isel.c
@@ -14,6 +14,8 @@
 #include "opt.h"
 #include "asm.h"
 
+#include "platform.h"
+
 /* string tables */
 char *insnfmts[] = {
 #define Insn(val, fmt, use, def) fmt,
@@ -753,7 +755,7 @@
 {
     size_t i, j;
 
-    if (fn->isexport || !strcmp(fn->name, "main"))
+    if (fn->isexport || !strcmp(fn->name, Fprefix "main"))
         fprintf(fd, ".globl %s\n", fn->name);
     fprintf(fd, "%s:\n", fn->name);
     for (j = 0; j < s->cfg->nbb; j++) {