From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10906 invoked by alias); 19 Nov 2012 01:14:33 -0000 Received: (qmail 10878 invoked by uid 22791); 19 Nov 2012 01:14:31 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vc0-f175.google.com (HELO mail-vc0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Nov 2012 01:14:27 +0000 Received: by mail-vc0-f175.google.com with SMTP id m8so271613vcd.20 for ; Sun, 18 Nov 2012 17:14:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.220.18 with SMTP id hw18mr12555732vcb.59.1353287666741; Sun, 18 Nov 2012 17:14:26 -0800 (PST) Received: by 10.58.235.232 with HTTP; Sun, 18 Nov 2012 17:14:26 -0800 (PST) In-Reply-To: References: Date: Mon, 19 Nov 2012 01:14:00 -0000 Message-ID: Subject: Re: VEC re-write [patch 01/25] From: David Edelsohn To: Diego Novillo Cc: GCC Patches Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01520.txt.bz2 On Sun, Nov 18, 2012 at 8:03 PM, Diego Novillo 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