This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VEC re-write [patch 01/25]
On Sun, Nov 18, 2012 at 8:03 PM, Diego Novillo <dnovillo@google.com> wrote:
>> And now bootstrap fails on AIX using GCC 4.6.3 with the error:
>>
>> /nasfarm/dje/src/src/gcc/c-family/c-lex.c: In function 'c_fileinfo*
>> get_fileinfo(const char*)':
>> /nasfarm/dje/src/src/gcc/c-family/c-lex.c:107:39: error: overloaded
>> function with no contextual type information
>>
>> which is
>>
>> file_info_tree = splay_tree_new ((splay_tree_compare_fn) strcmp,
>> 0,
>> (splay_tree_delete_value_fn) free);
>>
>
> Odd. The patch did not touch c-lex.c.
I opened PR 55384 to track this
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55384
The problem is AIX stdlib.h defines
#define vec_free free
and vec.h
defines two functions named vec_free()
With the VEC changes, these now are renamed "free" and lead to
ambiguous name resolution.
I am not sure where
#undef vec_free
should be placed. In vec.h or system.h?
Thanks, David