From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by sourceware.org (Postfix) with ESMTPS id 4BB2F3858280 for ; Thu, 21 Jul 2022 15:21:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4BB2F3858280 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id b6so1230375wmq.5 for ; Thu, 21 Jul 2022 08:21:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9tpDcixeL/y5c6f7+c5CVgJxlpXWRf+C/rDXZIuTBmc=; b=V0WbKZD6V2an43AbZ6V9HpzZ+pSMfQrgKWBClbbn5E3BIoRqZXHpQLV1fluxRduqHm Iyn6G9M4ZmfAyC1+eoMFlKK4jT4Y5Y+iyms7WqL22AWrG8zLqWy3WokYGbqzKtcxEWwB hSjRvlpQ486/mL/qGalod6gaLb3pnLwpK8AdV6seIFEPVBtBs6zO7TmeNbEIFl3Snpxt yURwbIyFllVL/OWQdSZ68s3hsEqvlyAEYDYi+fgnzzVnZEFRXJ/5Ku56G7fBgFCPzyFT ugwNbsehvwSieiK/uKgAeaQmH0XZNlp1TifcqOTKxE+TqmVb40try0kaaaHLNCoBfZb2 FmWg== X-Gm-Message-State: AJIora9VbQQxzcOlqttZqrADoSC1k1rX2eEXulE/zhZSdxxGNSOwnD3G ufFmZKv1HnyWF1/Nc6N0ZCYv+e9J4S8= X-Google-Smtp-Source: AGRyM1s8b2mhRARBfLjTFAjuzcLy8FXMecLrGPU8qGD/k5Jpy5D74M7vS3ZLMCmjq2+4wwJq5l3eAw== X-Received: by 2002:a1c:7c16:0:b0:3a0:4c5f:ce13 with SMTP id x22-20020a1c7c16000000b003a04c5fce13mr8752447wmc.73.1658416895388; Thu, 21 Jul 2022 08:21:35 -0700 (PDT) Received: from localhost ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id m15-20020a7bcb8f000000b003a2e27fc275sm2080649wmi.12.2022.07.21.08.21.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jul 2022 08:21:34 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] struct packed and Windows ports (PR build/29373) Date: Thu, 21 Jul 2022 16:21:29 +0100 Message-Id: <20220721152132.3489524-1-pedro@palves.net> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2022 15:21:38 -0000 PR build/29373 points out that mingw GDB builds are brokenly current, failing static assertions in gdbsupport/packed.h. This series fixes it, for both mingw + gcc, and mingw + clang. Pedro Alves (3): struct packed: Use gcc_struct on Windows struct packed: Unit tests and more operators struct packed: Add fallback byte array implementation gdb/Makefile.in | 1 + gdb/unittests/packed-selftests.c | 132 ++++++++++++++++++++++++++++++ gdbsupport/packed.h | 134 ++++++++++++++++++++++++------- 3 files changed, 236 insertions(+), 31 deletions(-) create mode 100644 gdb/unittests/packed-selftests.c base-commit: d65edaa0bc3f24537ecde3735b1fa041f36f4ab8 -- 2.36.0