From patchwork Tue Nov 27 14:09:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 202236 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 9DB562C0093 for ; Wed, 28 Nov 2012 01:10:11 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1354630213; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=pkd6zBDz/qT82GuZQnp5 nEsxbdI=; b=cl+t7c572ZyyxM/Hld27nt0Y1XNXnU2kU0jXwyXvuwz6VMaIwp9D ytfNgoVPCRHhAQ9hP9A558cBXNYItjRHoaMNa+j02/q2VZs+SnzVvWF0uEP38oMn izttsReKlyYjXSgt7Ia9EGNho9VmKWhFVW+Ivh9IWmx1MqeRqvilxyU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Mwht7QD5KNh5p41hl/BzPHY7FMvzkQmg1YCg3KXw7nDR2G3aYsBQtq9EAenyAZ LAHdJY6VAh5v1WeDP13JtSELyJ0PomVudb/APS6sFHIq9YC9z3uv5ai2+RgI6wcD OxUVAMtyL+1uG0GcTC879rBwO7C8OnDX/0sPs/AYicLDs=; Received: (qmail 30992 invoked by alias); 27 Nov 2012 14:10:05 -0000 Received: (qmail 30964 invoked by uid 22791); 27 Nov 2012 14:10:02 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Nov 2012 14:09:55 +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 qARE9tQM007509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Nov 2012 09:09:55 -0500 Received: from zalov.redhat.com (vpn1-7-145.ams2.redhat.com [10.36.7.145]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qARE9r0D016433 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Nov 2012 09:09:55 -0500 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.redhat.com (8.14.5/8.14.5) with ESMTP id qARE9qoV019692; Tue, 27 Nov 2012 15:09:52 +0100 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id qARE9qQM019691; Tue, 27 Nov 2012 15:09:52 +0100 Date: Tue, 27 Nov 2012 15:09:52 +0100 From: Jakub Jelinek To: Dodji Seketeli Cc: gcc-patches@gcc.gnu.org Subject: [asan, tsan] Don't ICE with -Og -fsanitize=address Message-ID: <20121127140952.GC2315@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 Hi! I've noticed we don't schedule asan/tsan passes for -Og, which results in ICEs. For -O0 that is handled by pass_[at]san_O0, but for -Og which also doesn't use the normal optimization queue there is nothing. Ok for trunk? 2012-11-27 Jakub Jelinek * passes.c (init_optimization_passes): Add pass_asan and pass_tsan to -Og optimization passes. Jakub --- gcc/passes.c.jj 2012-11-27 12:08:02.000000000 +0100 +++ gcc/passes.c 2012-11-27 15:04:59.722410179 +0100 @@ -1536,6 +1536,8 @@ init_optimization_passes (void) /* Copy propagation also copy-propagates constants, this is necessary to forward object-size results properly. */ NEXT_PASS (pass_copy_prop); + NEXT_PASS (pass_asan); + NEXT_PASS (pass_tsan); NEXT_PASS (pass_rename_ssa_copies); NEXT_PASS (pass_dce); /* Fold remaining builtins. */