From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75934 invoked by alias); 24 Apr 2015 03:25:57 -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 75925 invoked by uid 89); 24 Apr 2015 03:25:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 24 Apr 2015 03:25:56 +0000 Received: by oiko83 with SMTP id o83so30941894oik.1 for ; Thu, 23 Apr 2015 20:25:54 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.194.84 with SMTP id s81mr5188775oif.39.1429845954055; Thu, 23 Apr 2015 20:25:54 -0700 (PDT) Received: by 10.76.95.133 with HTTP; Thu, 23 Apr 2015 20:25:53 -0700 (PDT) In-Reply-To: <5535F7EF.1000305@mentor.com> References: <5535F7EF.1000305@mentor.com> Date: Fri, 24 Apr 2015 03:25:00 -0000 Message-ID: Subject: Re: [PATCH][PR65802] Mark ifn_va_arg with ECF_NOTHROW From: "Bin.Cheng" To: Tom de Vries Cc: Richard Biener , GCC Patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg01482.txt.bz2 On Tue, Apr 21, 2015 at 3:10 PM, Tom de Vries wrote: > Hi, > > this patch fixes PR65802. > > diff --git a/gcc/testsuite/g++.dg/ pr65802.C b/gcc/testsuite/g++.dg/pr65802.C > new file mode 100644 > index 0000000..26e5317 > --- /dev/null > +++ b/gcc/testsuite/g++.dg/pr65802.C > @@ -0,0 +1,29 @@ > +// { dg-do compile } > +// { dg-options "-O0" } > + > +typedef int tf (); > + > +struct S > +{ > + tf m_fn1; > +} a; > + > +void > +fn1 () > +{ > + try > + { > + __builtin_va_list c; > + { > + int *d = __builtin_va_arg (c, int *); > + int **e = &d; > + __asm__("" : "=d"(e)); Hi, thanks for fixing the issue. But 'd' is a machine specific constraint? This case failed on all arm processors. Thanks, bin > + a.m_fn1 (); > + } > + a.m_fn1 (); > + } > + catch (...) > + { > + > + } > +} > OK for trunk? > > Thanks, > - Tom