From patchwork Tue Jan 27 18:20:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janus Weil X-Patchwork-Id: 433600 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F2F11401E7 for ; Wed, 28 Jan 2015 05:45:06 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=Vyb99Jvv9q66SpWyp9 xgBU2/e71bKkgLBKi2TPeUQZQUzs2IUnNCLQBs7Ok713XT07OnmJQROg/wMPZjXt yp7iSTDTam1sV+Kfb3WlOM2cVJ/3Ervif+MVMpcqEYwguQGPBKgh9csLc1RFC3/5 KDLl46EFz3RajL/Fbnid3OAhY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=d+ZHNsmNTkuP0AZ98FgJox3r CSo=; b=UWOiYkNk/wdjFVRrqNyWM1wouhrexR8X5KSVt/DN9ePOHe6vMKkn74mK eMXxF8Pklk6K3nujftZl5ATd4RambEgx3m96KiRFBCLxUvh2eh/oCWc/Kf9H37jc 1Yv9bi7+VnCloDIKw+lg2neIqFn8uN7/XozwZg/wg/bQP9wZk3Q= Received: (qmail 20387 invoked by alias); 27 Jan 2015 18:20:16 -0000 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 Received: (qmail 20306 invoked by uid 89); 27 Jan 2015 18:20:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qg0-f54.google.com Received: from mail-qg0-f54.google.com (HELO mail-qg0-f54.google.com) (209.85.192.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 27 Jan 2015 18:20:13 +0000 Received: by mail-qg0-f54.google.com with SMTP id q108so12964199qgd.13; Tue, 27 Jan 2015 10:20:10 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.140.96.33 with SMTP id j30mr4275128qge.92.1422382810838; Tue, 27 Jan 2015 10:20:10 -0800 (PST) Received: by 10.96.71.72 with HTTP; Tue, 27 Jan 2015 10:20:10 -0800 (PST) In-Reply-To: <20150127093028.GC1746@tucnak.redhat.com> References: <20150127093028.GC1746@tucnak.redhat.com> Date: Tue, 27 Jan 2015 19:20:10 +0100 Message-ID: Subject: Re: [Patch, Fortran, OOP] PR 64230: [4.9/5 Regression] Invalid memory reference in a compiler-generated finalizer for allocatable component From: Janus Weil To: Jakub Jelinek Cc: Andreas Schwab , gfortran , gcc-patches > On Tue, Jan 27, 2015 at 10:24:47AM +0100, Andreas Schwab wrote: >> >> > 2015-01-19 Janus Weil >> > >> > PR fortran/64230 >> > * gfortran.dg/class_allocate_18.f90: Extended. >> >> FAIL: gfortran.dg/class_allocate_18.f90 -O0 (test for excess errors) >> Excess errors: >> /usr/ia64-suse-linux/bin/ld: cannot find -lubsan Sorry for the breakage, guys! 2015-01-27 10:30 GMT+01:00 Jakub Jelinek : > Yeah, if you want to add ubsan tests, you need to add gfortran.dg/ubsan/ > directory and hack up ubsan.exp in there Thanks for the remark, I was suspecting something like that. However, for this case it's not really worth the hassle. In fact the test case does not really need the sanitizer and should also work without it. So I'll just remove the -fsanitize option: ! Cheers, Janus Index: gcc/testsuite/gfortran.dg/class_allocate_18.f90 =================================================================== --- gcc/testsuite/gfortran.dg/class_allocate_18.f90 (Revision 220180) +++ gcc/testsuite/gfortran.dg/class_allocate_18.f90 (Arbeitskopie) @@ -1,5 +1,4 @@ ! { dg-do run } -! { dg-options "-fsanitize=undefined" } ! ! PR 64230: [4.9/5 Regression] Invalid memory reference in a compiler-generated finalizer for allocatable component