From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16045 invoked by alias); 8 Oct 2018 13:17:18 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 16034 invoked by uid 89); 8 Oct 2018 13:17:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Oct 2018 13:17:17 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] AArch64: Replace C initializers with memset From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <780f601cf3bfd2eb141c2ea32b673b5bd0956a33@gdb-build> Date: Mon, 08 Oct 2018 13:17:00 -0000 X-SW-Source: 2018-q4/txt/msg00900.txt.bz2 *** TEST RESULTS FOR COMMIT 780f601cf3bfd2eb141c2ea32b673b5bd0956a33 *** Author: Tamar Christina Branch: master Commit: 780f601cf3bfd2eb141c2ea32b673b5bd0956a33 AArch64: Replace C initializers with memset Clang doesn't accept {0} as a valid C struct initializer under their implementation of -Wmissing-field-initializers. This makes using C initializers a bit tricky. Instead I'm changing the code to use memset instead, which at least GCC inlines and generates the same code for. This also seems to be the idiom used in binutils for most targets. opcodes/ * aarch64-opc.c (verify_constraints): Use memset instead of {0}.