This patch deactivates the detection of duplicate parameter and
mercurialtcc can compile merucialtcc again.

Does anyone has an idea for a real fix?

Any comments about revert the complete commit?


-- 
 
By by ... Detlef

diff -r 062087f616c1 tcc.c
--- a/tcc.c	Sun Dec 02 20:00:05 2007 +0800
+++ b/tcc.c	Tue Dec 18 21:22:44 2007 +0100
@@ -6136,9 +6136,13 @@ static void parse_function_parameters(CT
                 next();
             }
             convert_parameter_type(&pt);
+#if 0
+            /* XXX: a false positive is sometimes reported here*/
             if(check_field(first, n | SYM_FIELD))
                 error("redefinition of parameter '%s'",
                       get_tok_str(n, NULL));
+#endif
+
             s = sym_push(n | SYM_FIELD, &pt, 0, 0);
             *plast = s;
             plast = &s->next;
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to