diff options
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -192,7 +192,11 @@ class Parse(object): output += self.globalInit if not "main" in self.functions: - self.logger.warning("No main function found with label 'fn_main'") + if "fn_main" in self.labels: + self.logger.info("No main function was found in C, but label" + " 'fn_main' exists in assembly") + else: + self.logger.warning("No main function found with label 'fn_main'") output.append(self.asm.branch_op("BRA", "fn_main")) output.append("") output += self.codeSegment |