From patchwork Fri Nov 5 15:16:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 47119 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 5FC0F3858434 for ; Fri, 5 Nov 2021 15:16:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cmx-torrgo002.bell.net (mta-tor-001.bell.net [209.71.212.28]) by sourceware.org (Postfix) with ESMTP id 9F3C93858D35 for ; Fri, 5 Nov 2021 15:16:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F3C93858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bell.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bell.net X-RG-CM-BuS: 0 X-RG-CM-SC: 0 X-RG-CM: Clean X-Originating-IP: [67.71.8.137] X-RG-Env-Sender: dave.anglin@bell.net X-RG-Rigid: 60C8802C0A7ACA00 X-CM-Envelope: MS4xfEKb/FwO7on5HfzNo0MtfeK20KRmwy9lePV6vzvL4TEkOveburlDSWMXVP/F80GY9tLIchsg0btnijY1/ME28goGq1CJjqhSsPVVBfmhuia+WNZKxf2h z4DjTYKZahFD31EgeKrPsJ/KXw9b4/rpJjXFGjKlq9G1sCWdjGuHGY8KPweOYI4Qh4NCGY4ufQ8JDS5NjVgwwGIkkZCw/6drAgK6FXxwbNQDAqzXE4gkJk0T SSLxeMmkEsGb/xYlsqkDNw== X-CM-Analysis: v=2.4 cv=Zd5+iuZA c=1 sm=1 tr=0 ts=61854ad8 a=jrdA9tB8yuRqUzQ1EpSZjA==:117 a=jrdA9tB8yuRqUzQ1EpSZjA==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=f9b3Uar1WKbdZeaGFssA:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 Received: from [192.168.2.49] (67.71.8.137) by cmx-torrgo002.bell.net (5.8.716.03) (authenticated as dave.anglin@bell.net) id 60C8802C0A7ACA00; Fri, 5 Nov 2021 11:16:40 -0400 Message-ID: <40ae7fc7-8f7e-963f-0f04-8e6b3568add4@bell.net> Date: Fri, 5 Nov 2021 11:16:41 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Content-Language: en-US To: GCC Patches From: John David Anglin Subject: [committed] hppa: Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The D language build on hppa64 does not include pa64-hpux.h. It only includes pa.h. As a result PREFERRED_DEBUGGING_TYPE was not defined. This caused a build error when defaults.h was included. The include issue might affect other defines but so far I haven't noticed any problems. Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h This fixes D language build on hppa64-hpux11. 2021-11-05 John David Anglin gcc/ChangeLog: * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG. * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 7a313d617b0..96815ec69cb 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -136,6 +136,9 @@ extern unsigned long total_code_bytes; by default. */ #define DEFAULT_GDB_EXTENSIONS 1 +/* Select dwarf2 as the preferred debug format. */ +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG + /* This used to be zero (no max length), but big enums and such can cause huge strings which killed gas. diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index c25bc38ba64..3ee97a418a2 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -266,7 +266,6 @@ do { \ /* It looks like DWARF2 will be the easiest debug format to handle on this platform. */ #define DWARF2_DEBUGGING_INFO 1 -#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG /* This target uses the ELF object file format. */ #define OBJECT_FORMAT_ELF