So I'm going through http://www.dododge.net/tcc/patches.html to make sure
I
have it all merged, and I'm remembering where I left off:
I applied the "function pointers within a conditional expression" fix, and
the "typedef typedef;" fix, but on the function parameters patch, I can't
reproduce the failure in my tree. The patch isn't applied, but possibly
it
was already fixed somewhere else?
Your patch description suggests:
extern void foo(int);
void foo(int const x) { /* do something */ }
I tried lots of variants:
diff -r 60ea6ef39c6f tests/tcctest.c
--- a/tests/tcctest.c Wed Feb 21 13:20:21 2007 -0500
+++ b/tests/tcctest.c Thu Feb 22 14:55:40 2007 -0500
@@ -80,6 +80,7 @@ void statement_expr_test(void);
void statement_expr_test(void);
void asm_test(void);
void builtin_test(void);
+void const_warn_test(void);
int fib(int n);
void num(int n);
@@ -526,6 +527,7 @@ int main(int argc, char **argv)
local_label_test();
asm_test();
builtin_test();
+ const_warn_test();
return 0;
}
@@ -1991,10 +1993,12 @@ void builtin_test(void)
printf("res = %d\n", __builtin_constant_p(constant_p_var));
}
-
-void const_func(const int a)
-{
-}
+extern void const_func(int a);
+void const_func(int const a)
+{
+}
+extern void other_const_func(const int a);
+void other_const_func(int a) { }
void const_warn_test(void)
{
And I can't get "make test" to reproduce the failure with the current
http://landley.net/hg/tinycc tree.
Am I doing something wrong?
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007
11:55 AM