From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37502 invoked by alias); 26 Feb 2016 10:43:38 -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 37425 invoked by uid 89); 26 Feb 2016 10:43:37 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=met X-HELO: mail-yw0-f176.google.com Received: from mail-yw0-f176.google.com (HELO mail-yw0-f176.google.com) (209.85.161.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Feb 2016 10:43:37 +0000 Received: by mail-yw0-f176.google.com with SMTP id h129so65822199ywb.1 for ; Fri, 26 Feb 2016 02:43:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=GgbTxZdc33UXvq5YYNf0yewn1H4zOKVRoc1u8/t7hXc=; b=WwQ3KBmcaQEgoo0+cgRJvBsVLAuiCcB0yBmvsZoRHXRueujZB9YtCKmhtTrbI6nrmV /bnQK+R2we95QC8HtHJrElinJwNZ3Img2KTkrpolPEGsQuWSCeYIGGcIfmoeWO8QZ9E9 lsdBnBsaMItJ9uTevzfs8AC+Hyi9WAJJmCe1I3PkXlVwxUVtkDmMTA2VjbKqlWA9yBGc ZhXvbgX/QJifSdmBSDMo20uteY2+QTVUlBR2+JWEk8YKCPQIWdwWI5dWZqOJoGFAyn7Z himy07b6lGYgQVBpHCtbQuajsRAXXcQcU/ICg/6RsxblR52D/xg2M+dirSC72KycgFdb qXDw== X-Gm-Message-State: AD7BkJJZD3XTQWzEFHniI8VrjUzTSA8Cko7rNZsAFU+6FqJLWj64z0DtqPjb51TUaDM27bN+bffxxX9FQIGuwg== MIME-Version: 1.0 X-Received: by 10.129.133.2 with SMTP id v2mr376059ywf.240.1456483415137; Fri, 26 Feb 2016 02:43:35 -0800 (PST) Received: by 10.37.216.79 with HTTP; Fri, 26 Feb 2016 02:43:35 -0800 (PST) In-Reply-To: References: Date: Fri, 26 Feb 2016 10:43:00 -0000 Message-ID: Subject: Re: [PATCH 3/4] Replace ENABLE_CHECKING with CHECKING_P in dwarf2out From: Richard Biener To: marxin Cc: GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg01772.txt.bz2 On Thu, Feb 25, 2016 at 11:06 AM, marxin wrote: > gcc/ChangeLog: Ok. Richard. > 2016-02-25 Martin Liska > > * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with > CHECKING_P. > (resolve_args_picking_1): Likewise. > * dwarf2out.h (struct GTY): Likewise. > --- > gcc/dwarf2out.c | 6 +++--- > gcc/dwarf2out.h | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c > index 97e192b..a8c21d8 100644 > --- a/gcc/dwarf2out.c > +++ b/gcc/dwarf2out.c > @@ -1325,7 +1325,7 @@ new_loc_descr (enum dwarf_location_atom op, unsigned HOST_WIDE_INT oprnd1, > dw_loc_descr_ref descr = ggc_cleared_alloc (); > > descr->dw_loc_opc = op; > -#if ENABLE_CHECKING > +#if CHECKING_P > descr->dw_loc_frame_offset = -1; > #endif > descr->dw_loc_oprnd1.val_class = dw_val_class_unsigned_const; > @@ -15369,14 +15369,14 @@ resolve_args_picking_1 (dw_loc_descr_ref loc, unsigned initial_frame_offset, > /* If we already met this node, there is nothing to compute anymore. */ > if (visited.add (l)) > { > -#if ENABLE_CHECKING > +#if CHECKING_P > /* Make sure that the stack size is consistent wherever the execution > flow comes from. */ > gcc_assert ((unsigned) l->dw_loc_frame_offset == frame_offset_); > #endif > break; > } > -#if ENABLE_CHECKING > +#if CHECKING_P > l->dw_loc_frame_offset = frame_offset_; > #endif > > diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h > index a96ac38..91b3d6b 100644 > --- a/gcc/dwarf2out.h > +++ b/gcc/dwarf2out.h > @@ -239,7 +239,7 @@ struct GTY((chain_next ("%h.dw_loc_next"))) dw_loc_descr_node { > frame offset. */ > unsigned int frame_offset_rel : 1; > int dw_loc_addr; > -#if ENABLE_CHECKING > +#if CHECKING_P > /* When translating a function into a DWARF procedure, contains the frame > offset *before* evaluating this operation. It is -1 when not yet > initialized. */ > -- > 2.7.0 > >