From patchwork Wed Oct 19 15:24:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 59075 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9E7373856DF1 for ; Wed, 19 Oct 2022 15:30:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E7373856DF1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666193411; bh=xvQiIxZ5kLlechieVNtLr2rl5b3azTxbUDztKJalIbc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=BKCRa28z5udy96iJcnjaoIi3sEAUbvU72+9VGfESN/vxc0vMWiFklmISjYGB3DdUg hF2fsyh8rjGHa4cQOHApi7NjzIOv8y0KzkFIO/pZmM0VcHt6mtr8VXWT90tIax9jRH msvwO4EYyREBFI3iodwaLAfLiy918PMjnCkFxR3w= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DBE1D385086D for ; Wed, 19 Oct 2022 15:25:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DBE1D385086D Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-108-JdncMQQGOoSyH_0GFBIz4g-1; Wed, 19 Oct 2022 11:25:14 -0400 X-MC-Unique: JdncMQQGOoSyH_0GFBIz4g-1 Received: by mail-qv1-f72.google.com with SMTP id lu3-20020a0562145a0300b004b1d6f4130eso10768543qvb.1 for ; Wed, 19 Oct 2022 08:25:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xvQiIxZ5kLlechieVNtLr2rl5b3azTxbUDztKJalIbc=; b=ZDdN6kVyG0Xe2X7a9XQNG3oK3C3RUBON70K2Xh6zXVUEFlDnO+DLCP2Kl/XeIP21tO 6pB+5a7SueLC/p9rh0rJCz+7kafPulHVa6UPhqSPlwQwUdaHIFd8YYlWO6UQc8Sbo+tY 0smQnuEdwMD1e7DK069aFH1Qzo4o6VUw+U+JINLi8xEYD2q4SmtWCYhkJwtLzO5m8Qs+ V6f+Fw7Z8hA3MApr7ckOxpVvEY/HLXSX/N8qz7lu9PV+rFFda9D1MrCX1Nbg6+pqZ+h/ 2p/5sGPM8cAzh/fyzCZIUZ4qLSflAX9K0rOvKs0BBZ/r/yA31Luj5keUhL31xNAku1sa 272g== X-Gm-Message-State: ACrzQf2jbKm37HNhigcdgPkMmN0Hx8NGJkKIWRwkldz3YTsbXFzCzGkb vNhDxqeilxMVJdIi2JYw/oX3mMfxshjg0rP0hHKVCUfZBjh3uLzF33iyNz3m1PYU+BFd2wCPVSN IhqrLaWSHzFWhdSqOrX9mJ379ew7BAHd3zCGBz43dfMSwGCNUJNz6BM9Me/gO4GpetNpzE7nYGw == X-Received: by 2002:a05:622a:286:b0:39c:d621:610b with SMTP id z6-20020a05622a028600b0039cd621610bmr6771127qtw.608.1666193114429; Wed, 19 Oct 2022 08:25:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bjo/l9Mos0cQx2oauMLHTz5Axi5hUlhrmrE/TVnJT1RdpleUSD/WV5OxJaWJoSufcmNR1zA== X-Received: by 2002:a05:622a:286:b0:39c:d621:610b with SMTP id z6-20020a05622a028600b0039cd621610bmr6771109qtw.608.1666193114154; Wed, 19 Oct 2022 08:25:14 -0700 (PDT) Received: from localhost ([31.111.84.238]) by smtp.gmail.com with ESMTPSA id cm24-20020a05622a251800b0039492d503cdsm4267422qtb.51.2022.10.19.08.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 08:25:13 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH 10/10] sim/cris/m32c/sh: disable use of -Werror Date: Wed, 19 Oct 2022 16:24:49 +0100 Message-Id: <42c09bcd56bb7bf0a84d58ffad71894f284b5401.1666192979.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham 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-Patchwork-Original-From: Andrew Burgess via Gdb-patches From: Andrew Burgess Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" When building the cris, m32c, and sh simulators with Clang I am seeing build warnings from a few objects. These three simulators currently build with -Werror, and so these warnings cause the build to fail. When built with gcc I don't see any warnings from these targets, so the -Werror is fine. As the warnings are not new, in this commit, I propose that we disable the use of -Werror for these three simulators. With this done it is now possible to build the complete simulator tree using clang. --- sim/cris/Makefile.in | 3 +++ sim/m32c/Makefile.in | 3 +++ sim/sh/Makefile.in | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sim/cris/Makefile.in b/sim/cris/Makefile.in index d58aeee9363..53e485dca02 100644 --- a/sim/cris/Makefile.in +++ b/sim/cris/Makefile.in @@ -41,6 +41,9 @@ SIM_EXTRA_DEPS = \ SIM_EXTRA_CLEAN = cris-clean +# Some modules don't build cleanly yet. +mloopv10f.o mloopv32f.o: SIM_WERROR_CFLAGS = + ## COMMON_POST_CONFIG_FRAG arch = cris diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in index 2436eb940f4..dd9b3aaf175 100644 --- a/sim/m32c/Makefile.in +++ b/sim/m32c/Makefile.in @@ -40,4 +40,7 @@ SIM_OBJS = \ trace.o \ $(ENDLIST) +# Some modules don't build cleanly yet. +mem.o: SIM_WERROR_CFLAGS = + ## COMMON_POST_CONFIG_FRAG diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in index fc794f30687..a496095e767 100644 --- a/sim/sh/Makefile.in +++ b/sim/sh/Makefile.in @@ -24,4 +24,7 @@ SIM_OBJS = \ SIM_EXTRA_LIBS = -lm SIM_EXTRA_DEPS = table.c code.c ppi.c +# Some modules don't build cleanly yet. +interp.o: SIM_WERROR_CFLAGS = + ## COMMON_POST_CONFIG_FRAG