From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17260 invoked by alias); 12 Feb 2014 08:01:47 -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 17242 invoked by uid 89); 12 Feb 2014 08:01:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2014 08:01:46 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1C81iBw011509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Feb 2014 03:01:44 -0500 Received: from [10.3.113.67] (ovpn-113-67.phx2.redhat.com [10.3.113.67]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s1C81gF2017118; Wed, 12 Feb 2014 03:01:43 -0500 Message-ID: <52FB2A66.3020308@redhat.com> Date: Wed, 12 Feb 2014 08:01:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Jan Hubicka CC: gcc-patches@gcc.gnu.org Subject: Re: Warn about virtual table mismatches References: <20140212035443.GE18400@kam.mff.cuni.cz> <52FAF715.2020100@redhat.com> <20140212062745.GA11693@kam.mff.cuni.cz> In-Reply-To: <20140212062745.GA11693@kam.mff.cuni.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-02/txt/msg00746.txt.bz2 On 02/11/2014 10:27 PM, Jan Hubicka wrote: >> On 02/11/2014 07:54 PM, Jan Hubicka wrote: >>> + /* Allow combining RTTI and non-RTTI is OK. */ >> >> You mean combining -frtti and -fno-rtti compiles? Yes, that's fine, >> though you need to prefer the -frtti version in case code from that >> translation unit uses the RTTI info. > > Is there some mechanism that linker will do so? At the moment we just chose variant > that would be selected by linker. I can make the choice, but what happens with non-LTO? Hmm, the linker might well make the wrong choice. Might be worth warning about this as well. > + "a type with the same name but number of virtual methods is " "but different number" Jason