The compile fails with the following error: "argument format specified for non-function" It's due to a lack of a feature in gcc 3.0.x That features only appear in gcc 3.1 As seen in cvsweb: RCS file: /cvs/gcc/gcc/gcc/c-format.c,v retrieving revision 1.1.4.1 retrieving revision 1.17 diff -u -r1.1.4.1 -r1.17 --- gcc/gcc/c-format.c 2001/03/02 19:51:56 1.1.4.1 gcc_3_0_4_release +++ gcc/gcc/c-format.c 2002/02/20 22:54:32 1.17 gcc_3_1_release .... tree argument; - unsigned int arg_num; - - if (TREE_CODE (decl) != FUNCTION_DECL) - { - error_with_decl (decl, - "argument format specified for non-function `%s'"); - return; - } + unsigned HOST_WIDE_INT arg_num; ....
Created attachment 760 [details] Patch 1 of 2 to fix that problem
Created attachment 761 [details] Patch 2 of 2 to fix that problem Here it is. It works for me. Need futher testing but in theory, it should works without any problem.
*** Bug 2039 has been marked as a duplicate of this bug. ***
looks good. Thanks.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.