From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by sourceware.org (Postfix) with ESMTPS id A78EA3858C1F for ; Thu, 16 Mar 2023 13:49:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A78EA3858C1F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd29.google.com with SMTP id f14so803666iow.5 for ; Thu, 16 Mar 2023 06:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1678974567; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5I+g3M9i9fA/t+Br/veOdXmBHNB4ZAGf9DSGBUUMF2k=; b=SA53MdTdiy/dbbrPhneTMzspI6URH7rtFN5QmJ1NWJ8uaoB1N6dUqzEAZzNwjZ37ZE tmxxreYVM/urEoPXmBCrGNfTFQk3yxawi8JJfU9LYrJ3OtVPgVENzMJgavZBwIC6m3BT 5JqQtT043UAOsVSDlHu/dkahq18KIwbl5PtQZANWanA2HldYusuQyI6Ms0Ohi1W7patu tVWbNDblSaJQIVahh5eVdqGsoSPwv6xsPtGzgR+sFq/AXLQk1noTWwHt978ZZY7pNgp7 E30JmUo7ksuvcgkC3uZjDWYJnIBfpSsV3eLpTTjLx4SEtzuxIGAwj+DtOC1YmL5+1MAi 2cHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678974567; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5I+g3M9i9fA/t+Br/veOdXmBHNB4ZAGf9DSGBUUMF2k=; b=x53+3lS//dWq1OasJ4tqWd2sm3tgfOSd6aIRgZbYsU5coGjbXGo+6bY2gy5CYbYsnN fqQ3VRFEr4hTR4j3ICyV6q8UPQ3F6AtJn9BMWYlYm4pD9VyoTrI1k8zsjwXjXIVtMRqF SpeR2tvjk0o5hV3TocMs21CZii3GSypJaSOtVVsFigwSwpkgwXR3+0m5ssLJ+0T0a68E NNXnRi5dY87XXPHMg55dLzG5Q+riySCkFAM3jT0CLIJ2qRLunAzBv/Kn4i89iEUIp4/W KGeFL8Q3XVWuJviBLyxQgI53K/2TX23o2KDJxtgv80ow3ovxVjzSplm08PC1935/wqOm 37kw== X-Gm-Message-State: AO0yUKVMusETNI2tF+6KMdSV32MAg3ZZBPCZJy0E4izHZJ7dP+YroXxM n/1PJMclmkMxeJQ0UVEFYFmoBusXp14UBA6Mz3Q= X-Google-Smtp-Source: AK7set/hKpRXZqheAThwfUjpIgv5fumavvSkSm3Kg45lHo8BD7TU+JAoE5Wg+y0zhIe6gQZ2zYFJpA== X-Received: by 2002:a05:6602:20c2:b0:74c:b069:f38c with SMTP id 2-20020a05660220c200b0074cb069f38cmr26094368ioz.1.1678974566876; Thu, 16 Mar 2023 06:49:26 -0700 (PDT) Received: from localhost.localdomain (71-211-185-113.hlrn.qwest.net. [71.211.185.113]) by smtp.gmail.com with ESMTPSA id k8-20020a6b4008000000b0074ca38eb11fsm2552388ioa.8.2023.03.16.06.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 06:49:26 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Fix build breakage in rs6000-aix-tdep.c Date: Thu, 16 Mar 2023 07:49:20 -0600 Message-Id: <20230316134920.2913561-1-tromey@adacore.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: A recent change to rs6000-aix-tdep.c broke the build. This patch fixes it by declaring a few target descriptions in ppc-tdep.h and then not including the various features .c files in rs6000-aix-tdep.c. --- gdb/ppc-tdep.h | 6 ++++++ gdb/rs6000-aix-tdep.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h index fe41baef149..db4e53205a6 100644 --- a/gdb/ppc-tdep.h +++ b/gdb/ppc-tdep.h @@ -450,4 +450,10 @@ struct ppc_inferior_data extern ppc_inferior_data * get_ppc_per_inferior (inferior *inf); +extern const struct target_desc *tdesc_powerpc_vsx64l; +extern const struct target_desc *tdesc_powerpc_vsx64; +extern const struct target_desc *tdesc_powerpc_vsx32; +extern const struct target_desc *tdesc_powerpc_altivec64; +extern const struct target_desc *tdesc_powerpc_altivec32; + #endif /* ppc-tdep.h */ diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index c56e5a384e4..d4a7b22bc4f 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -40,11 +40,6 @@ #include "trad-frame.h" #include "frame-unwind.h" -#include "features/rs6000/powerpc-altivec32.c" -#include "features/rs6000/powerpc-vsx32.c" -#include "features/rs6000/powerpc-altivec64.c" -#include "features/rs6000/powerpc-vsx64.c" - /* If the kernel has to deliver a signal, it pushes a sigcontext structure on the stack and then calls the signal handler, passing the address of the sigcontext in an argument register. Usually -- 2.39.1