From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19278 invoked by alias); 3 May 2011 19:51:30 -0000 Received: (qmail 19269 invoked by uid 22791); 3 May 2011 19:51:30 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 May 2011 19:51:16 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 11B5ECB02A9; Tue, 3 May 2011 21:51:15 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3jQ8JzchwOWe; Tue, 3 May 2011 21:51:12 +0200 (CEST) Received: from new-host.home (ADijon-552-1-151-3.w86-213.abo.wanadoo.fr [86.213.234.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 5FDE3CB0222; Tue, 3 May 2011 21:51:11 +0200 (CEST) From: Eric Botcazou To: "Joseph S. Myers" Subject: Re: [google]: initialize language field for clone function struct Date: Tue, 03 May 2011 19:52:00 -0000 User-Agent: KMail/1.9.9 Cc: Jan Hubicka , gcc-patches@gcc.gnu.org, Xinliang David Li References: <201105032034.51751.ebotcazou@adacore.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201105032151.17713.ebotcazou@adacore.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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: 2011-05/txt/msg00217.txt.bz2 > In my view we should require front ends to take responsibility for > variable-size types, and get rid of this language-independent function > (copying such parts as are needed into the front ends that need them). I don't really see the point here. GCC supports variable-sized types in the middle-end (stor-layout.c, gimplifier) so why special-casing this function? > C for example uses its own version as the language-independent one isn't > right for C. The C version looks an almost exact duplicate of the generic one though. We should probably try to reconciliate the different versions. > Similarly, the pending_size code should be local to front ends. Yes, I agree here. gigi already does the full management and doesn't use it. -- Eric Botcazou