From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9550384A022; Thu, 13 Aug 2020 13:33:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9550384A022 From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug sim/26365] [build, arm-elf] Compilation error in sim/arm/wrapper.c Date: Thu, 13 Aug 2020 13:33:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: luis.machado at linaro dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2020 13:33:34 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26365 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Luis Machado : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da5353ae6cf17= 16c0ff6f7037dc3c336f0d99ecc1 commit a5353ae6cf1716c0ff6f7037dc3c336f0d99ecc1 Author: Luis Machado Date: Thu Aug 13 10:32:52 2020 -0300 [ARM, sim] Fix build failure with -Werror (PR26365) There is a bit of a situation in the ARM sim with regards to the handli= ng of argv. sim_open () gets a const char **argv, but ARM's sim_open gets clever and decides to modify argv in place via sim_target_parse_command_line. I'm not sure why. In any case, here's a fix that makes the code modify a copy of argv instead. sim/arm/ChangeLog: 2020-08-13 Luis Machado PR sim/26365 * wrapper.c (sim_target_parse_command_line): Free discarded argv entries. (sim_open): Use a duplicate of argv instead of the original arg= v. --=20 You are receiving this mail because: You are on the CC list for the bug.=