From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 38B333857831; Wed, 18 May 2022 08:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38B333857831 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-608] [Ada] Make sure output variable is always initialized X-Act-Checkin: gcc X-Git-Author: =?utf-8?q?K=C3=A9vin_Le_Gouguec?= X-Git-Refname: refs/heads/master X-Git-Oldrev: 8502433d82079d2b01bbe0e324121dc1f658311b X-Git-Newrev: df4451ca663e251e5524ebedb34bbe0cbfc45e52 Message-Id: <20220518084454.38B333857831@sourceware.org> Date: Wed, 18 May 2022 08:44:54 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 08:44:54 -0000 https://gcc.gnu.org/g:df4451ca663e251e5524ebedb34bbe0cbfc45e52 commit r13-608-gdf4451ca663e251e5524ebedb34bbe0cbfc45e52 Author: Kévin Le Gouguec Date: Thu Apr 7 17:43:34 2022 +0200 [Ada] Make sure output variable is always initialized gcc/ada/ * libgnat/s-dwalin.adb (Read_Aranges_Header): Initialize output parameter in case we return early. Diff: --- gcc/ada/libgnat/s-dwalin.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/libgnat/s-dwalin.adb b/gcc/ada/libgnat/s-dwalin.adb index 50662ddceff..5a0a2f6bf72 100644 --- a/gcc/ada/libgnat/s-dwalin.adb +++ b/gcc/ada/libgnat/s-dwalin.adb @@ -1360,6 +1360,7 @@ package body System.Dwarf_Lines is begin Success := False; Info_Offset := 0; + Addr_Size := 0; Read_Initial_Length (C.Aranges, Unit_Length, Is64);