From patchwork Wed Jul 7 16:25:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1501890 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=adacore-com.20150623.gappssmtp.com header.i=@adacore-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=1R8TrUu7; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GKlTw6zM4z9sWq for ; Thu, 8 Jul 2021 02:38:12 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 23ACF396E812 for ; Wed, 7 Jul 2021 16:38:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id C1848395C828 for ; Wed, 7 Jul 2021 16:25:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1848395C828 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-lf1-x132.google.com with SMTP id c28so5228137lfp.11 for ; Wed, 07 Jul 2021 09:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=jbbCx1eFej30eyWBJRJDZU2/9syQrE4ktbPIS2ZxBfQ=; b=1R8TrUu7jY+d8khiGDRckqWhvkk5xMFss1Zd3diyTz4LlBNIUff7/lUBGUVJ2diqVX +K5xqfdQaOurIWgj8Hc3AHodFq2zVWZMY9cBA2d79J0DS7e+TAoMDa10YmxMSrsb3/zy QDTn7TpoZpj6S783jwon5dCiwgqc8+TiJFJDRQMss+ILhUEZPeF0hbebNDHffsseZi7V ayVcs89RPbcdS61OZRtFqmTUryTTSwI7n2r0y83V/8PT93ESW4v2tiDyaU0LIVOrhTWd tkIuK8gZLNw+yte24bLX2XjZIfa/Fa2sEbS9blEgFOI6iQiW6wuWNakkGLhOb5/Oq+ve qYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=jbbCx1eFej30eyWBJRJDZU2/9syQrE4ktbPIS2ZxBfQ=; b=PWXKlMAEyjme9y+TPYChVtfGD6JaWhPPKoQR39W7up7JZLXcvDzCNy8UO9BPYCGgUV Er9b15VWj153AQcw28TDqC9jTkI3z/a+kqn0N0YF/GGwtzZBlfqzPSWCeCVlPN/QwxJ1 sJ9i7KJcsi5qY7LkWe+69QcO7L0UNfUxOOPKNOJhPf2a0GL2C5EI/w29fBdO7geduk6P bpAFJo2DcRi2Bt4C708LT8evv9CX/GmSOoLPFqfJQcAwQRBiacUvFlQY+Xjy6iLWThhF A73TnLE99b9wgz+hzIrwhP+MCwByG/stgSDL6Pb+bQ9CPY5eFHik0oyncocStbPHbdMD 46+w== X-Gm-Message-State: AOAM533gMtWixz395YioVEhsuJ4KPOVR4AvDDeQTYdA9usw97nRKbWir JdrAPO9pE75BdrM69SQN4w9xw2575vQDSQ== X-Google-Smtp-Source: ABdhPJw3kUFjMmHmnbZo1B89gYBqxywqcoX45CZRUMQNR04n47iHILmgSnOXSr5zoor5RQ15LDRqXw== X-Received: by 2002:a05:6512:34c3:: with SMTP id w3mr2900407lfr.615.1625675137337; Wed, 07 Jul 2021 09:25:37 -0700 (PDT) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id w29sm1888558lfu.160.2021.07.07.09.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 09:25:36 -0700 (PDT) Date: Wed, 7 Jul 2021 16:25:35 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Subject: [Ada] Minor code cleanup Message-ID: <20210707162535.GA2543171@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnaud Charlet Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" To help codepeer analysis. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/g-debpoo.adb (Code_Address_For_Allocate_End): Default Initialize. diff --git a/gcc/ada/libgnat/g-debpoo.adb b/gcc/ada/libgnat/g-debpoo.adb --- a/gcc/ada/libgnat/g-debpoo.adb +++ b/gcc/ada/libgnat/g-debpoo.adb @@ -362,7 +362,7 @@ package body GNAT.Debug_Pools is -- These procedures are used as markers when computing the stacktraces, -- so that addresses in the debug pool itself are not reported to the user. - Code_Address_For_Allocate_End : System.Address; + Code_Address_For_Allocate_End : System.Address := System.Null_Address; Code_Address_For_Deallocate_End : System.Address; Code_Address_For_Dereference_End : System.Address; -- Taking the address of the above procedures will not work on some