From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13697 invoked by alias); 2 May 2011 22:13:04 -0000 Received: (qmail 13686 invoked by uid 22791); 2 May 2011 22:13:03 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 May 2011 22:12:49 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id p42MClIX026024 for ; Mon, 2 May 2011 15:12:48 -0700 Received: from yxn22 (yxn22.prod.google.com [10.190.4.86]) by hpaq6.eem.corp.google.com with ESMTP id p42MCYCu004702 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 2 May 2011 15:12:46 -0700 Received: by yxn22 with SMTP id 22so2335082yxn.20 for ; Mon, 02 May 2011 15:12:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.42.9 with SMTP id u9mr7231920ybj.244.1304374365755; Mon, 02 May 2011 15:12:45 -0700 (PDT) Received: by 10.150.192.11 with HTTP; Mon, 2 May 2011 15:12:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 02 May 2011 22:13:00 -0000 Message-ID: Subject: Re: [google]: initialize language field for clone function struct From: Xinliang David Li To: GCC Patches Cc: Jan Hubicka Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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/msg00126.txt.bz2 Is this one ok? David On Fri, Apr 29, 2011 at 4:38 PM, Xinliang David Li wro= te: > During function cloning, the language field of the src func is not > copied. This can lead to null dereference when gcc calls into langhook > functions. =A0Unfortunately, I lost track of the test case. > > Ok for trunk ? > > Thanks, > > David > > > 2011-04-29 =A0Xinliang David Li =A0 > > =A0 =A0 =A0 =A0* tree-inline.c (ininitialize_cfun): Initialize > =A0 =A0 =A0 =A0language field for clone cfun. >