------- Comment #3 from hjl dot tools at gmail dot com 2010-06-29 14:31 ------- More errors/warnings on i386.c:
../../src-trunk/gcc/config/i386/i386.c: In function 'ix86_function_arg_advance': ../../src-trunk/gcc/config/i386/i386.c:6086:5: error: passing argument 3 of 'function_arg_advance_64' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6027:1: note: expected 'tree' but argument is of type 'const_tree' ../../src-trunk/gcc/config/i386/i386.c:6088:5: error: passing argument 3 of 'function_arg_advance_32' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:5939:1: note: expected 'tree' but argument is of type 'const_tree' ../../src-trunk/gcc/config/i386/i386.c: In function 'ix86_function_arg': ../../src-trunk/gcc/config/i386/i386.c:6331:5: error: passing argument 2 of 'type_natural_mode' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:5183:1: note: expected 'struct CUMULATIVE_ARGS *' but argument is of type 'const struct CUMULATIVE_ARGS *' ../../src-trunk/gcc/config/i386/i386.c:6334:5: error: passing argument 1 of 'function_arg_ms_64' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6258:1: note: expected 'struct CUMULATIVE_ARGS *' but argument is of type 'const struct CUMULATIVE_ARGS *' ../../src-trunk/gcc/config/i386/i386.c:6336:5: error: passing argument 1 of 'function_arg_64' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6222:1: note: expected 'struct CUMULATIVE_ARGS *' but argument is of type 'const struct CUMULATIVE_ARGS *' ../../src-trunk/gcc/config/i386/i386.c:6336:5: error: passing argument 4 of 'function_arg_64' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6222:1: note: expected 'tree' but argument is of type 'const_tree' ../../src-trunk/gcc/config/i386/i386.c:6338:5: error: passing argument 1 of 'function_arg_32' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6105:1: note: expected 'struct CUMULATIVE_ARGS *' but argument is of type 'const struct CUMULATIVE_ARGS *' ../../src-trunk/gcc/config/i386/i386.c:6338:5: error: passing argument 4 of 'function_arg_32' discards 'const' qualifier from pointer target type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:6105:1: note: expected 'tree' but argument is of type 'const_tree' ../../src-trunk/gcc/config/i386/i386.c: In function 'ix86_setup_incoming_varargs': ../../src-trunk/gcc/config/i386/i386.c:7050:5: error: implicit declaration of function 'function_arg_advance' [-Werror=implicit-function-declaration] ../../src-trunk/gcc/config/i386/i386.c: At top level: ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: initialization from incompatible pointer type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: (near initialization for 'targetm.calls.function_arg_advance') [-Werror] ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: initialization from incompatible pointer type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: (near initialization for 'targetm.calls.function_arg') [-Werror] ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: initialization from incompatible pointer type [-Werror] ../../src-trunk/gcc/config/i386/i386.c:30995:8: error: (near initialization for 'targetm.calls.function_incoming_arg') [-Werror] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44713