From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 5A5533858D33; Tue, 6 Jun 2023 10:43:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A5533858D33 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Re: loongarch readelf support X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: 92deb60f277e92764bcc089d24bb5936c7e655fc X-Git-Newrev: d3f340763bab7c74838ebb481fd7ff93acd9f00c Message-Id: <20230606104343.5A5533858D33@sourceware.org> Date: Tue, 6 Jun 2023 10:43:43 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2023 10:43:43 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd3f340763bab= 7c74838ebb481fd7ff93acd9f00c commit d3f340763bab7c74838ebb481fd7ff93acd9f00c Author: Alan Modra Date: Tue Jun 6 19:56:56 2023 +0930 Re: loongarch readelf support =20 Commit 89c70cd358b8 apparently results in a bogus "value may be used uninitialized" warning with some combination of compiler and optimisation options. =20 * readelf.c (target_specific_reloc_handling): Init value. Diff: --- binutils/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/readelf.c b/binutils/readelf.c index 23d3e21bea6..c3e5c587afe 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14017,7 +14017,7 @@ target_specific_reloc_handling (Filedata *filedata, case 107: /* R_LARCH_ADD_ULEB128. */ case 108: /* R_LARCH_SUB_ULEB128. */ { - uint64_t value; + uint64_t value =3D 0; unsigned int reloc_size =3D 0; int leb_ret =3D 0;