From patchwork Fri Sep 6 12:02:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1981821 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=microsoft.com header.i=@microsoft.com header.a=rsa-sha256 header.s=selector2 header.b=SHOnGuER; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X0Zdw2cBSz1y1D for ; Fri, 6 Sep 2024 22:04:20 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3AD58384A46F for ; Fri, 6 Sep 2024 12:04:18 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:260e::701]) by sourceware.org (Postfix) with ESMTPS id 06674384A4AA for ; Fri, 6 Sep 2024 12:02:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06674384A4AA Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=microsoft.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=microsoft.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 06674384A4AA Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260e::701 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725624181; cv=pass; b=H7VDrqbnwGfyVbr9mneiNem8QZ5NXwWbGnA6nv3O+JtWxruDyZpTzS9t9a9FgKFO8Y8useOMOmxE9cDo7e593hu/sWkpiHwXZ70TmVFS5RQ0xWJJHnRkIWTN2qkUD6vLBlaaylVMgpnf9N+gXAYb0Kin8b4PZLMIdtXZwuQ+kL0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725624181; c=relaxed/simple; bh=HLvnw8EP3/LF7Zs0YLOCtOOwBS+3MRXwy4LoXC9LEcI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Rzv1de4gDxsq4nnrnXUDZYgOxyUy7aJ0ffYWbdXe9s5yJYzWyP9LGCQHp2Qjm2xHAKcykw9gLuDMoU+mr+uCc7kAm1BPA1Lxz2gXxX2kBlO2zTMOxc/B8wZzf7uIvgDEqZwK7eqxZYv0mItquVoMnasC/ndEtFeMH/aACo15QeU= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cuGeot9ZLJF/f4NxnEU0mC+KNO7gfD4adKNJqrndp4zfXA8j8Q6xZEOEqP8Cun9fETF1eWs0MFDC3fVRNkiqUXGMBmJ3bQZ60220+NJGnBla++7vB3bg5A41khhdOxmLJ6YAS2I/gMVu3Vb6MPzIJY4hVSHtWP7rv/1GCvKnSXVdVapbTFc//OBVB/Bzbo2At4MtPG2ZFVz3G+nIhsMowlhknZqI5q2htBfAPfMTRnLibomgU87jGyvJq7ojUH5eMIfc5ekXAeEyng/QlxSHTETSJkJwxRxP7fJ5WRcPhtADa8yuL57kZ5YDvCfq9Ydn/Nim1kUW2E8ozjbhZ663dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=do5i9guTluu4emxPgNwqhCk97IDNeBXfeFSjOwu5kjM=; b=oNXMS3P2xOvsT5vy7K668s0cBZk1exq11WQUU/LCbzuoFWnevi6i51bJMO/Wu9MRMaMb8TsJzze14kBBGkWVW1mevM8QnHskfu8UwQuqweW/NeR7PyqwNIaEBG7Y/Au6HFsMaEn17NMUIOFtSOoY6Dls42LstFk/cip8CUuH0oI3/bomG1Qt8O+iQGUnZc3LcMOYHg0Tp9SKVks2lwxhsruk+f6IKTO7jZafmbWXZ2+6lL/GswASIwytScSgK7htQEVi58fcmulFxSW6j61U26dxEc3O5MNfgfWJkZQ1snirkvArjtL4W/gGItiMwlbAGDXkJnNqtay7q7hhvSqNiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=do5i9guTluu4emxPgNwqhCk97IDNeBXfeFSjOwu5kjM=; b=SHOnGuERDmx6v4gWtSjx0wg6idw6xiuIDlK5qdUOvgxIiu+glBbzrY623iUC5zQ04fe+4hA3+eBpu3EyHyt3u+TYf5Em9P2BP3+i+0J85lJeucBTVIPcdqKgMJBhqUUdu3JpfXTfq1WTcnHnr8O/SIVU298CKIvw6bvQS5wAqio= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by DB9PR83MB0537.EURPRD83.prod.outlook.com (2603:10a6:10:300::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.6; Fri, 6 Sep 2024 12:02:55 +0000 Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10]) by DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10%4]) with mapi id 15.20.7918.000; Fri, 6 Sep 2024 12:02:55 +0000 From: Evgeny Karpov To: "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , "christophe.lyon@linaro.org" , Maxim Kuvyrkov , Radek Barton Subject: [PATCH v2 8/9] Add LTO support Thread-Topic: [PATCH v2 8/9] Add LTO support Thread-Index: AQHbAFS1RpKuK4i8pEOnN4Ni5j1pqQ== Date: Fri, 6 Sep 2024 12:02:55 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-09-06T12:02:56.049Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBBPR83MB0613:EE_|DB9PR83MB0537:EE_ x-ms-office365-filtering-correlation-id: e657a7f7-8893-4fa1-7848-08dcce6bd7ce x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?80+Res0ZkfVFEDgBx1A684b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so-8859-1?q?RoVPtbH503KRp8r6PRxwELeI5tgxIPTUBopSmHgAWdHiRu0+6fgAT2nXtLpu?= =?iso-8859-1?q?a47xyYXrIL+rHL4/e+8C5id8db6ytPZBCIiKoZsJ38Q9eLEggYPCLEtqRtay?= =?iso-8859-1?q?woBwy/A1U7gmUy2HhdeVi/B4XPnRrYImh2aWKXCc1B5wprCFfLBOe4/jhPM2?= =?iso-8859-1?q?yrqqtxHJBbxBmvjgFtlSGy+bV6P18SJ6DDMlHBz8gbkoVUBgCDJq+zDCspdg?= =?iso-8859-1?q?MEqyU2t3TIuRva7UuIcPyloBfV2Zwzf8uBU8MinVKO8GMtJiZLovr0ZU5Q6/?= =?iso-8859-1?q?zwWjjuZqKSqPH8XXhVXW5uq/kegmfrDtIV+3Qx73K2Wp+a6JPCETRgS4wCIt?= =?iso-8859-1?q?r6scF23E3Ma8tRpyoycFzhBA2uhqItedfagHyCRIop0w7UCFRsw/8Wh2K5As?= =?iso-8859-1?q?EX6R3+oJjiaKl4x4HwzVwKiVwoybbJznvRzZcfx3FIXb4YEiOHVShqswtTkR?= =?iso-8859-1?q?MO72vYNQWRQn5msmXAQRS2z2Ynv7CSZEHBqToViD9XIoG2HQaN9/Nme9oFEW?= =?iso-8859-1?q?S/KdSseWPrN1x6iE4vc7iT6A=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR83MB0613.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?7kOenJkgoJpZ7igacJpYBgv?= =?iso-8859-1?q?xKJkiaprLWpZTAgvJm5Y+EXSwEGcvX8PRZ0XDt5AiDFwlMVGep3qmeX0b7Dp?= =?iso-8859-1?q?vQrYNSCvqkvSOYUfzhaYVftmDrg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zJryW3?= =?iso-8859-1?q?0+TBCOUdUEY0w5DV8j5oW6+pfzUYMh7dr3RFvpcRPk0DDJ90/MXcZR61Vuh+?= =?iso-8859-1?q?aHlZmsShWMyFEJJgnS8mAsp7F1LTt7Ci40IelGeuX7VsG24zqwtzQJmUeeUB?= =?iso-8859-1?q?R5khYrF2M2wohP+p9syRTduWuUU+GAPHEkaxO+2BeazDX/UN+kujdLu7M+hi?= =?iso-8859-1?q?DZKKJgc/HPhE3w9pyEPl0mtheI+COC4g1ETpIGeI6lqa27udrZ+GnASeKMtI?= =?iso-8859-1?q?2Voczp2uAkwg+pioHQTLbTznsUycsZiYaHCftCukMhb5T/WZdjUVlRv050zH?= =?iso-8859-1?q?ype+tDJOHzB2BlU2ArDnPB3QCDBISobkaCChThqfiXnl09rml40YtloI0AiI?= =?iso-8859-1?q?lO7C32zUjvxAAk3gf5Cp/Hq66HRUBzTux9rCXjozxekB9rJGmnOPuZd1bBNz?= =?iso-8859-1?q?PqEKp0yIkRnCpXLWoT8iHMguCBDso1kSCUB3HNJUPrILMCXoBdZcauUw+nl+?= =?iso-8859-1?q?lToDmqgnLO8lqSf+CuP4kIlUUk5z19PoIFqM09Jd18sLlmw1X2KbrVwivSnU?= =?iso-8859-1?q?HXiGhT0PanWYevJlNQWrf0JqqVXtNyBAu3raiowKX4QiP+EWVIK0deY9Er+w?= =?iso-8859-1?q?4fCcMCPQq7tz/tcyo2IeP/wRePvLo9sdKoaMttOqBPTbFR1VxGtacgY/+boW?= =?iso-8859-1?q?5XBwxk/0v+Wq2xh1ne8oZ?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBBPR83MB0613.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e657a7f7-8893-4fa1-7848-08dcce6bd7ce X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2024 12:02:55.6986 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ush8k/wyJMe+a90/4ggAPFrYRECfjoESZpiWOmk2EZhUzBf+ssqCWYJpP1sG5Q0MA7cMdnS/RDVzNk4rt6G79g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR83MB0537 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org The patch reuses the configuration for LTO from ix86 and adds the aarch64 architecture to the list of supported COFF headers. gcc/ChangeLog: * config/aarch64/cygming.h (TARGET_ASM_LTO_START): New. (TARGET_ASM_LTO_END): Likewise. * config/i386/cygming.h (TARGET_ASM_LTO_START): Update. (TARGET_ASM_LTO_END): Likewise. * config/i386/i386-protos.h (i386_pe_asm_lto_start): Delete. (i386_pe_asm_lto_end): Likewise. * config/mingw/winnt.cc (i386_pe_asm_lto_start): Rename into ... (mingw_pe_asm_lto_start): ... this. (i386_pe_asm_lto_end): Rename into ... (mingw_pe_asm_lto_end): ... this. * config/mingw/winnt.h (mingw_pe_asm_lto_start): New. (mingw_pe_asm_lto_end): Likewise. libiberty/ChangeLog: * simple-object-coff.c: Add aarch64. --- gcc/config/aarch64/cygming.h | 6 ++++++ gcc/config/i386/cygming.h | 4 ++-- gcc/config/i386/i386-protos.h | 2 -- gcc/config/mingw/winnt.cc | 4 ++-- gcc/config/mingw/winnt.h | 2 ++ libiberty/simple-object-coff.c | 4 +++- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index 0e484a84ba9..9e1c5a6fbc2 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -245,4 +245,10 @@ still needed for compilation. */ #define HAVE_64BIT_POINTERS 1 +/* Kludge because of missing PE-COFF support for early LTO debug. */ +#undef TARGET_ASM_LTO_START +#define TARGET_ASM_LTO_START mingw_pe_asm_lto_start +#undef TARGET_ASM_LTO_END +#define TARGET_ASM_LTO_END mingw_pe_asm_lto_end + #endif diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 4c3d925e8b3..742f67e9f10 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -348,9 +348,9 @@ do { \ /* Kludge because of missing PE-COFF support for early LTO debug. */ #undef TARGET_ASM_LTO_START -#define TARGET_ASM_LTO_START i386_pe_asm_lto_start +#define TARGET_ASM_LTO_START mingw_pe_asm_lto_start #undef TARGET_ASM_LTO_END -#define TARGET_ASM_LTO_END i386_pe_asm_lto_end +#define TARGET_ASM_LTO_END mingw_pe_asm_lto_end #undef ASM_COMMENT_START #define ASM_COMMENT_START " #" diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index 3a7bc949e56..e9e4a9d4f08 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -316,8 +316,6 @@ extern void i386_pe_asm_output_aligned_decl_common (FILE *, tree, const char *, HOST_WIDE_INT, HOST_WIDE_INT); -extern void i386_pe_asm_lto_start (void); -extern void i386_pe_asm_lto_end (void); extern void i386_pe_start_function (FILE *, const char *, tree); extern void i386_pe_end_function (FILE *, const char *, tree); extern void i386_pe_end_cold_function (FILE *, const char *, tree); diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index f93e80a1d52..5d7cc760bd7 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -831,14 +831,14 @@ mingw_pe_file_end (void) static enum debug_info_levels saved_debug_info_level; void -i386_pe_asm_lto_start (void) +mingw_pe_asm_lto_start (void) { saved_debug_info_level = debug_info_level; debug_info_level = DINFO_LEVEL_NONE; } void -i386_pe_asm_lto_end (void) +mingw_pe_asm_lto_end (void) { debug_info_level = saved_debug_info_level; } diff --git a/gcc/config/mingw/winnt.h b/gcc/config/mingw/winnt.h index 14bff19e697..1ac19fd2386 100644 --- a/gcc/config/mingw/winnt.h +++ b/gcc/config/mingw/winnt.h @@ -23,6 +23,8 @@ http://www.gnu.org/licenses/. */ extern tree mingw_handle_selectany_attribute (tree *, tree, tree, int, bool *); extern void mingw_pe_asm_named_section (const char *, unsigned int, tree); +extern void mingw_pe_asm_lto_start (void); +extern void mingw_pe_asm_lto_end (void); extern void mingw_pe_declare_type (FILE *, const char *, bool, bool); extern void mingw_pe_encode_section_info (tree, rtx, int); extern void mingw_pe_file_end (void); diff --git a/libiberty/simple-object-coff.c b/libiberty/simple-object-coff.c index e748205972f..fd3c310db51 100644 --- a/libiberty/simple-object-coff.c +++ b/libiberty/simple-object-coff.c @@ -219,7 +219,9 @@ static const struct coff_magic_struct coff_magic[] = /* i386. */ { 0x14c, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL }, /* x86_64. */ - { 0x8664, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL } + { 0x8664, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL }, + /* AArch64. */ + { 0xaa64, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL } }; /* See if we have a COFF file. */