From patchwork Mon Nov 17 09:41:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 411452 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 73CC9140081 for ; Mon, 17 Nov 2014 20:41:55 +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 :message-id:date:from:mime-version:to:cc:subject:content-type :content-transfer-encoding; q=dns; s=default; b=nxg+yJxQgYOIx3aD oEo5NpvhiMARTe0xEJlhUxf1nHEBir0j0LZbDYkrk8NhzIJwvLlWTwhR4Gk9uwqQ S4ANhkV3bfqljP+qvSS2EX5mLasVRylSRrBqaIH0vySAvlf0T8I/ygynSI0udkGM ro6g/CNXctwYNOZdRNd49chnJiM= 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 :message-id:date:from:mime-version:to:cc:subject:content-type :content-transfer-encoding; s=default; bh=yvS2NqyWMpRyLq8Y+BOCKg 45e28=; b=rMfG7eRPsPYZLivPv4F40xsDOlgKGVBxfOPGBeTYlxAWtr7jvfUsxT iPYP6LHbVAwsB58yagUPK2TTeUTwCGGFHF7mv3vDYUSRHvSaJiU9oz7NTKEdSBZ4 p3wTTddmfy4aAXn5xxjnuxRMzhtJGAPJuQwKUZC59hjk+XifkJOLM= Received: (qmail 27444 invoked by alias); 17 Nov 2014 09:41:48 -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 27432 invoked by uid 89); 17 Nov 2014 09:41:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 17 Nov 2014 09:41:45 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPbBBR62PQx1xqvTHw== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (ip5b43a95f.dynamic.kabel-deutschland.de [91.67.169.95]) by smtp.strato.de (RZmta 35.11 DYNA|AUTH) with ESMTPSA id I025e0qAH9fgLd0 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate); Mon, 17 Nov 2014 10:41:42 +0100 (CET) Message-ID: <5469C2D4.3030407@gjlay.de> Date: Mon, 17 Nov 2014 10:41:40 +0100 From: Georg-Johann Lay User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Denis Chertykov CC: GCC Patches Subject: [avr,committed]: Fix ICE with -mdeb X-IsSubscribed: yes -mdeb ran into a null pointer, hence applied the following fix. http://gcc.gnu.org/r217651 Johann gcc/ * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]: Set avr_log_details to "all". Index: avr-log.c =================================================================== --- avr-log.c (revision 217649) +++ avr-log.c (working copy) @@ -316,6 +316,9 @@ avr_log_set_avr_log (void) { bool all = TARGET_ALL_DEBUG != 0; + if (all) + avr_log_details = "all"; + if (all || avr_log_details) { /* Adding , at beginning and end of string makes searching easier. */