From patchwork Wed Feb 9 19:20:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 82520 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8E23AB70A3 for ; Thu, 10 Feb 2011 06:23:23 +1100 (EST) Received: (qmail 15647 invoked by alias); 9 Feb 2011 19:23:22 -0000 Received: (qmail 15639 invoked by uid 22791); 9 Feb 2011 19:23:21 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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; Wed, 09 Feb 2011 19:23:16 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 296ADCB01F2; Wed, 9 Feb 2011 20:23:14 +0100 (CET) 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 aPH1y4tHx8Js; Wed, 9 Feb 2011 20:23:14 +0100 (CET) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id ECFAACB01E0; Wed, 9 Feb 2011 20:23:11 +0100 (CET) From: Eric Botcazou To: "Andreas Krebbel" Subject: Re: [PATCH] lower gimple: Sustain line number info for returns if possible Date: Wed, 9 Feb 2011 20:20:07 +0100 User-Agent: KMail/1.9.9 Cc: gcc-patches@gcc.gnu.org, "H.J. Lu" , rguenther@suse.de References: <20110207144037.GA7048@bart> <20110208162750.GA6422@bart> In-Reply-To: <20110208162750.GA6422@bart> MIME-Version: 1.0 Message-Id: <201102092020.08071.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > this should fix the testsuite regressions. Here are the missing adjustement for Objective-C++ and Ada. Applied. 2011-02-09 Eric Botcazou PR middle-end/47646 * gnat.dg/uninit_func.adb: Adjust dg directive. 2011-02-09 Dominique Dhumieres PR middle-end/47646 * obj-c++.dg/attributes/method-noreturn-1.mm: Adjust dg directives. Index: gnat.dg/uninit_func.adb =================================================================== --- gnat.dg/uninit_func.adb (revision 169914) +++ gnat.dg/uninit_func.adb (working copy) @@ -2,12 +2,12 @@ -- { dg-options "-O -Wall" } function uninit_func (A, B : Boolean) return Boolean is - C : Boolean; -- { dg-warning "may be used uninitialized" } + C : Boolean; begin if A then C := False; elsif B then C := True; end if; - return C; + return C; -- { dg-warning "may be used uninitialized" } end; Index: obj-c++.dg/attributes/method-noreturn-1.mm =================================================================== --- obj-c++.dg/attributes/method-noreturn-1.mm (revision 169914) +++ obj-c++.dg/attributes/method-noreturn-1.mm (working copy) @@ -18,11 +18,11 @@ + (id) method1 { return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */ -} /* { dg-warning ".noreturn. function does return" } */ +} /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 20 } */ - (id) method2 { return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */ -} /* { dg-warning ".noreturn. function does return" } */ +} /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 24 } */ + (id) method3 { abort ();