From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7907 invoked by alias); 7 Aug 2014 09:46:42 -0000 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 Received: (qmail 7896 invoked by uid 89); 7 Aug 2014 09:46:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Aug 2014 09:46:41 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 07 Aug 2014 10:46:39 +0100 Received: from shawin233 ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Aug 2014 10:46:37 +0100 From: "Bin Cheng" To: Subject: [PATCH lto]Fix the mis-matched arguments of lto_define_builtins Date: Thu, 07 Aug 2014 09:46:00 -0000 Message-ID: <000e01cfb224$7ba8caa0$72fa5fe0$@arm.com> MIME-Version: 1.0 X-MC-Unique: 114080710463900801 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000F_01CFB267.89CCA6E0" X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00779.txt.bz2 This is a multipart message in MIME format. ------=_NextPart_000_000F_01CFB267.89CCA6E0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-length: 339 Hi, As analyzed in PR62032, this patch fixes the latent lto bug by switching arguments of lto_define_builtins, otherwise vsnprintf-chk.c would fail on arm/aarch64 with lto options. Is it ok if bootstrap and test pass? 2014-08-07 Bin Cheng PR lto/62032 * lto/lto-lang.c (lto_init): Switch mis-matched arguments. ------=_NextPart_000_000F_01CFB267.89CCA6E0 Content-Type: text/plain; name=lto-va_list-builtins-20140807.txt Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="lto-va_list-builtins-20140807.txt" Content-length: 638 Index: gcc/lto/lto-lang.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/lto/lto-lang.c (revision 213698) +++ gcc/lto/lto-lang.c (working copy) @@ -1192,10 +1192,10 @@ lto_init (void) } else { - lto_define_builtins (va_list_type_node, - build_reference_type (va_list_type_node)); + lto_define_builtins (build_reference_type (va_list_type_node), + va_list_type_node); } -=20=20 + if (flag_cilkplus) cilk_init_builtins (); =20 ------=_NextPart_000_000F_01CFB267.89CCA6E0--