From patchwork Mon Sep 2 12:58:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979645 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=aQ7DuUrF; 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 4Wy82g4HTFz1yXY for ; Mon, 2 Sep 2024 22:58:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A2D173858CD9 for ; Mon, 2 Sep 2024 12:58:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20717.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::717]) by sourceware.org (Postfix) with ESMTPS id 4F06B3858D26 for ; Mon, 2 Sep 2024 12:58:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F06B3858D26 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 4F06B3858D26 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::717 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725281908; cv=pass; b=SQTnSMrZETIGj031OQYy5sF/3Oc8eP2qHkFpn+JkhlhGPbOMkDmg9FoHuR9LkBiudJ3k38ExUpzehemPay2+AbXBPl9NHCDbU/GP6XlK/Rm766EYy1iHvv/i5I3UkcX+ODHU5Mv9Jpg6QpacdF6/IYQ+V3U8Svb1o5QQQQgfCa4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725281908; c=relaxed/simple; bh=iGsfxCE2WxdmOCVeGuZvGK75MniRuquayApbfngNbMM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DrBFLUudWJAtxerKlDbqFFU/2cTbTISwMSK7Psl5xA3t3+R9grSaHEGq9oFA9wrNAf+5T5J5OjizvtnWh6Xj0MnaWX2Q2ffJPT4S1bvW2VBKcUYbewy0r6HL3/P8M9ukZ3q72dCKOfISw2T1ee4cOCqX9rFaD8GFrV9T1GfyB98= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=swkqlwVUleHfM+Nw70xHnE0Us7ym+tLMbn+eBciv/B6hcwNAiwRFnzQ8rcfRoMiSHvc3VWb2AbklF8/Xp8ykUjmGO+k3atO+QKrD9p1u9EwFJiu3LcMNe+y6vUuLOdzpjqHhXAlUtKZh1IxyvyVYYnqg1KCtRmMz/8/AI+U6/MnPq0OXTo2tsq3UP9+Xz83Fq8gos7SbfC0GN5qfAsoMRSN3VgQNSHd4d0iInaI7vEfGV2sik9lsGpVpMFwsAmdIOu9zStgPzFcHkOuOoSMN2D+fTthZx+2ZoTHCe8KTVnAFpp7S+LnRLSRXm5pjpjg7Tf8HJFA6wk3FGs0J/UcXmw== 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=6Ka/QIVNhuSZSKcF89EaRvmhjmKID/oC87ha7eh58K8=; b=oyu+4Da9tS20sMrlohPyvj8VqHAdWkHKCph4aulFhp2HwcXFUMhWzPrCpQEWeQPUjApVvY1ia+L2IubT2esvVjy37AiZQaL4LJttkoyqHha8L++/jH/qnjxcNL6Ttr38A+9cfEaeoGO1VezpqxwQ1D7qPWgvZ/KyhGy2iPtJ3FH22JJuE02WAaAZwtXowJMnIqcDwyCeJimiEPjzmN07BAZoCX/d/auhy7WRixm9JZEvcVR69G5IWObuurg2nPkv6quZoU1iwV8vLqg0hvm1RC9l0VtyzhxNff5Y4zazeDwlnER6ytjz1nik1bCPrCgvdWrLrqnNHzkPyG+qLJ00RA== 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=6Ka/QIVNhuSZSKcF89EaRvmhjmKID/oC87ha7eh58K8=; b=aQ7DuUrF1vB/P8t1xRYkPLsPpdTy3/ExHBswu/sHjDbT9VX+XCw0ai5RTsXHhagRXGgTLmQaPSRpEvCC7Ma1IoqVRy/RnhHmKMuNjoqjsNvvFF8ehoDjRUWKA7cSpzulj3nDTUNR1LbBB9PnAM77UgcwJyVvcftAzTvnOiMRrRg= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by PA6PR83MB0647.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 12:58:22 +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; Mon, 2 Sep 2024 12:58:22 +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 v1 1/9] Support weak references Thread-Topic: [PATCH v1 1/9] Support weak references Thread-Index: AQHa/TfKAVwrG6B8OUmImvI6G8xhwQ== Date: Mon, 2 Sep 2024 12:58:22 +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-02T12:58:22.917Z; 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_|PA6PR83MB0647:EE_ x-ms-office365-filtering-correlation-id: d7ed53d5-2ec3-4e5e-5fee-08dccb4eed1a 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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Pc3tGqWlWUV?= =?iso-8859-1?q?TaLZD+xeqZfhaJ4rn+FTuBCvy0odlhMjLz8E7pSrlZBPypcYV34RBeLoM3DB?= =?iso-8859-1?q?cBh4pKHwwRItx8fm8dKXIS2TuXebeZRKkEHx3aL4e2CzCiYFdGxFlDFNXM0W?= =?iso-8859-1?q?ag/J9Ls/cu1KDVaiDCHquB3j7/mF5Pm5+FnE3iKmOczxT7AIbldLlnlV79M0?= =?iso-8859-1?q?YeJfto0x9LAyiEH47iuaIczZjMREVrq7A1vvY9guSetNBQsoJH42gENDnNsl?= =?iso-8859-1?q?H6R8HHlbSoGTxHCB0IVOgOn3tWtSec+SkZZkr0p/xGxqDsrbx95+esUFcw+5?= =?iso-8859-1?q?makvQTaRuQ6PVFYjeTh0yjU+KzRDFc32DPE4J3Mp4O8F1xPTJEXWlRC74KkT?= =?iso-8859-1?q?gtUl37CL4dllPrj8epsAYt8LwOHfmgfFY9YWC9tBAk3WzdR6hdM4xe8Nf13k?= =?iso-8859-1?q?ITsz29XZdp/GBOynKKO2yKczzaGlVJ0gqPA6mRZFt9HJrGiWyGkuoqLtMK/e?= =?iso-8859-1?q?OaFwUqnlu46y11aTNu7PS0e5H328XqF2UxI42mme0k44gInOK0RiNiWoabfK?= =?iso-8859-1?q?jWUZDGKu7YHQqt5UIzjdBy+Q=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?8/LuVYTzXTSgx1gRkUoUfti?= =?iso-8859-1?q?rcQIQmQTe3mKB0OvGWqJwi7kAfgh31t+ppyZ1U1g9vElFZ7CqeZRe5HQuEs5?= =?iso-8859-1?q?+jnpkOV2q2ZAW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hJWsMLoYz11Y70QMrCT?= =?iso-8859-1?q?mQKil651GrC6lF7ckMQkrhbbyCRt79FAuLanhIOUXyat/neh//cMmGSF8D2N?= =?iso-8859-1?q?6HrHGYqquSHzsSSfvrLuJy3eOUNGnAcK6WNJ0FxhAYosVak67zjVvusJLKPO?= =?iso-8859-1?q?CDLf0tUYvRfJM8YZDk/z3a2718s1t5S+K9XHGPl3oPwKnHz+uSzhj9kp4our?= =?iso-8859-1?q?mqxlEY8DUHzrByX1H7/5i6v9/Qhi4qYVDsLb2Mi2V3aeWWgfVoZfqOdsC3Qi?= =?iso-8859-1?q?1qWn6sdxfhshuPumiSgVpbpSDRHh+6U0NwUvIIWQ8M+BXKeQP8mqYOn7+MSx?= =?iso-8859-1?q?IHq7pCp+EiCK03fUGXtpfkcXHSlov2HY8rvwTNEmA6Hg9qGOvIsETe49gbkG?= =?iso-8859-1?q?Y9TFCOHPJRG4+D+Bz2BjJTqX/d8KHfKg9YjdWrqMVRQVemS8G7MN+cE712t+?= =?iso-8859-1?q?WMR40npHgei8uTd7cjwOv5xD611k/mCuNpCOb1Ksm9xj/CdZO4+l+w+F+g56?= =?iso-8859-1?q?v/2y04I74L1U4LIaKjdq18xTUwGcfxl9KSa/j51fTWJPQtAdzdI3pwJopmkh?= =?iso-8859-1?q?g5fujyFyPAR5wEJETCea0TJQELJD0tGLGtf93nkiPaK0jF3u5+SYgqZJ7+P8?= =?iso-8859-1?q?zaL9GfiL2lk8Hx0HMl9goaowmcnaFlGa+m3qNGRG8QSQOb84e0I0m70Gu0JG?= =?iso-8859-1?q?R59Z+dqS42/Gs7y7TCf10?= 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: d7ed53d5-2ec3-4e5e-5fee-08dccb4eed1a X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 12:58:22.5392 (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: whdD5nZBisMQsMQmpRSvfut1rjj4WSQ74vYguU9HQQxdVXTYhexMBzJpRMBr0lr09Z6jgxap5wGSdtO/D55uiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0647 X-Spam-Status: No, score=-9.6 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_STOCKGEN, 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 adds support for weak references. The original MinGW implementation targets ix86, which handles weak symbols differently compared to AArch64. In AArch64, the weak symbols are replaced by other symbols which reference the original weak symbols, and the compiler does not track the original symbol names. This patch resolves this and declares the original symbols. gcc/ChangeLog: * config/aarch64/cygming.h (SUB_TARGET_RECORD_STUB): Request declaration for weak symbols. (PE_COFF_LEGITIMIZE_EXTERN_DECL): Legitimize external declaration for weak symbols. * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): Update declarations in ix86 with the same functionality. (PE_COFF_LEGITIMIZE_EXTERN_DECL): Likewise. * config/mingw/winnt-dll.cc (legitimize_pe_coff_symbol): Support declaration for weak symbols if requested. * config/mingw/winnt.cc (struct stub_list): Likewise. (mingw_pe_record_stub): Likewise. (mingw_pe_file_end): Likewise. * config/mingw/winnt.h (mingw_pe_record_stub): Likewise. --- gcc/config/aarch64/cygming.h | 6 ++++-- gcc/config/i386/cygming.h | 4 ++-- gcc/config/mingw/winnt-dll.cc | 4 ++-- gcc/config/mingw/winnt.cc | 13 ++++++++++++- gcc/config/mingw/winnt.h | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index 9ce140a356f..bd6078023e3 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -171,7 +171,8 @@ still needed for compilation. */ mingw_handle_selectany_attribute, NULL } #undef SUB_TARGET_RECORD_STUB -#define SUB_TARGET_RECORD_STUB mingw_pe_record_stub +#define SUB_TARGET_RECORD_STUB(NAME, DECL) mingw_pe_record_stub((NAME), \ + DECL_WEAK ((DECL))) #define SUPPORTS_ONE_ONLY 1 @@ -186,7 +187,8 @@ still needed for compilation. */ #undef GOT_ALIAS_SET #define GOT_ALIAS_SET mingw_GOT_alias_set () -#define PE_COFF_LEGITIMIZE_EXTERN_DECL 1 +#define PE_COFF_LEGITIMIZE_EXTERN_DECL(RTX) \ + (GET_CODE (RTX) == SYMBOL_REF && SYMBOL_REF_WEAK (RTX)) #define HAVE_64BIT_POINTERS 1 diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 9c8c7e33cc2..1633017eff6 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -461,7 +461,7 @@ do { \ #define TARGET_ASM_ASSEMBLE_VISIBILITY i386_pe_assemble_visibility #undef SUB_TARGET_RECORD_STUB -#define SUB_TARGET_RECORD_STUB mingw_pe_record_stub +#define SUB_TARGET_RECORD_STUB(NAME, DECL) mingw_pe_record_stub((NAME), 0) /* Static stack checking is supported by means of probes. */ #define STACK_CHECK_STATIC_BUILTIN 1 @@ -470,7 +470,7 @@ do { \ # define HAVE_GAS_ALIGNED_COMM 0 #endif -#define PE_COFF_LEGITIMIZE_EXTERN_DECL \ +#define PE_COFF_LEGITIMIZE_EXTERN_DECL(RTX) \ (ix86_cmodel == CM_LARGE_PIC || ix86_cmodel == CM_MEDIUM_PIC) #define HAVE_64BIT_POINTERS TARGET_64BIT_DEFAULT diff --git a/gcc/config/mingw/winnt-dll.cc b/gcc/config/mingw/winnt-dll.cc index f74495b7fda..eb7cff7a593 100644 --- a/gcc/config/mingw/winnt-dll.cc +++ b/gcc/config/mingw/winnt-dll.cc @@ -134,7 +134,7 @@ get_dllimport_decl (tree decl, bool beimport) { SYMBOL_REF_FLAGS (rtl) |= SYMBOL_FLAG_EXTERNAL; #ifdef SUB_TARGET_RECORD_STUB - SUB_TARGET_RECORD_STUB (name); + SUB_TARGET_RECORD_STUB (name, decl); #endif } @@ -206,7 +206,7 @@ legitimize_pe_coff_symbol (rtx addr, bool inreg) } } - if (!PE_COFF_LEGITIMIZE_EXTERN_DECL) + if (!PE_COFF_LEGITIMIZE_EXTERN_DECL (addr)) return NULL_RTX; if (GET_CODE (addr) == SYMBOL_REF diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 803e5f5ec85..1e2ec53e841 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -635,6 +635,7 @@ struct GTY(()) stub_list { struct stub_list *next; const char *name; + bool is_weak_decl_needed; }; static GTY(()) struct export_list *export_head; @@ -672,7 +673,7 @@ mingw_pe_maybe_record_exported_symbol (tree decl, const char *name, int is_data) } void -mingw_pe_record_stub (const char *name) +mingw_pe_record_stub (const char *name, bool is_weak_decl_needed) { struct stub_list *p; @@ -691,6 +692,7 @@ mingw_pe_record_stub (const char *name) p = ggc_alloc (); p->next = stub_head; p->name = name; + p->is_weak_decl_needed = is_weak_decl_needed; stub_head = p; } @@ -807,6 +809,15 @@ mingw_pe_file_end (void) if (!startswith (name, "refptr.")) continue; name += 7; + + if (q->is_weak_decl_needed) + { +#ifdef ASM_WEAKEN_LABEL + ASM_WEAKEN_LABEL (asm_out_file, name); +#endif + mingw_pe_declare_function_type (asm_out_file, name, 1); + } + fprintf (asm_out_file, "\t.section\t.rdata$%s, \"dr\"\n" "\t.globl\t%s\n" "\t.linkonce\tdiscard\n", oname, oname); diff --git a/gcc/config/mingw/winnt.h b/gcc/config/mingw/winnt.h index 97fefbcebca..a21a36b7e5d 100644 --- a/gcc/config/mingw/winnt.h +++ b/gcc/config/mingw/winnt.h @@ -28,7 +28,7 @@ extern void mingw_pe_declare_function_type (FILE *file, const char *name, extern void mingw_pe_encode_section_info (tree, rtx, int); extern void mingw_pe_file_end (void); extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); -extern void mingw_pe_record_stub (const char *); +extern void mingw_pe_record_stub (const char *, bool); extern unsigned int mingw_pe_section_type_flags (tree, const char *, int); extern void mingw_pe_unique_section (tree, int); extern bool mingw_pe_valid_dllimport_attribute_p (const_tree); From patchwork Mon Sep 2 13:01:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979648 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=c7DLhmuH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wy86B2qPbz1ygC for ; Mon, 2 Sep 2024 23:01:54 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B6F83858C78 for ; Mon, 2 Sep 2024 13:01:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20720.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::720]) by sourceware.org (Postfix) with ESMTPS id 092773858D26 for ; Mon, 2 Sep 2024 13:01:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 092773858D26 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 092773858D26 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::720 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282093; cv=pass; b=t7Rq0gfsmdwoM4ks50DOj9DnMNGCBf5yxqjXYXbuMGL0w8Uq8Db6EWkvwWpuUmCHelqpeZVk4wd0gU3TNklrIxb4Duvwx/2AtcxGb4NeDQX/3BhZ6hppm5DqUXJlrJ8iVPLw4zKImL8WTxaIybWyRp9Ink4q3gmokQmosBk3JJY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282093; c=relaxed/simple; bh=RBCyK4tDjECYGKgN1b3bB7rwLnmEGob3kQ0uOwj+M8c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vISzMlCM9QNu2z+K8VdbkSXOk6TcpQ5NBLsNGyCQzAqgkntqQNhpaAhHBvGDSOg4WQfxpjkUJpj8uHXqCMuRRjaO1wJ/L/0gr/YzYqi66StjZ8Rjale9BV898ACyVWaiiEd9Z8UtuXyTIr9afhn/BFGnVI5gCJTcBg7Xcu0JdbE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qWvMfRI3NURmCpHab/o7oqVKvy/JRz6naBLcEwn5kkMGTEcd/RJ87qk89YUjZs0jECzXppKhYDUfmtP86Wz+3A+696Y7Ly7FYECgxth2iLDfkvatEXTuhhQBWnlykojv4m57XX0PlArEAy7Bwz2jf8HGQpTWfaJH3SIk9gSB/mT3ezvEyLlH3YHwPDl8AXpsno5lWSB5VAL+wg4dB2boo8sDRN6U16I4QHLGrmjDKMAngRWqdqUTEIT0uKUFT4ll62pORd9hBEXJp1DLjaNNSEDa9LdEN2iwl/71UJ3Kh4kTnaWd5Baju81RMsiUv+DzAwgBjAlWIE6LoSRoOR5LXg== 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=//swQkKy+HujzYp30GmO19j2FwPVGynfGRAPH+WLomg=; b=JQ2SHYHxo/rCFQoRThS8sTNm8SqffpdJRhzOilRyBGsR3x9y3FfJwcZMEK6wUwANiZcWA/czUjF103HfhK7mEob7VEwXGtQD46VS6qLJTFIpzDxrwCKgf+XC1FM3/9Z8qgS+Bj9mkoYZ6osC3BxXIctqwNY4wdPIg4WfJxwO0VBgo6uhbBmjGZaerJ6QncsobhhtZTquQjPmAsDGFlSDsKvhTPcB6vreUynVN8gHQTquRC/iL8r4GpkGGX8GiebUZGsc2z2O24IUmlE60jSBGIbFKWFnv66QbK7/ra47rYk44VadD3A/1VscC5qgpAvul1m9ROVb0eeDdEtF4fBrZQ== 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=//swQkKy+HujzYp30GmO19j2FwPVGynfGRAPH+WLomg=; b=c7DLhmuHhkfft09cBcrw5qnXozHJqUMeEQ0adBY2akP7+IsPQegc16qoB/wHwQ334KucZJrkc375aVeZRYwp7nCUFdyAH2yheyHpjis1EzolkGnTLxnQO+YU7lJ25AfTFnjnKXoEgAZdD7UR60sbmkhOLyGPOqWRpWiNeLBg4e0= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by PA6PR83MB0647.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:01:24 +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; Mon, 2 Sep 2024 13:01:24 +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 v1 2/9] aarch64: Add debugging information Thread-Topic: [PATCH v1 2/9] aarch64: Add debugging information Thread-Index: AQHa/Tg2FRbFIEv720mnvXmlcl58dw== Date: Mon, 2 Sep 2024 13:01:23 +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-02T13:01:24.201Z; 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_|PA6PR83MB0647:EE_ x-ms-office365-filtering-correlation-id: c7568195-0759-4769-4441-08dccb4f591a 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?yN8aKO5d5/FKJ1whuqb5x8f0uc?= =?iso-8859-1?q?oQuO5WfqEj315yMZZ6/RaqgrM3Oso+RUTagXk+hQn5lYJphvWjogAEMAxO/n?= =?iso-8859-1?q?GKC4ttLHjxepcdrXAihH+blVsCqKXvw+IWjV8x2TdOGLfKzAxLsgIKg5ExEQ?= =?iso-8859-1?q?WKRMvjaqICoA2Irqowib0SNJc4gfniMVw/4xBuGsTeqAwB9GOmRa2wW1McAp?= =?iso-8859-1?q?S/NtGEETLl/zKLFu4F0SHCvCZAEvmPb7inVl/9J3IAdyQLQaXDxkLyQ6WP7g?= =?iso-8859-1?q?Ho63e3djDARfxDHnBYqhunLOqhiT+pjEOLAS3CkRFkMCdRACLZoDBeumKJRg?= =?iso-8859-1?q?GStv45neHdcauJPDWy8sRVUb1K//+yNL6qObD5l5llSv7xr0Iijs39FieV4b?= =?iso-8859-1?q?eO7JYtGAKd20tkawx0/MigH02Q6tQyUHBZilwYXPwFwNvDOxfWY3GyVbAKsv?= =?iso-8859-1?q?SO1oOy4r6BSU38SylIopW0NWxv3D1oeNsENLaJjWtPC8ahIijnh77xXSjC09?= =?iso-8859-1?q?W4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uTSKxQ/duWIcw8KkMmrIb4McIiL7bzRVH3u?= =?iso-8859-1?q?BRxrHH28esf1mBFp496I+CxA=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?cDtUVXd0RXVZxzzNaK6vtt2?= =?iso-8859-1?q?lJ1FJOgIOFIrHETG4bYB3tnxSJtum2e0t9B48HPMCOXIxwLnekaWqmn0vO2a?= =?iso-8859-1?q?4oQGgZC8VLA0OYLRdwOSc6DhRFVvNuQ1yprRUKRhCX9o7sktRpNgbKtfXlOs?= =?iso-8859-1?q?6swFGMIa5jODxSucbrsZ18+SwIrt+2e4Y3drVe0RMXCTKeFKoyGe+wWhLGBF?= =?iso-8859-1?q?FUA2DaV1W7YtSJZmRYbmusFJr43a61/oxHTS12BXoDamtw6se7dtjEHZH+rg?= =?iso-8859-1?q?PhxySdVHlbRFWNHcmC4eu9NdQC2TvyYy7u3OvmOApJw9Xc8KtOsEbgutdZNi?= =?iso-8859-1?q?7R1CC9b9JQpp/4ULpPHP29pRXtK6CiRvHfrubIhOR9D8ONRXrvDiRoC7aqhb?= =?iso-8859-1?q?1vm+ScAJb4KoagljtPYUKxK+gjHN6dtTPUqFQ19zsUxyRttsBV6YkVf1l3fN?= =?iso-8859-1?q?r1xvT5jdBiU13U42HByIvkqJmOt0yrKgaCteVwK5MyvaZ+p+L/21f74LlaVW?= =?iso-8859-1?q?ilg9R7oodm5BWVa4lF65xDz2nO6hw0L2OhCaCKeX7Uun2a6VYHNGUtE+LqMt?= =?iso-8859-1?q?3dYn8XvTShXKXo7DVyFDSXKDl1e91C16dCGKjPXf3Vyap6z/+VM70PgIekh8?= =?iso-8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z7oqTwUaKAwDtqXGn3t6DC/j9QVvf6QgxKbu+FC?= =?iso-8859-1?q?gp1nwsRPhMdZQf86p3poTdQjufMfgTuQHHOJyWX580GYILstmXioclRHPlaz?= =?iso-8859-1?q?3WoS3P5/VEdQWYWQc7T5SrVF9IN+MDV8FZgVZ9N77vTf7EEfZb6Z6+bsaVDO?= =?iso-8859-1?q?SlDG9gbh+2EOr1ISoMke8?= 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: c7568195-0759-4769-4441-08dccb4f591a X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:01:23.7180 (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: 6U/5HnfD5FKia6gscHW4kTgZylLiUPUX1cpUigjioVx2+rMK7WbJJKYjRG/25XetLL+3zI93PJKiiyNfzrl9uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0647 X-Spam-Status: No, score=-10.4 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, RCVD_IN_DNSWL_NONE, 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 This patch enables DWARF and allows compilation with debugging information by using "gcc -g". The unwind info is disabled for the moment and will be revisited after SEH implementation for the target. gcc/ChangeLog: * config/aarch64/aarch64.cc (TARGET_ASM_UNALIGNED_HI_OP): Enable DWARF. (TARGET_ASM_UNALIGNED_SI_OP): Likewise. (TARGET_ASM_UNALIGNED_DI_OP): Likewise. * config/aarch64/cygming.h (DWARF2_DEBUGGING_INFO): Likewise. (PREFERRED_DEBUGGING_TYPE): Likewise. (DWARF2_UNWIND_INFO): Likewise. (ASM_OUTPUT_DWARF_OFFSET): Likewise. --- gcc/config/aarch64/aarch64.cc | 9 ++++++++ gcc/config/aarch64/cygming.h | 39 ++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index bfd7bcdef7c..e4df70ddedc 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -30588,6 +30588,15 @@ aarch64_run_selftests (void) #undef TARGET_ASM_ALIGNED_SI_OP #define TARGET_ASM_ALIGNED_SI_OP "\t.word\t" +#if TARGET_PECOFF +#undef TARGET_ASM_UNALIGNED_HI_OP +#define TARGET_ASM_UNALIGNED_HI_OP TARGET_ASM_ALIGNED_HI_OP +#undef TARGET_ASM_UNALIGNED_SI_OP +#define TARGET_ASM_UNALIGNED_SI_OP TARGET_ASM_ALIGNED_SI_OP +#undef TARGET_ASM_UNALIGNED_DI_OP +#define TARGET_ASM_UNALIGNED_DI_OP TARGET_ASM_ALIGNED_DI_OP +#endif + #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK #define TARGET_ASM_CAN_OUTPUT_MI_THUNK \ hook_bool_const_tree_hwi_hwi_const_tree_true diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index bd6078023e3..e4ceab82b9e 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -21,8 +21,13 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_AARCH64_CYGMING_H #define GCC_AARCH64_CYGMING_H +#define DWARF2_DEBUGGING_INFO 1 + #undef PREFERRED_DEBUGGING_TYPE -#define PREFERRED_DEBUGGING_TYPE DINFO_TYPE_NONE +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG + +#undef DWARF2_UNWIND_INFO +#define DWARF2_UNWIND_INFO 0 #define FASTCALL_PREFIX '@' @@ -75,6 +80,38 @@ still needed for compilation. */ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) +/* Use section relative relocations for debugging offsets. Unlike + other targets that fake this by putting the section VMA at 0, PE + won't allow it. */ +#define ASM_OUTPUT_DWARF_OFFSET(FILE, SIZE, LABEL, OFFSET, SECTION) \ + do { \ + switch (SIZE) \ + { \ + case 4: \ + fputs ("\t.secrel32\t", FILE); \ + assemble_name (FILE, LABEL); \ + if ((OFFSET) != 0) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)); \ + break; \ + case 8: \ + /* This is a hack. There is no 64-bit section relative \ + relocation. However, the COFF format also does not \ + support 64-bit file offsets; 64-bit applications are \ + limited to 32-bits of code+data in any one module. \ + Fake the 64-bit offset by zero-extending it. */ \ + fputs ("\t.secrel32\t", FILE); \ + assemble_name (FILE, LABEL); \ + if ((OFFSET) != 0) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)); \ + fputs ("\n\t.long\t0", FILE); \ + break; \ + default: \ + gcc_unreachable (); \ + } \ + } while (0) + #define TARGET_OS_CPP_BUILTINS() \ do \ { \ From patchwork Mon Sep 2 13:03:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979650 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=XOHYNGAG; 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 4Wy88Y4Bdgz1ygC for ; Mon, 2 Sep 2024 23:03:57 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C906385B532 for ; Mon, 2 Sep 2024 13:03:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::72b]) by sourceware.org (Postfix) with ESMTPS id B69BC3858427 for ; Mon, 2 Sep 2024 13:03:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B69BC3858427 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 B69BC3858427 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::72b ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282193; cv=pass; b=cOm7iE07m43juX8MntPv0A1c00fXpNahC9lOdZyVjSOrsVk2nyFZcFcqLYfJRe1H1KoH+u74hwTs2Av/BWPdmZyDdCZ+x4s0ahVIskwNBq8ggLmjKimBKVqOKLhWi8DbP5Oc9IDfdo6AILlih9NFbBgHz9U6JieIjMBeiDaLjQI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282193; c=relaxed/simple; bh=GXDv49NmeCvbxLGpa/Vq4TfpQrsAZAbEBUn0mWwJ/68=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GyUxEIL/U39BA2SY/o/4unB1b6Bldi2Tccm05VFQsD3p2jqJfQOmCSXLiabIMTz4t4hYEdNI8C7Biz0ZfUzLTIm8fiYnLzHznRMq8dryI8g3ovY0y6KqruHPZ6MIXU7g83OBPk2fAj3p/6w3MiRHbhJaDxP7dskxogw8CuDl+iI= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YQZxDIfpYI/71L7eeDabfvcKfdoJ0RCZrsCZnXtgoKJNmzaYsob9lT2aTQ9w+8WzEVM0smqspPtZLbl0fXLadg8L+OHL1h9MYyQwjCS5DopY/D0WKysQFC5mfKHY4qkG+GdxeG95WVn7QUcM428XhQe2ZkJgexADDascYA/3QNaQa3n4za7rSK22YKrT3Mx3LETsMtNBw75lvUdkWr8mBYL4txiCFHqYxAuwyzud58SZ+H11ZvkhCwYnhbctdxWl1IDsqTCATfRpQ9szWhUUhabSTDWfLgogJzRqW1XVr/t5sUaD/8bGaSlEcru063h6Gu11zhtZralb1/mlsLBy4Q== 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=5GuwoaXQ95oB5tj/RCnpZY/OGktKjeii3Bh4q+I7RXQ=; b=Hlm2ULzz+MYcetyHK/sjfqeBM1NBmD8+30eXjqOWxIAEiB2afuRholueToin1ay9NG7dUAU8vCYLif2rfhMm/6irdgOf81gPeQ1mNkoyBwzrASQZv2OyJy0NHuhnCsN6Ouivx5ofOvDuwo23IBW79SFw1sqBtc99iU/3CQSDQRlUBa67HhmTj/4FSeXkWHVIvOMG42s3soRT7qIsP8yBCPrF/8MympLM8QjVySfNEKk/XtQV5EHdhKMCFHJRcVVR6l9/Djce1KlBAa8PkaMF1pt8pEciU1mm2K+E0S2UnCDDChFQn4hHjAv+tu7G1eVi/0gLFTC3bXb6fwNWb6dTeg== 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=5GuwoaXQ95oB5tj/RCnpZY/OGktKjeii3Bh4q+I7RXQ=; b=XOHYNGAGwVWVrOwuWrhsFlerwBDsObktXKc05KdCYSWnfK8RbptdBe2kaRPJrgs+22eewhyWzPzjm8tk28bVPi5Ae//byIwBaf3dIOcE558EUi7HZ4wvTyDujG6jnJePb8+bRccm6FVynl0I5eDogry8j234uXoAtNnjLOYeMis= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by PA6PR83MB0647.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:03:08 +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; Mon, 2 Sep 2024 13:03:08 +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 v1 3/9] aarch64: Add minimal C++ support Thread-Topic: [PATCH v1 3/9] aarch64: Add minimal C++ support Thread-Index: AQHa/Th1vuW3ZgmJaU2coneVPoy3xA== Date: Mon, 2 Sep 2024 13:03:08 +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-02T13:03:08.953Z; 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_|PA6PR83MB0647:EE_ x-ms-office365-filtering-correlation-id: 931460c8-8dec-42eb-ae68-08dccb4f9796 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?y/uIkyF+etFDaKO7psZtxaLQ5z?= =?iso-8859-1?q?elk1fGRE0OHuH+5+SIdvJSqI1aEKcdmnT5bkvAgZmo9H/JDWSGLZqty3uE9c?= =?iso-8859-1?q?LIQNtId4oIyYicrz/5THfZGNJLLhSJSjyJqHnVTcnxE/0N/p+t6/hT/4lMLw?= =?iso-8859-1?q?owz6743UvNP7mlPBfB824bGceDZDGVx+Iu0sROi1l9W+9zRRo5zCpQNzivf1?= =?iso-8859-1?q?vjE7wczlAeWujsMRYh/VmX0IXI9HNgxh2tnQ2RHaJRsJtJtpVm3k1aGf3K41?= =?iso-8859-1?q?DU4c33RfN1lv+GKK5UAYvHWCvDqPwVMUkAR/k9qIyAnlN97nqzam+gvZRbSz?= =?iso-8859-1?q?+L8xl44j+BE//lhZQsGgvK8/Es45tJdzgORQ/YZsuTRZSCB+V6xW7kvK6yL0?= =?iso-8859-1?q?+Fulhju2u2LXolo7+WnTXFd7Q5z0TN1fNbS4zsHMcEfKFAfqvi0mTrVRRSw7?= =?iso-8859-1?q?w1v28ooALt6fSDkeNwSLQPmMra6RBH4lTNcJin86OxSSszkfmt4M9zZFEATy?= =?iso-8859-1?q?3I1JdUP0zW5B/HZiGXXtn6K5jBAxA5TyCAUsuRyU4+Me0imWaHhkLlloFpQ8?= =?iso-8859-1?q?M6KsnNmxGpPmrYzZ/nGcrIH6p7WUtd5MJ62e+mpkFIs7Kc71n1VGtLkrw+cy?= =?iso-8859-1?q?NgXU8+8xEMWb4RYiKoaopFZ64hXliDtBdSMxLJuMj8mRj0xefp8NNJ/tCrBX?= =?iso-8859-1?q?zpmtNAzSMtqGVr5uPUFLrjdHM/JvLyppajcNgBC4xie4vMUud0nO9ep+gmG/?= =?iso-8859-1?q?EHcLhRxWSYruY6v2Rndjo6qPSSwXqCnXhJDFzBlWQLEY26lUkB43iaOhqF0l?= =?iso-8859-1?q?1M9Ni5Lsv/eFRc8UpUUcHyLcIrsp159TY4hJbejnaufoYFBRbfyNCXq1WgP9?= =?iso-8859-1?q?5R4iNzMqiHkPKxBk/f39IgUNYHWJonIzYs1+yd4fuklj8l16hgyprQgSXu6C?= =?iso-8859-1?q?wKcngAFSZITD98nMCNaRfoTK2D9UUS273YccsQzg62/WvOAe/H+urkaBPh43?= =?iso-8859-1?q?OP8e5lIJUsCmqA1YEEEUXy17rw3PaFCIZkfHduF13kEWD+BRcYE8faWa2bdY?= =?iso-8859-1?q?hsd2UTzZCGEPuMKm1W8Hg3J3ErUsXjcog/1PE20AOuA1SAxeBXWrlnIAnXYG?= =?iso-8859-1?q?9DGqFOxVTKck8s+Cuqoh9VujM/0z0p+auLITwD0X/LbAteGSTZvPYAWgPRQ+?= =?iso-8859-1?q?Rk86eGdRHGb8t84gYMFan1ik8c/FjlqvVHOc+v/R/bcXm7GzZ80kzGSyhHLq?= =?iso-8859-1?q?7p58B42VpLlBwpjRhg6Etb+ajJ0rAOkKXG2+Ufh/CLMKI7mekjCi/tIVntDH?= =?iso-8859-1?q?s5p/J6H1YezA/syeMKhsKyxKi+ouVkR3rmu4m9yrCGL4LnLZn4juAQ9LPWN4?= =?iso-8859-1?q?tSSRmfZGcJZ6t16x5O94HWmwM/lULsIWPZ1Q6Mh0IfL5UUq6gJmUvHhY2ayi?= =?iso-8859-1?q?mQp8TQPe1ip6b/NfNdWDKGqQ=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?ARD2Ow7Wyz6nlWL4JEkHWVI?= =?iso-8859-1?q?SEHgBMQqEpevV6xqYo1h+JF6D1VUiqgYEJkT9F7pkm/kFCmtokwMO6ZtWTES?= =?iso-8859-1?q?t6a/dxrLPc4mP5PKm2Ca0168v66F6DBMVYJuk/9yWXBS2QeflNARBZAHxvX9?= =?iso-8859-1?q?xCW3SxnsW5W/+usRyCfCtIRgL1ZARzl8E7TBAlM9yNZ3MjrKirhsWd7XgtDT?= =?iso-8859-1?q?kPzLshqiF4I2iVD/L+LQRpp+YXzv3nf63cKudo/+8J6ArBA+8OZVTit5geJ5?= =?iso-8859-1?q?Nw/k6H9xPHB+HteHPpc2dI5aFptPtWJvkLfkGnRm5IrCZrPyxIRzsN4vQ/Sf?= =?iso-8859-1?q?lc4hXo8jfKC1yOR25xwtgy8z2T7uz4Gam8GC+Orbc72yO889U1bKKsVckiqU?= =?iso-8859-1?q?ODhIOToIZCCYbhBdpGQtzrxPRBbC9SjufKouUVPwaeSJB0FVeINJzBR3/ofi?= =?iso-8859-1?q?/V5lnPQZRcV8nriplz2JyloQt9uHByC2yG5gxT9jS24nn7DPxjMIxoy3H89i?= =?iso-8859-1?q?o9D9/t5Z3yruVhAMn6HUEoFH4JdDhHgE5dOJpsNEEvf6t65ZSx5evgwEB1Fl?= =?iso-8859-1?q?CyZCiRvrlQeyCsFhu6L1+L5luM+VcjgJRGdEuOcMJyQScuVSogjSSzo8GUYu?= =?iso-8859-1?q?DpbSFXTugCQ+228Iee3YwABHY3maOwHU1XoKNCzkUbBmX4OfPOWuGqhDVh4f?= =?iso-8859-1?q?e0BIVPtdBO3la3L03iptAyF16HYQGj4t11TyqO3Gui1jKsQyc53SnRZ8i3Ai?= =?iso-8859-1?q?rNsRpyYo03U4+dWkSYbMG/tY0Xl3ljxq8BkjiudRiowCP+2t/dhqcEZH+jss?= =?iso-8859-1?q?SwkLck1L5htKEoR6CZj3remTlQJQpxWHP8MD4Rbn1glnWr5FkLo8gWneCiRC?= =?iso-8859-1?q?ro6//G8r9u/wF0mENGPRN3i7+NX9Eg9iFSuW0HSUpIiDaydXeclsKjWXZLDB?= =?iso-8859-1?q?TTqE4281K2GcYwh/7C2E9cRujVulsApj4EBa+QA7qqvT55RTmGe7aR83Z/An?= =?iso-8859-1?q?fgymZdFrVbNRQH2+0PFr4orHlPsMRdqMX7v/JSwRcGYPaRSUimde4vPogB1r?= =?iso-8859-1?q?sQmnVCvQb9BBoSProagHEz1NWe9r7GJ5F0gZQmFgYF0uJVpkXVnnQsjAn3IT?= =?iso-8859-1?q?8mLK+rK6aahNFKUQGtvxlmh2yMm3MYoDxPJLCKrLzRf+9jWkj2IYEzMusbOh?= =?iso-8859-1?q?QVpdf0wq5mCIvU0VxVrhi7b9GBSCoqpKXjFTT7tHm30zFh94oGQpK7p+v+Ay?= =?iso-8859-1?q?wAkuWSg1+wzDlME219w3ZNXUJBD4CVY9xbMWcCdxNBXeib2VgcHzHlpNdDio?= =?iso-8859-1?q?I4yBPLQd8f5OvBgKy8N5jl4AP58Vhm+j6OklJAwWZ+w4reC0o4AqAtELGpXl?= =?iso-8859-1?q?gDLUBEDfwvVRpEN8sD53j2+UE0QUkDqz64vqr/WqJO5RHfFbYKaBmOVfRnT9?= =?iso-8859-1?q?UpJ+iHpuRwGM3ZQwWwWbAeuQJPtu6N1lRZn2f18QONO+HrBppSaSAUWarLtn?= =?iso-8859-1?q?xog5896/c9ZxKArZOsBPfx3xgW90Ck4Rh2EzkjF7aTYqHDutrH1VmHBeRXVK?= =?iso-8859-1?q?Lv2K9vLs0SD79Zr8XIyo9cBBFbS+15kOAfPaisR/rMnA4XHe0Q1kCBnq9if4?= =?iso-8859-1?q?Nc2uhNl13WQpsQ0IylVn/v2NtKvKAoP+I95Hx9gTP0BajFqkzoYIWqTg0xqS?= =?iso-8859-1?q?3YeuKMwtIfUYyypOjKMge?= 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: 931460c8-8dec-42eb-ae68-08dccb4f9796 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:03:08.5373 (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: 5fbhAx5Uc7xFRHgqirAJjYP91jbQ9UkiI0N29daAioFML5PEocMcjpfOVM5q0737wCo1Wb98xng28vp6nyB1xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0647 X-Spam-Status: No, score=-10.4 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, RCVD_IN_DNSWL_NONE, 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 resolves compilation issues for the C++ language. Previous patch series contributed to C++ as well, however, C++ could not be tested until we got a C++ compiler and could build at least a "Hello World" C++ program, and in reality, more than that. gcc/ChangeLog: * config.gcc: Add missing dependencies. libstdc++-v3/ChangeLog: * src/c++17/fast_float/fast_float.h (defined): Adjust a condition for AArch64. --- gcc/config.gcc | 1 + libstdc++-v3/src/c++17/fast_float/fast_float.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index a36dd1bcbc6..e1117c273f0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1283,6 +1283,7 @@ aarch64-*-mingw*) extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt" extra_objs="${extra_objs} winnt.o winnt-dll.o" c_target_objs="${c_target_objs} msformat-c.o" + cxx_target_objs="${cxx_target_objs} msformat-c.o" d_target_objs="${d_target_objs} winnt-d.o" tmake_file="${tmake_file} mingw/t-cygming" case ${enable_threads} in diff --git a/libstdc++-v3/src/c++17/fast_float/fast_float.h b/libstdc++-v3/src/c++17/fast_float/fast_float.h index 7551c4f89ef..dc61de7b199 100644 --- a/libstdc++-v3/src/c++17/fast_float/fast_float.h +++ b/libstdc++-v3/src/c++17/fast_float/fast_float.h @@ -275,7 +275,8 @@ fastfloat_really_inline value128 full_multiplication(uint64_t a, // But MinGW on ARM64 doesn't have native support for 64-bit multiplications answer.high = __umulh(a, b); answer.low = a * b; -#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__)) +#elif defined (FASTFLOAT_32BIT) || (defined (_WIN64) && !defined (__clang__) \ + && !defined (_M_ARM64)) answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64 #elif defined(FASTFLOAT_64BIT) __uint128_t r = ((__uint128_t)a) * b; From patchwork Mon Sep 2 13:05:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979651 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=XBmzU+8h; 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 4Wy8BY4tGtz1yg9 for ; Mon, 2 Sep 2024 23:05:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8952A3858C78 for ; Mon, 2 Sep 2024 13:05:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20731.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::731]) by sourceware.org (Postfix) with ESMTPS id B170E3858D26 for ; Mon, 2 Sep 2024 13:05:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B170E3858D26 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 B170E3858D26 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::731 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282319; cv=pass; b=jlH1HDPTq+7oV8RQciAo/CtXd207s3zBtYBePp9vRfeBfCnX2Rcf7Ul+M0Sz4ELPQ5pIcnVRW0+YNZB82oLbQSvHRamczyPMkXbFqZhwk6OjoweRhB9zgNpJfZDhYdDkcYD9cuFtQhNVtqqzCT5fvBk5la27s4J1QvvwsS9qHVw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282319; c=relaxed/simple; bh=7hX0gQGn+Kynu/ZESKrO+R852vSvZAa2k4DTvfMqnKs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fhN49rGIOjAyoBGNDWHKFp9mGHqYod4Khg9gQfwhg/xltu071bEbvNxQUpktqlhUwHG3XF/ix3P+KtA8ydYPqPuznZZExHmk3K2glRB4kWYmSYfpT1TOtYzgpJ6oy7+QpfMf2EYrJ+gvVDRBnTvmFjUgYc11hbsuebebLbfHdOs= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BltdyFWwNE8Oc8KTG79/2xRVs/NeI0oVkQZgNBWuGDWECQ8YcfcDQEz9qYZkoduQ/cSrJZuWzE0TETZ20D5DcRPv6T6kuoY8neBC3MycyWVQqHd5Z0y0bpSYm/Y3okY5W0z2STcb8N537nBjCaourb75r95wgnIQDMHaQDuxHKNx3gj/ASYzxPAxI2qxeU+y2/Ru9XYkoHcUgAeDghfHLc7Es2ni1HBlHz4Rb14MOSK5Ck5iktOKJo9XXFnSumjNE5JK8CmLVKPSO5b72Kr2UOcfZxzINolaiOWUalZFdomyIhZL2BvleiXQ2mlRdd5oX1jd2IXlcSz/2wFaQ73CsQ== 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=tvmL2ES4groLE1NWxZkxOACA4XkhurgmRBL25uLsI3Y=; b=uLUzJErvkFmQ5VnVwzrWlET7tiA4eyBpKp1fOSGNP2bjfQ1gFoFTil9pOVFvH1svKPqJby0n83pR3WIKVsZHMwaH9tZKp90eRa4DMc0y29wvVS2XuGjnhKq8fv8rYj+CSENf6X1momypV2ZnJp30dJOVA8e6fJi+p6spxjjR6yEVJWHORyhj4AVUPs7hYe0NJzcQ1neODeCTqIavBcG+/LIGrgdve2QQgK/BKsIuvaqGqfhbDrmeKbk9NRIJVHCKc8YcYMebmVx1zKb4iPHOcTIm056wkI+IK0AEdMBF/e4Ow/PjR2o28kFSShwurin8CqhP/CWeI9xmN83tCy8Wiw== 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=tvmL2ES4groLE1NWxZkxOACA4XkhurgmRBL25uLsI3Y=; b=XBmzU+8hlVhPuGeqnJHJLKcy5iJHgY72YakK8wJX41RwohywuYaGAOOK4tFwl5Nl8bZg6wDEnoWyOnXxbrqEdrihMQ7w4WINliez94uwLaXpJoFc54oHoSj36S1ihc63HzrPNvMZ6HjGIm4ishMxxLqvcVRk33WqvQ4kkmkIqv8= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by PA6PR83MB0647.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:05:15 +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; Mon, 2 Sep 2024 13:05:15 +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 v1 4/9] aarch64: Exclude symbols using GOT from code models Thread-Topic: [PATCH v1 4/9] aarch64: Exclude symbols using GOT from code models Thread-Index: AQHa/TjAyt0No70F/ESRjoDomf+QCw== Date: Mon, 2 Sep 2024 13:05:14 +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-02T13:05:15.385Z; 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_|PA6PR83MB0647:EE_ x-ms-office365-filtering-correlation-id: 37882b44-97bd-48bd-f403-08dccb4fe2e3 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?Uh0YdZMGjirHcNGT3ZXsw5QZbt?= =?iso-8859-1?q?0iuPCyg3MjKej7+ZIMAcao9MCaFRRGE0Bxnl29zXWSPcx0JkAa7K4icWlol4?= =?iso-8859-1?q?L0YcniWxjn/biBW9sUQ56u/YLLE/xctzVZfq01VW55Roae/WWoYMIAjz7mXb?= =?iso-8859-1?q?KbuR2791FiJ8XYC6nOSF678+Y+ICimpNIPKQ+ZnnER4YBr0JmL9DVfifmd1e?= =?iso-8859-1?q?zx8PFSq9P45z2M6y38qohkyS2RVoL4R9DfCzXlpY9xdhFTr7s5kV1rCHCd7I?= =?iso-8859-1?q?dbF/ZmCUymkhIrTKlpHKi549VqOL51Bs0Z/nwODKYBhl/+8hCUBC3s8lBTeS?= =?iso-8859-1?q?2aVC9E18IdWBIHi3xyk3NK/n7jt5fvuiA6cSQSglSdf6wHLWaOYyw5Tg44Ga?= =?iso-8859-1?q?X64Lz9kA9ZSbIy80gLIJKO2EA7+s83stgs5lhM90slZMUlOYXk8LOxeWQvgK?= =?iso-8859-1?q?BSFTDPosCTkR3J7cLNxBmP0GuEhkxO6EJYkvCS94f/Z/v7JumbGEqHdwMdfd?= =?iso-8859-1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zyiv83V5cO2L1uetnOXbcU+L5PiHo04fk0a?= =?iso-8859-1?q?aayJ91bXKuM6Bkb5aLiChkSw=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?tNfgmhmkPkH+FzQJvOgmAou?= =?iso-8859-1?q?i2ki0Fn44/MOWIkCE0plWohnH2dGEaKHd/YPdfU5wKDDUaH6sPrqjSGOcBjL?= =?iso-8859-1?q?H5hwuVTmoMiKXUmCIFeYV+k/pMG7Y71O2S26e3ZjVWWL0NNOsRQ0UPiH/WDV?= =?iso-8859-1?q?SvxVLuSaopPIrmhDYwwjCTF79Bt1JCoIfKknTfYx02fC1ozadBpf/yg3EVrW?= =?iso-8859-1?q?/8tC5wf5ThT+sBksV39xqXhntXfYArgCuac+s2PbDMxUv4neUe4zqxfsLidC?= =?iso-8859-1?q?mCFOrO42u9fFwmyH4FhgaK8iyCXqAXhu6hU//hdI9FgP0pvCSILMwsIpvezS?= =?iso-8859-1?q?RqUGGNtoCh6YOZHJMnkhho4qpCMd74XNK0ubhEJCvsXXdOLmFl5/N5CCPc8/?= =?iso-8859-1?q?QnkeS/0cMCMmnirT159IOYX3mfKVgN54Io1OswNoFszUQ+rTyOWnGV9nlFvf?= =?iso-8859-1?q?6MiN9q57j8x3lzRaaRW8iDsD8563mBBcHexfRMUGMOLtHhPGMwm8sNQtG98n?= =?iso-8859-1?q?hB6nBlcB85KBOLc7nSB18D17idP62SUY6nd8Q8iR9G2pkqsOcdXr5X4TcDZ6?= =?iso-8859-1?q?3UObf8kjhpf/g54UU0yrJtIaB8dkF2GrtA9qQqVk01iWYslprEEZZ2rcWgme?= =?iso-8859-1?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udE5Im8RUTQKg+8i/TvMN+wlCi5LxlcbA?= =?iso-8859-1?q?36juKdQR5plZds9eQv4JMEew8aETpfJMZ5Q+VEXab2W8PZ6ytYIURkijljXY?= =?iso-8859-1?q?0aLInAbTi14XZXmx1UpuESpWS6NYUayiz+XlIXtjlTHBiEF2dx7u04Z1AF8Q?= =?iso-8859-1?q?3Dnk1opREXvVzZU2Ok2Lg?= 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: 37882b44-97bd-48bd-f403-08dccb4fe2e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:05:14.8910 (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: x9UZD7EUyfACpD24U5Q/ZKGv5+PaKmXZfkfVXtjA4YIGqV2Z7IXlrGwesoyTD9a4Js3rqIklQeeBGmgHF9lvDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0647 X-Spam-Status: No, score=-9.7 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_STOCKGEN, RCVD_IN_DNSWL_NONE, 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 Symbols using GOT are not supported by the aarch64-w64-mingw32 target and should be excluded from the code models. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_symbol_binds_local_p): Disable GOT for PECOFF target. --- gcc/config/aarch64/aarch64.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index e4df70ddedc..7865484860b 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -20885,6 +20885,9 @@ aarch64_tlsdesc_abi_id () static bool aarch64_symbol_binds_local_p (const_rtx x) { + if (TARGET_PECOFF) + return true; + return (SYMBOL_REF_DECL (x) ? targetm.binds_local_p (SYMBOL_REF_DECL (x)) : SYMBOL_REF_LOCAL_P (x)); From patchwork Mon Sep 2 13:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979652 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=bfIaQEv0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wy8FW5BK7z1yg9 for ; Mon, 2 Sep 2024 23:08:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 048013858414 for ; Mon, 2 Sep 2024 13:08:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072c.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::72c]) by sourceware.org (Postfix) with ESMTPS id D5E5F3858429 for ; Mon, 2 Sep 2024 13:07:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D5E5F3858429 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 D5E5F3858429 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::72c ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282440; cv=pass; b=LaV5crfHe5Xkip8/nvVgQ1ydvvhZlPzPzzbTqmso3MTf70KSXBCTxJXyBHro7udx1dK6o2tNgPQoKi2gvLjbgeBeugbJVkUEqisbLD1W0DyfNgAKor/Z66MtxLxfphOn6aAV0WPTWkFCI3BpbwtsmIKPzFCEiwSiRF0D48rKXsE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282440; c=relaxed/simple; bh=5QU05bD3nO5dG6FeQ5YGywvmMrEeZ7tAEdFqxB4bajc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=qyY/Jw6s68MDCHJzHZWOvHcEwYh5lD/xMB2bIOm/K3upAOBprNYbL/l64L8r0+rOFbUoEIApv069b5liSFp5KrbChia3GX/sw37FNgKgpSXjySDjmCwA7FePzVzt4ogPKmmiJtt+nCKmcntjlZN8YNW66k6UHHboiA+0kgojgh0= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tnXJSUK8I/5uK4Ap7SrMLrKmd8h0W5sPXozDGnaAPUBz8cyjErWqqD5oLeFYIH8AAQAx822240K0WB3ntbN16THxH9Nfw+TRca0VkFZ7vCgxXXw7WlbVky0qgaVxlitEetCoptRG/zCQq/TojTcEzXGpfPLp28NnAym6FIkB3htDi5nQ7VXKq+nP3bSxwJHovPX+hsGCJnRtcizLXd3UVOGOoX4zaAFPebv7c2FXUV43cblDLNkR8J8uRR+pW9vxMAreGsL1HmIGm/Zandw8k2mWfgJShflOSNZZ9tsCFrAmVnqfatP7LVpLzK4Du4gQRZXmMr3ZDSmX81bQVnX5ig== 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=ohmBWe6DkfuiQWUxJtrGdYFJ+Q6OG5ELUT3jxzTFeO8=; b=KNUUYf4eGxqqW24+ddDVWp3q2m5BVxqB2FQElRpPfO2LIgdPMfexwuq49iH76B6Et2MRU5wwbUWp42xPrsKv1aGTmDzbjFliEfNswbCXhlyXjm2tHewWHmU3P4CFvoewFny3+ElniIv3auxpP4Vc8PUL5qsi76X1oJg63o/8K3KQFaJ8oB3+KTSVNLeTfrV9Pa5PLL72dtKzdGdBq181eXe2RbYJcs5upx/0qQ5ACQyN8VhwOl64z9qGI/ndcaFTBm4mj+WJIewrK02ofAiZ0DnluTCjVCh2GCBP5JenP6exRFulzRlfTJpQOomMxEZHPRoXQhw6FW2Z/ZamK77w7g== 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=ohmBWe6DkfuiQWUxJtrGdYFJ+Q6OG5ELUT3jxzTFeO8=; b=bfIaQEv0wSEE8hA1DdfGI3ikM6VoKATwa9jM6TI1Rj8HHs7T5yISFBswsnFVUhAxfBKZ9Mh1Td4Voy8lmjvOrf5i82moia+oPRv0a7Q2TLtCxNVDjJoMA8OItktJx+1k/GmhNVZxoozYTk7caEoZkZMwVRcI8ciyBsT/VX9B+Ek= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0573.EURPRD83.prod.outlook.com (2603:10a6:150:164::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:07:04 +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; Mon, 2 Sep 2024 13:07:03 +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 v1 5/9] aarch64: Multiple adjustments to support the SMALL code model correctly Thread-Topic: [PATCH v1 5/9] aarch64: Multiple adjustments to support the SMALL code model correctly Thread-Index: AQHa/TkBw08e5xpGaE6/bBzaFR7itQ== Date: Mon, 2 Sep 2024 13:07:03 +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-02T13:07:04.331Z; 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_|GV1PR83MB0573:EE_ x-ms-office365-filtering-correlation-id: fcee2de3-ad2f-401e-73a8-08dccb5023d3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?XmvtUk36dXOsV3cI8sHh6VPaAF?= =?iso-8859-1?q?IfSl/mg0UpF22Tu6IYQ0F+mu+n8V5LGT9NWyc/NGO1/TBg2xOso0w0xr4p8N?= =?iso-8859-1?q?a8Kqww99VLT4qtty7MDRBmqYiYpmbAePT/4Y3hcGDF93EjuV98DJE4JygnTV?= =?iso-8859-1?q?JYpJ4GvvlSzSxbPkWOs3HYppyNix92ONBbb5V1S9EmCf6U1v9vyxKCPAfMKj?= =?iso-8859-1?q?gJ82Og3H63tN3/Cj3jhTaAj0SgrI3YsLxukky3ZMNlSokJxw+FqU+7rXXgJk?= =?iso-8859-1?q?q/owpp2thlCFYKlRDg1eRylNQN2LO9Ku84d9X4CB+cyJUS6QtAB0uqzwJhZb?= =?iso-8859-1?q?0ZyKvaoBesV+tXcMyc6SiRzjcOynLfyw7XJxpedSSqEqFE5aRNw2yaUkVyIb?= =?iso-8859-1?q?AGW4vdZh8O3R5hKYmNV8KMQDpw1CYOkhpdAI62J0d1E5bjNR7eAysK/kSqAa?= =?iso-8859-1?q?VdN5F4PhRIYF15mk1tt+uENqFEDTh7e8RNQ5xcgSF52RJtC8R4knN3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5+pUic1h+5NpSX1vzHCuJmeDuoeNhSAumcIy2vl1GE0XpgoInlwt?= =?iso-8859-1?q?AKM4/bdel5UjzLtiKqWO8ebw=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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?dlnSTZ44kX2IVAQ6UsWlaex?= =?iso-8859-1?q?foB1pyJ3UivG06haPv+b5EmHTZZncVN9P1m2h737WoTg6OQ0qoF6+zKkbMzN?= =?iso-8859-1?q?uXm0zoZ9RgwHgP305siEY7baOMlAtlhZAmZHV2p4zGvmSv2OH2BlHEeRQ+vJ?= =?iso-8859-1?q?iy6OKJlTTd2l9lYuNRdeUEVpDKEe4nWBM5R0NHk1AXaSiajenY5K6vU/qU47?= =?iso-8859-1?q?1zqxuKuCWjrUixYYn2DBMOSJAV9VL4yjxTMWhD3MJd0Q7PifalMR5gC8SypT?= =?iso-8859-1?q?msOeg/1GcFNiiY2m/PHOhKfRtNsze9oCWQAQcnE2N8wWSJUZQWs3LCtSASCm?= =?iso-8859-1?q?DoStfp1LyUQ6gs5zhdkZ9C21HCDPAxDzN/Cf5JHhOM9+ZbGSAaIkzT2JYOLN?= =?iso-8859-1?q?P3BhLTrCz4yyT0ZrcFXAhauvfcFBFTvEz67bCHrT9BL9UdpgnVehkvDIa0kD?= =?iso-8859-1?q?ie6R3W8hUxnvsB/APlMDvByrKX5X/01R9M7HspQSSBtHSruqGQ3HwuOp9lxY?= =?iso-8859-1?q?bHgw0FS1KuWO+mXMExFqTPxglYdp8bGWoKdDpYHXWW4gq38KXKU4mseQC6yO?= =?iso-8859-1?q?ENQ1azhDJFBl62gp6dHELSOyw5s3Un8GvAMab4p69j2Xn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so-8859-1?q?OCYr/8U1SFlTy3LMJ1PA8KY5szuVUSnCF6fQKbI0TIWqFeRzkpDoudcdcP/9?= =?iso-8859-1?q?zI976vG8X/PijwRSW8hPv2xXHlyBTu/q/A9eloIHkf90TbYW+FtkjJrO4jfl?= =?iso-8859-1?q?HrF0lBfe0nFi1hVyPxGVuyxz8PE0HZnsCmVvY0bTLGOxoX+VcyKGTH4bhmxI?= =?iso-8859-1?q?CnacQldfU0X55A0lRoZ81?= 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: fcee2de3-ad2f-401e-73a8-08dccb5023d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:07:03.8421 (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: iC4QFm0GwU4t8PFL1XrEi6WsyUZuTbSHgTpvI1by15rLzLDlRBqR7PMFwBY+RglohoAlbon4DntYZyLipnieNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0573 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, RCVD_IN_DNSWL_NONE, 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 LOCAL_LABEL_PREFIX has been changed to help the assembly compiler recognize local labels. Emitting locals has been replaced with the .lcomm directive to declare uninitialized data without defining an exact section. Functions and objects were missing declarations. Binutils was not able to distinguish static from external, or an object from a function. mingw_pe_declare_object_type has been added to have type information for relocation on AArch64, which is not the case for ix86. This fix relies on changes in binutils. aarch64: Relocation fixes and LTO https://sourceware.org/pipermail/binutils/2024-August/136481.html gcc/ChangeLog: * config/aarch64/aarch64-coff.h (LOCAL_LABEL_PREFIX): Use "." as the local label prefix. (ASM_OUTPUT_ALIGNED_LOCAL): Remove. (ASM_OUTPUT_LOCAL): New. * config/aarch64/cygming.h (ASM_DECLARE_OBJECT_NAME): New. (ASM_DECLARE_FUNCTION_NAME): New. * config/mingw/winnt.cc (mingw_pe_declare_object_type): New. * config/mingw/winnt.h (mingw_pe_declare_object_type): New. --- gcc/config/aarch64/aarch64-coff.h | 22 ++++++---------------- gcc/config/aarch64/cygming.h | 12 ++++++++++++ gcc/config/mingw/winnt.cc | 10 ++++++++++ gcc/config/mingw/winnt.h | 2 ++ 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/gcc/config/aarch64/aarch64-coff.h b/gcc/config/aarch64/aarch64-coff.h index 81fd9954f75..77c09df82e4 100644 --- a/gcc/config/aarch64/aarch64-coff.h +++ b/gcc/config/aarch64/aarch64-coff.h @@ -20,9 +20,8 @@ #ifndef GCC_AARCH64_COFF_H #define GCC_AARCH64_COFF_H -#ifndef LOCAL_LABEL_PREFIX -# define LOCAL_LABEL_PREFIX "" -#endif +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." /* Using long long breaks -ansi and -std=c90, so these will need to be made conditional for an LLP64 ABI. */ @@ -54,19 +53,10 @@ } #endif -/* Output a local common block. /bin/as can't do this, so hack a - `.space' into the bss segment. Note that this is *bad* practice, - which is guaranteed NOT to work since it doesn't define STATIC - COMMON space but merely STATIC BSS space. */ -#ifndef ASM_OUTPUT_ALIGNED_LOCAL -# define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \ - { \ - switch_to_section (bss_section); \ - ASM_OUTPUT_ALIGN (STREAM, floor_log2 (ALIGN / BITS_PER_UNIT)); \ - ASM_OUTPUT_LABEL (STREAM, NAME); \ - fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \ - } -#endif +#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ +( fputs (".lcomm ", (FILE)), \ + assemble_name ((FILE), (NAME)), \ + fprintf ((FILE), ",%u\n", (int)(ROUNDED))) #define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ fprintf (STREAM, "\t.space\t%d // skip\n", (int) (NBYTES)) diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index e4ceab82b9e..d3c6f550b68 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -213,6 +213,18 @@ still needed for compilation. */ #define SUPPORTS_ONE_ONLY 1 +#undef ASM_DECLARE_OBJECT_NAME +#define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL) \ + mingw_pe_declare_object_type (STREAM, NAME, TREE_PUBLIC (DECL)); \ + ASM_OUTPUT_LABEL ((STREAM), (NAME)) + + +#undef ASM_DECLARE_FUNCTION_NAME +#define ASM_DECLARE_FUNCTION_NAME(STR, NAME, DECL) \ + mingw_pe_declare_function_type (STR, NAME, TREE_PUBLIC (DECL)); \ + aarch64_declare_function_name (STR, NAME, DECL) + + /* Define this to be nonzero if static stack checking is supported. */ #define STACK_CHECK_STATIC_BUILTIN 1 diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 1e2ec53e841..64157b09644 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -581,6 +581,16 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl, function, and PUB is nonzero if the function is globally visible. */ +void +mingw_pe_declare_object_type (FILE *file, const char *name, int pub) +{ + fprintf (file, "\t.def\t"); + assemble_name (file, name); + fprintf (file, ";\t.scl\t%d;\t.type\t%d;\t.endef\n", + pub ? (int) C_EXT : (int) C_STAT, + (int) DT_NON << N_BTSHFT); +} + void mingw_pe_declare_function_type (FILE *file, const char *name, int pub) { diff --git a/gcc/config/mingw/winnt.h b/gcc/config/mingw/winnt.h index a21a36b7e5d..f375d071170 100644 --- a/gcc/config/mingw/winnt.h +++ b/gcc/config/mingw/winnt.h @@ -25,6 +25,8 @@ 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_declare_function_type (FILE *file, const char *name, int pub); +extern void mingw_pe_declare_object_type (FILE *file, const char *name, + int pub); extern void mingw_pe_encode_section_info (tree, rtx, int); extern void mingw_pe_file_end (void); extern void mingw_pe_maybe_record_exported_symbol (tree, const char *, int); From patchwork Mon Sep 2 13:09: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: 1979653 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=ETyYF75k; 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 4Wy8K2690gz1yXY for ; Mon, 2 Sep 2024 23:11:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B2200385DC3C for ; Mon, 2 Sep 2024 13:11:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072e.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::72e]) by sourceware.org (Postfix) with ESMTPS id E8A243858C78 for ; Mon, 2 Sep 2024 13:09:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8A243858C78 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 E8A243858C78 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::72e ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282600; cv=pass; b=pAsrLcoH7N6CN3wiz/FMst7/VxF+lErESrxzFCt2U/EnWrgOarQr+sx1DgT+GVJYGb2AemUp9IuNIaoGhhsDtLG01cSumTHN7x5IU+92lSghB98paJUTeCduVY0A97yPR1QoRATwT03P1tEhNPuZNx1H5Ct19HXriHW/iaz7wdU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282600; c=relaxed/simple; bh=43AgR01IsGhYFY7WG6Woewl060BlPlpHv/UkcwC/wtI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gkBjX9ZoqEqV7gX1ru0zVo0jR8EBiJN0kO9y1GRAewdcFeK7hy6spBlAZCVcshnOdmsC4C6g6EjODFnoaiQd9FgFVcsAWqzV2wFp1W6PAJfM9tV8Uqzuj4F5Yd6ntWMU8CRywsP1LQjwsip9KKaAjxxJJT7CBEpOeZ+AOKqD794= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OIOW85bDDAxhU3MHj3w+bBMHTknm1t2RPvdAaAYJEu6QkWWXJDTou44RnwatdmZXw8tFFvh+8+/NkiM4azwQLiC69ZekrR1A58lutgDSJaQUw5+4PgSXXZIbN3hg2phdJfOBxunPoADKhQjnVnxwdUgY+fk9sRgZXl5ZIsxdCjMU6Igl8MwV5oqO4gDk5Ya3jV5PSY2rFWxic6HexnIfN1iUvFg7ipyOlcSFPOFS+MlWV9BUupwYdsmp80PtElZ95DYnRMjY9jVBuztC7N206uctwvts/UpqFjhkkdcCk5VHxfq+fuIIW6sJWx1wWCWL6rtRMLk2ENVCthzhHPIlcA== 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=saJFRGYxTutznfCNgTYD+WWgPa+I5AlwodvBe1Ffdh0=; b=odJ+dFZXlyY/OeMbY2LVeCvkcBxf6R++XUAf0cE/2sWajkM8sf9w4sHVdFcCle/w7xIRKVBDjKAio2efTc25ptN3qGY0mXTQ1euWW8U0Kl5ro99GiXqR0HPBsicHs+dZjTMPceTuE0pbh1FCh+M5t8mnTGLC60cP5oQbuIl/57Cylt8SDiNTF0okfnOvJDVyB4xfquwxPyTYbI0AJZu9pnqVFGKPTu1w4BLFGZehhhJsdWa/YXrPuhm/RNMutXyzMz4LAjWyrolp9EkmlymfM5fLNHEujbUwn6qfvj9ZweVg/iB0HWTGiny0+NAxHhhxkXGr4lM+Hs6JNnG2TQ6KDA== 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=saJFRGYxTutznfCNgTYD+WWgPa+I5AlwodvBe1Ffdh0=; b=ETyYF75k5yZiLxyFC4pdOdE9JZTUtOrKMp5IzQXcgTVtqJMHgVlBkoL3rC+oMOITmgenQu40YASBKnAeIAus0sQlO5HHtnXs0coFiLJVCZ+nPbMtxxzG/OZisnmsQ09XtYhMdowWOhy+09or4BxxvybkQ8NSp7S+I0P1EVsIHMQ= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0573.EURPRD83.prod.outlook.com (2603:10a6:150:164::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:09:56 +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; Mon, 2 Sep 2024 13:09:56 +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 v1 6/9] aarch64: Use symbols without offset to prevent relocation issues Thread-Topic: [PATCH v1 6/9] aarch64: Use symbols without offset to prevent relocation issues Thread-Index: AQHa/Tlnr4q5inuyT0en4f9X4+zQ4g== Date: Mon, 2 Sep 2024 13:09: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-02T13:09:56.138Z; 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_|GV1PR83MB0573:EE_ x-ms-office365-filtering-correlation-id: 0ca230d8-8802-4b4f-0997-08dccb508a47 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?drJfmGaQUAbSD/bpS16nrfK9Nc?= =?iso-8859-1?q?aNrsrtNwDViCz3SfL1X+PxM5Ph8qikmtQ5jU6SQR4gQ35mITUdBRdPRAlH50?= =?iso-8859-1?q?XEB+bM4XeRIruHVNbF94tDwWLmfCIiQ13ir8gzJsKighaRRCqlr8ZtxcHgb5?= =?iso-8859-1?q?6N6pL5NxLweJSI7sQHoiv4pDQtTXUh9j7bWA6MKUxpXElT3qAhJTFEBGmCH7?= =?iso-8859-1?q?KWqjiFU7XtsoMVr4bb6tUAsdMdPLxosB89wT4UHgmQDMLUtUjDaHrWJRnUUK?= =?iso-8859-1?q?jXMGXNujqOh7mT6aw0hBJtThUyVT6fWW1gFH9rvMSMXxxvQ0JgXa6m4YnLYG?= =?iso-8859-1?q?n+42MxrzucIwEEDfNaRukF8HJCOM/t2lzcCHq93YyMyUbZnQKGTlY24huxaN?= =?iso-8859-1?q?96TJBUASGO4NW6Jh9MdTT7DCjYcvUco43LLmJF9u+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iso-8859-1?q?BDjU5brKU+faPL6I4HjLsmEEYAWxKJv5BkDa72RvU3uJr+0LUC7Y1UNIZzQk?= =?iso-8859-1?q?LgD0ROUxdzBDNKTm/tubTThivWI151Jml0p4zfLcba/g/O99MtJYE8VWMBEF?= =?iso-8859-1?q?VT98wgvpyt02xqcRsliCp4OA=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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?A4Of0LxmSw/6PgEERnrBi2b?= =?iso-8859-1?q?0pQPLxZkPH8VFG4cK5hoMoqXIzAIwZbfnajD3Enbvpsn7KQRbSBhQhdjC24x?= =?iso-8859-1?q?Kn/cpLJNy/RHnZsiugRvdVNVqV84s5O5K+fI5CmCuX9mzFXvtRigC6O8PAXq?= =?iso-8859-1?q?afJ5Ez5qjzOmntaKkwu1EKy7AVVjhqtM5PzfsYrsaALjmzv0GfJNFopMV2VT?= =?iso-8859-1?q?s+51xaA+Zdh200OeznH17QZ0Hj7SbAFvaKne592BRDcRRmoPyPP5g7JES7YB?= =?iso-8859-1?q?3jAEjCeeBraCX+K7zKM+wqUbrmH8cF0FyTE5cXXjkNnMSBMnDy2Rk7GFEekf?= =?iso-8859-1?q?RT7X+ShlFEqd8SVg+as1y7sRQC7SSIvdle0Oez49tAuBWTgKlzCdZs7EUYT7?= =?iso-8859-1?q?QJqJy01R9Don6joz/PUr8UmwmiABHsH7aWLD3bo5pLfSMNQNw1dfzp7JO9CV?= =?iso-8859-1?q?Lsry0lAn0yMZAez0HDl9krTMhqLLTsKKkza2jIir3JCgLymXKdi4l2FCIZQw?= =?iso-8859-1?q?9LnWU+aHwoFas6PniuTUJFAnxHDNskl6F9ScHHquLarwO13cmWlUHLCo6BFS?= =?iso-8859-1?q?WU/sT0ujmoLtuRSqu6GlHVArivxCS3fBkCKb5UVYt5th8+l6ZGzyYN59HGXn?= =?iso-8859-1?q?ph2qRMcZArRpgVMlbqBmjeVPCuEdch/0bny4dOk6+7gUY5l4nmGNwcGsKg+5?= =?iso-8859-1?q?DreWIPetbt7eHlaB3hOUloS+XaKExjab5RhOeY4jVIERzYyCwrScbjkcdjs/?= =?iso-8859-1?q?surEPRqLMcYG5RCNyy0QVo4obNQhG0H5iqDPt6P0I6IL4aSCCpEIH7GJj7bC?= =?iso-8859-1?q?B/+DdHwecB06YkKrVnwFVd6BfvwqeTUnSl1v95drvFngGv98axItpGmsqGG/?= =?iso-8859-1?q?O3k+nwE7p/vuqZ7vJ/xEXcaWqTp4ahqldpGSL9hEG6bvslN00kgbTVMyAsau?= =?iso-8859-1?q?cwBF/vXkmlRFJDfsUOmGLthkvoFpRUJAK62RvXYhuy3ea45BMvHBCxsKdC3+?= =?iso-8859-1?q?WdNkRkGJKDxi9zs5aWDiv1R00P2wR/AggMGIQkdic8yMaphZC+PvWXv/FYIX?= =?iso-8859-1?q?PIjYahvFgQXiDnklYf0el3WGduTFrS+tcQQ45b0Wa8bVh+fliH+H2P5dxFT2?= =?iso-8859-1?q?C539qbVeokpmIFJ89d47UDzeWZwB0B439UJN/uMUez7EhMP0Tcm+K4J/6kXu?= =?iso-8859-1?q?OhuTkqwoY2GwHoOXgaecg3zVGY1uRdmYZrXekpBL28Vy8+b1pzIAOBSn5Rgp?= =?iso-8859-1?q?hpQnafT4HdW0C8CKU/AhNJhcMu7DjTchv209lSaclQDZcc4a/rcL+6n2+xvp?= =?iso-8859-1?q?eT99FcPRbdPpInDgNkHIm/F8zFfEJLTDT86h9IZ3eWyh1N3hhCPlmOJVA7K/?= =?iso-8859-1?q?OEMwZGfsT5m+/GgJmU7vnqSNPqzv1h7YsAkkQ0kJAk5Pxf9evsBHaHIOQGRK?= =?iso-8859-1?q?XVrT9j9hGYHjkpIdBRWFW8mSHu+iy2dxFsyvQTXpLemN5sj2+ojNcTUBb8//?= =?iso-8859-1?q?8GuIPaWNx5dOMixMVdX0WItkPmKm31dqcLf/GP5POLfIaJw2WmTueo4k0Hy+?= =?iso-8859-1?q?K2hRPf5pofJMxrvQaL9e6CaZYMjnnIeQmtSD54ilhhcBz2oSx1++IOse89XK?= =?iso-8859-1?q?ZCOlcJNxtKbZ7b39KVkyu3TWy/y4T2xPVMbPLAaag2xVNGvQ6pw4Rw6igndJ?= =?iso-8859-1?q?xXEovtbx2DV1GqZD2x1a8?= 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: 0ca230d8-8802-4b4f-0997-08dccb508a47 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:09:55.7341 (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: Vq8oUWapaxlvBRtNsBl00w8QqksGW+uPFYmVNH+CloxvnBy2e8gR+/2CbrNxmjCtwV+ZX0eSolt6PcB1Uz849w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0573 X-Spam-Status: No, score=-9.8 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_STOCKGEN, RCVD_IN_DNSWL_NONE, 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 aarch64.cc has been updated to prevent emitting "symbol + offset" for SYMBOL_SMALL_ABSOLUTE for the PECOFF target. "symbol + offset" cannot be used in relocations for aarch64-w64-mingw32 due to relocation requirements. Instead, it will adjust the address by an offset with the "add" instruction. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_load_symref_and_add_offset): New. (aarch64_expand_mov_immediate): Use aarch64_load_symref_and_add_offset. --- gcc/config/aarch64/aarch64.cc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 7865484860b..1d88814f28d 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -4887,6 +4887,17 @@ aarch64_split_add_offset (scalar_int_mode mode, rtx dest, rtx src, temp1, temp2, 0, false); } +static void +aarch64_load_symref_and_add_offset (scalar_int_mode mode, rtx dest, rtx src, + poly_int64 offset) +{ + gcc_assert (can_create_pseudo_p ()); + src = aarch64_force_temporary (mode, dest, src); + aarch64_add_offset (mode, dest, src, offset, + NULL_RTX, NULL_RTX, 0, false); +} + + /* Add DELTA to the stack pointer, marking the instructions frame-related. TEMP1 is available as a temporary if nonnull. FORCE_ISA_MODE is as for aarch64_add_offset. EMIT_MOVE_IMM is false if TEMP1 already @@ -6054,10 +6065,8 @@ aarch64_expand_mov_immediate (rtx dest, rtx imm) case SYMBOL_TINY_TLSIE: if (const_offset != 0) { - gcc_assert(can_create_pseudo_p ()); - base = aarch64_force_temporary (int_mode, dest, base); - aarch64_add_offset (int_mode, dest, base, const_offset, - NULL_RTX, NULL_RTX, 0, false); + aarch64_load_symref_and_add_offset (int_mode, dest, base, + const_offset); return; } /* FALLTHRU */ @@ -6068,6 +6077,13 @@ aarch64_expand_mov_immediate (rtx dest, rtx imm) case SYMBOL_TLSLE24: case SYMBOL_TLSLE32: case SYMBOL_TLSLE48: + if (TARGET_PECOFF && const_offset != 0) + { + aarch64_load_symref_and_add_offset (int_mode, dest, base, + const_offset); + return; + } + aarch64_load_symref_appropriately (dest, imm, sty); return; From patchwork Mon Sep 2 13:11:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979654 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=Ddns0Bjp; 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 4Wy8L70ZpSz1yXY for ; Mon, 2 Sep 2024 23:12:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EAE6B3858288 for ; Mon, 2 Sep 2024 13:12:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20729.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::729]) by sourceware.org (Postfix) with ESMTPS id 966B8385C6C1 for ; Mon, 2 Sep 2024 13:11:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 966B8385C6C1 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 966B8385C6C1 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::729 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282670; cv=pass; b=HUJ20HIMZFVQN/Y6Br1C51DAmhKquTx1NmCsh58S5j0zfU6xSgzQjUaU8eRKr8tDVItGF+k2wJqRwu6gApt5LPkKaK/Ic/c5T5zd94L2rUstfDr1jCGwTCY1wKg97CAKjSw9lb2fV9dFDOWsS2KaeUdUsX2MTJJILqnw45wTqoM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282670; c=relaxed/simple; bh=FLo1X8+7pHZ5VMBnENqGykFs92GMhBjpFoo3RFCRfPs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=t0YOXLi+/27JfiDJmUYEfWYP1AylSU+UTMibANu+GSFL6GUCKcMoGFwwGmKKNhlzgM1CqfqoUlihbX4zQR4Yn9mcc9nWXF9ai933YviTC4d6gguSsIOjR9czpaTE5XEPgKWFDZcCxSD0ujYXFWfVskgf7acdVrLFPsRYp6f0m2I= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O2BB3jzbFqp6snCr1ViY3tjTfhqqRvalSIIZ/3Ezoe0g+tKHhGDchEy/2JNPcxiM+T/QUFyNHy4u37MBDqkRM4BX8FYrc+K8fj6Dn5wonqyzNxy/mYYuv/iE2tgwv9auLEfXPwyAe4nWbjDfZGrwPjIJiNBrYFvMaGlt3nh3ffcONoL+V0+1aXotiXuJ0/1tWhCJZmtFx1/SsIb4y6Fi/xInyRkp+qp6ufB67hW1ybX6qohFS7olB2Hs3kQRvmCbvMVXj211FV0a7Eg2Rs8L4Nxd/+60647juXzU4xPCBuvdOrCVtDCd76zWDZv6Cjm1j9+xhWj2AUNlbWy+0rLU8g== 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=zHe38NUXCqKDjQVdRyRlUMQ3EWG8yDmbLe8M5hco9ns=; b=tjSLpNt7+1hZgQh0AMgUKgBqK0347t6ikr6tBpRQx7o9q6juOkgRFJVLi9Gz8vYdpGwpB6lKDEdNokq1OFdHkswiPXdiGLAuWdYdGXmHsWrTntmrvcp6g3hQU+zPAX6+reCm4qlwIduoHN57UCTDgZQUg6eMpU1aQE/CxZezxsKzs5i77Iek3YArv449lbhWJtWILd7WzU8S1CXsLklDMqP7XdyYBVBbkt9pgBu8lkBpCojk2opUnPUS4KTV4hHm1jSClWOzvpDR+ovH5F5kcANltM+3JaVh48Bq/izz7z8am35OURTPua28LS790kWuMjHFQXUMX+efCQOUW0c1LQ== 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=zHe38NUXCqKDjQVdRyRlUMQ3EWG8yDmbLe8M5hco9ns=; b=Ddns0BjpEQKOZObA+80ERuoa39aHNJaFaccpbAc1ssNiH1HruV7IQ3rHCS2JwB4X7Rtujr2kHpsGRN4GnQuuZVz7WnUlFtvyksa9sIlf+z1aHnazVwBWb0qbEECivOzUGT7hyt+jf1SvvTFvRNZrOsCRnsOQyxbikHGYT6z7nV4= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0573.EURPRD83.prod.outlook.com (2603:10a6:150:164::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:11:01 +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; Mon, 2 Sep 2024 13:11:01 +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 v1 7/9] aarch64: Disable the anchors Thread-Topic: [PATCH v1 7/9] aarch64: Disable the anchors Thread-Index: AQHa/TmOez946/rgRUmMDTtJf77k7Q== Date: Mon, 2 Sep 2024 13:11:01 +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-02T13:11:01.598Z; 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_|GV1PR83MB0573:EE_ x-ms-office365-filtering-correlation-id: 3b04a70b-60bb-4b3f-1cfc-08dccb50b13f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?FJXvVW3RNtohp7wOEgrGlsw2n/?= =?iso-8859-1?q?NjpyFKjbERY/0ZJ53jBTt0RwWAEQPSK992O454s5EVeihStbutSqJsoKzSjB?= =?iso-8859-1?q?6sqFnK8vn80f1uG2z0oj5jRBhUHs8qoMpw3HJEXcX3U+FuJcmDCad5vlGqAR?= =?iso-8859-1?q?7AFDsynotMtvCghlfrSG78Vc8qN+2NdZRCpMJn/GLWkiVaHrdjdZVmAKfj6z?= =?iso-8859-1?q?lYfAPlA0pej82qMAkCxHRGqiA9BwBz9Ha9n2wXAs9Ax6vDXqoD6pPJD30JAo?= =?iso-8859-1?q?a2WE4NJWgkU5wHB8MbvXmlp3SBrlGwlysuGAoD5hyKcco8eUCY9EyUY8Vw4J?= =?iso-8859-1?q?LVANOeGfzLPYpgZCPGgpwb+qhsSJdOKj49fu9gZiK34lL0nAqg3yre7Id+Yv?= =?iso-8859-1?q?/0T9VZMtXrnYeUwSnYB4QoOgMQEo0wiyELnIYiPz4bRqSbtFAKvjtCo8KKh+?= =?iso-8859-1?q?urLiZtMIGq25kXKB9Aq6NdC5u4CB6XxyPq4REBWoC0LIjwZzxkDycXo+FNpU?= =?iso-8859-1?q?F7L2MYRH2E92dVCTV8mvAb9zs7lLTwTk76HDY8Ns9WD7iF/vrwtBZcw1B3C9?= =?iso-8859-1?q?6s+mqrLpd1VNKlbes1/vRYVsaIQqgG6Ez+svbzNtGZ6hoCkep6QxlsWPz9WO?= =?iso-8859-1?q?0NflCglDgXVv3PcFj6BowBj6JxQtG/sMRUSYuW4voch0RFl8nrQ2B2NjxZrA?= =?iso-8859-1?q?dGYi1mWFoiAm/N0GE97y2Oj8dl/G5MRCcrletWx5OAH5FEnS8PHtPdIIpnem?= =?iso-8859-1?q?TLwGizv/LWO2sl5o9gkvVtO1RY9QLulgz/WNtsrb/3lYaCCe+txu75iuZCKf?= =?iso-8859-1?q?WbzTjfnioHXjWG2ifkYfnmjqP+M9wavOxoePJQXDYpl4tPSAJovwLiqfPolc?= =?iso-8859-1?q?KcKhbX+zigElWmgruF5qE/SO5agQOnYHYmRHHSM1uWX04/1M6qCb+rz70yh+?= =?iso-8859-1?q?Rhrk3a+BzJYcuJIpw0SOFKhDzPKNPpF61Is6QTGkNbdd2UR1tAt80wZF7TsQ?= =?iso-8859-1?q?J/hqKannF7T0s+mu+UEZmiTXLxx889z5Puykk1YopkI2rnd/inLGEMbXBteL?= =?iso-8859-1?q?2Ho85QkEJcZt9j9cEbz5DYEKtEU30bEWtIQFHNKO61CzfD1zpFHAQM6VIdut?= =?iso-8859-1?q?lK/g3gVGR7cbZx+JoI0gODw74bkuwADgmXtbljnM/+e1dCx8oyWAzJDv7GSP?= =?iso-8859-1?q?nDL2n1RY+lg1AGZHc/CIgo5LaqJpnQOPtGGtmS+VcGdv/e9F8O/Yq7BeE2mQ?= =?iso-8859-1?q?G2YUyhBIMG+mfZG/2u6OpTdvO1e5kV6N0zKqGVEMoq7R8UhIb+43mTlMoDEN?= =?iso-8859-1?q?OeMi+QjkHiRLU5X5jmokzD3MwPyk7mcvZ/iIQbt7Q+RRB7w+nlEv0A8CvIGj?= =?iso-8859-1?q?nedtmaZocVhcnJMp+l+snBKGpTHZFNAhPXTbQ24Bj2MC0CRGforAbu/pPPeg?= =?iso-8859-1?q?zc8oFQubBQQn0I2vF+mUhNoA=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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?foop2/UQCF4kK6c/njelVaB?= =?iso-8859-1?q?Hz/KBGfb1IfRV4z5RzkguyIYTHWpFhVOA+dD8u5s/3AtbyFaPEKQIbF7lhPH?= =?iso-8859-1?q?H4axreIROGe1fC84p5HEnGaOZGZGCfUFDGz9b65rKqyfKCk9WvDSZKzlAdwJ?= =?iso-8859-1?q?gknfjxt/Jh9KMgu6ZGmLceZ9RcGq2ouYllS7ZGE4U8qbAxs1vsQgThk2FmZ+?= =?iso-8859-1?q?opY8DYxejQPIOXovclIwLgrC1VPm4MjRdlV3MGn/tpslvknSJwO24imQSvB4?= =?iso-8859-1?q?Zg0VDTKqPReKFcHZ4GO2OtpRD+6HYcmdLBMIzC8TRcqK9LBJHJ+bjsVUw+5z?= =?iso-8859-1?q?4q+ZYZbwJz+DiqEbjLuBY2Ov5tfUgd7a2p3h8P/SZGfvzDQtXC+sie3o8VQF?= =?iso-8859-1?q?Pc5gIhXhmHnlFR3Au3PILbrlincC4SFM6yUygUa0A84WBB5NnYxsXkJb/VNC?= =?iso-8859-1?q?BJjRCUyb5Wq+r5WrXV2V2qDDMLbaX8FflUMy61wxwAF655WRsT5ygw3jkrUC?= =?iso-8859-1?q?/iWae2fOJ7P50sUbq/kEhVukzJZf7fz6q196XWbOqu0FoEOisUPg5ouaM5eG?= =?iso-8859-1?q?xG792uBzyKMnJXZ6Kti3aOyoVSnoCBexK+uNB+nxbTPxbh1yfzBqDhJBbZ5W?= =?iso-8859-1?q?K2ViZ3h6YwZZ4fWQQcSJNxWXaAT8Ukmo6RDKqb2czntrxMsxEQKfKWRBtmUT?= =?iso-8859-1?q?nIGEHHL40ztw3m+K+suH3Azc6KEXYr1Tfw9YT43GOgr0ilX4C+4So/0qsjHI?= =?iso-8859-1?q?T2Akk8WSTkuhvf6Lp3Zd0DPTi/oaDj2c23MFgzAricx4DhpKLVyoCiP/M1Zf?= =?iso-8859-1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28WY?= 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: 3b04a70b-60bb-4b3f-1cfc-08dccb50b13f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:11:01.1072 (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: mvX7xyIapvtjpyPvWPNSkZnaDy1ViOZ6eh0ya6Yi4r5yhCAf5gtXLPDdTBk6KCYlWAUm+M094RjBEecsfaQC4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0573 X-Spam-Status: No, score=-10.6 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, RCVD_IN_DNSWL_NONE, 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 anchors have been disabled as they use symbol + offset, which is not applicable for COFF AArch64. gcc/ChangeLog: * config/aarch64/aarch64.cc (TARGET_MIN_ANCHOR_OFFSET): Keep default TARGET_MAX_ANCHOR_OFFSET for PECOFF target. (TARGET_MAX_ANCHOR_OFFSET): Likewise. --- gcc/config/aarch64/aarch64.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 1d88814f28d..eea9ac02df0 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -30961,11 +30961,13 @@ aarch64_libgcc_floating_mode_supported_p #undef TARGET_MIN_ANCHOR_OFFSET #define TARGET_MIN_ANCHOR_OFFSET -256 +#if !TARGET_PECOFF /* Limit the maximum anchor offset to 4k-1, since that's the limit for a byte offset; we can do much more for larger data types, but have no way to determine the size of the access. We assume accesses are aligned. */ #undef TARGET_MAX_ANCHOR_OFFSET #define TARGET_MAX_ANCHOR_OFFSET 4095 +#endif #undef TARGET_VECTORIZE_PREFERRED_DIV_AS_SHIFTS_OVER_MULT #define TARGET_VECTORIZE_PREFERRED_DIV_AS_SHIFTS_OVER_MULT \ From patchwork Mon Sep 2 13:12:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979655 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=UWwj9trM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wy8MQ3lt2z1yXY for ; Mon, 2 Sep 2024 23:13:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB6D0385B50B for ; Mon, 2 Sep 2024 13:13:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20724.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::724]) by sourceware.org (Postfix) with ESMTPS id EB3EB3858D37 for ; Mon, 2 Sep 2024 13:12:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB3EB3858D37 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 EB3EB3858D37 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::724 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282778; cv=pass; b=JIQls+LVoLgWHMqX3ZOU1b5plo1iz+RPisK+biL/zla62lODQ3eAE2ZVtpMQZfNF9RrxwOoHDKTdM09Dqrf6kyZoQAp4iy5kUi5mvglliSjFzvaa5kB9RIR3mLyjGuR/tbXnZufrQTrKcZ9DK1TboegpCgL381g73+S9Xhib6XA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282778; c=relaxed/simple; bh=sVkDt032p6LqcBmySKQV5YmoqoTT8/UABEV+JpHNWus=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=M7XDFuMCkteq9DDxX5ssv+I7Gn26/xRni+ELRV/k5gKWyzKCxtIwpvy7nR4vJDFbzzFb9ISlKz9EQBXKHLLtirmGnYtWmTetuYxPk6JCjmNe7B/didHua+CGEU9352fFGhxfXOXeXxvFy/+6V4uuvuf05IfJTKybJ0skp+IKBGg= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Aae6ivPpNdVLJ1sK/tHdDFld7hH5RcjTmrKhazOQPyA6t7/32Dh9udv8NlO2j/+Gp0g7ITRGK0H8lpuLikQeoqAIpNs1bOCloAVwziazWVET6D7ky6mYFnbyLqvNScpq0Tb7Pje1PmX9wjlDswSbyr++rrD5PXVJKJcei+JMQtA8lxdyQ/sBnuoBNgwDm9+6xgtdMkr3rNRnrioD/W2uQiNwwdICQTzcDpmHAs8l/b8wI37S7exWlOuA4O/pv4P4bJcIL1qE8xCxMTMRjJt7TwAyEFCNKneTv2jao51ajRYat8pWxChSlwNtik3mTvkM8Kz+y+L1JDyb04ek3TY/sg== 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=ljMBqWnbEGli77m1PS+aQtit64U0p/3koZwdaJASXjM=; b=tQJThNC+hhiKr6W8bVtWUv8CpqS/0wnoXTqn48eWptmq6BQU7CQYGJ4gpD6jrlxn1mCGcg4gIszUx7g+zddUbbIwEWm7uOL0kg7Ehemy8rTOo7RVudtNkZ6IA676F88Jk5LyDr4Zi8yJPdgEJ/S2zoT2HyQGsBCDbFhaGWX77pbWqHz51Dqj0OPQS28kv70I9/0nTy59X8LvMe3TKJUCUUn+wpDVJSC4nlAEP02459LvD59kPwQTb0qn+5ZmFYI12hcKXfjc5kPZg9jtMPMrxAvQrTKBy6hV0lIHegjd1SxzuGo4VggeaiId7QJjLp5VCNvldnJec5Z5rdfM4EVDbg== 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=ljMBqWnbEGli77m1PS+aQtit64U0p/3koZwdaJASXjM=; b=UWwj9trMTQOcwb5OFbdhpXCDOizvkqWjLKEpgdZGT3wmdhSG2WSmN+IWOd33QrMd2CxPnnwhLWi7lJRFSQmtoxivfihM1Yw/QNBk2ftBhjBzixs9+utjhnjyVmwh8JOWxxIxahVJOCW7KW6P9aRuI578AnJs9KL2UEraDKoWBLI= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0573.EURPRD83.prod.outlook.com (2603:10a6:150:164::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:12:53 +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; Mon, 2 Sep 2024 13:12:46 +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 v1 8/9] Add LTO support Thread-Topic: [PATCH v1 8/9] Add LTO support Thread-Index: AQHa/TnNJFeF1yqof0euK0hrKbsBIw== Date: Mon, 2 Sep 2024 13:12:46 +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-02T13:12:42.547Z; 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_|GV1PR83MB0573:EE_ x-ms-office365-filtering-correlation-id: 4d14e7d9-d99f-4859-e025-08dccb50efe8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?zqv5tSXwfu1Vak9sLCYwEK7eSz?= =?iso-8859-1?q?xKqeJU9I4oVYr+yf0JN87JDIOQSKJp7k/VfdV5asNV32i7sxfiY1TKmAVl4f?= =?iso-8859-1?q?OH6FMk2jKBQcmJi3xYF3ITfOHJZa7X0MVTmu9G7B8iKdwcFiGXkKs93jKRl0?= =?iso-8859-1?q?oInyEb9kH/RTTkTGw+GFI6Jh3ULcH/x49/VQZs7wei2LoVjKLApAZ9VUHOzV?= =?iso-8859-1?q?ClrkY+kJ4SQ+xybMf1/CzgkqXBAaWeF3/rln2IltvUZy2MZ3mxLHGUCdXl1L?= =?iso-8859-1?q?JjthgS0VM3K/fpIWvblf6wQr+NqUPb3eVXhgQOS7c8kElncCOdavkWxSfPNB?= =?iso-8859-1?q?LkncylEDIC9ybgi5Q4vX2pzqM/C9oLeLryHtj6cpkYEuTQsk2LoYWRvCTS/l?= =?iso-8859-1?q?UJhqrVRiG7khbvvuWTxkKncUTgt7APylTqlcM3tsOb3q1mgAJAnwcQFJG9IR?= =?iso-8859-1?q?BMzjiWlScDIUMmgl1ELxQmREcTl87HppE0l2NaKTjSQzKLeM1XH4xHNVDpwA?= =?iso-8859-1?q?JhjiavIh/lbX++ZcUPLpseNQLt0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= =?iso-8859-1?q?UX0sb6A6SqZt0OnVcRUyvJrg=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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?AQlD0YcOC92RNK9WAihEf9T?= =?iso-8859-1?q?kguBYcQvrlcyjlI9jX/Dgw1kIaNZDB/MqVm6FKxNz1ZPed3YZaoRbK9jJmkd?= =?iso-8859-1?q?KHyijCshz/M3oqLv3YGskvtfnTPSgX7qNvZsLC7iv6v3P7bvm/KP/Qe+p5iE?= =?iso-8859-1?q?wynXIIlQ/viMq0BVG4q9M7TF0XO1ZVmZJU6WKTwFna5zmTh+PikJXpQW/QIV?= =?iso-8859-1?q?bQZt/e6oKct2nKee31Dlq/RkdkM4uge7ZU9a+6ebq0aWpK7DkjgXTf6MDxAq?= =?iso-8859-1?q?WFhOK+ZehNenWp2W2zch+gGkGuWc2QeXUq7jFbkfgtX6QF5qbIdo+IAficUS?= =?iso-8859-1?q?GHtf0oKuVhFVGFu8hOQCGcNhRe6lmsRHlIUrnx2tt1BRSv3zNvCUrp6Gyodr?= =?iso-8859-1?q?fKfqdsD0BvGJpTXzV4cU+A6UdJWMYPVPjggUsDFWg1n1rIf61m91T3UUC1j4?= =?iso-8859-1?q?DItqWtDps2RPubrZ3Dvy0uWv2rn49Dli4XKvvVpEEaDZd3AlUrIC3zUHZKOl?= =?iso-8859-1?q?Lkbj7+FCvCtFmS6MbPZWKTpUA25zql2WkaUQRvcRLBZwgTC+bBVh1Wn0ElQG?= =?iso-8859-1?q?miy5bG4n115jLunA1EOuBT7eyZ+Z1SatQTdW2SKrE+cm8IbOSD8s0chVZ9+x?= =?iso-8859-1?q?0qOyW2Mwd3080Blb5bDcZPho9RlTak66TrMlyE3+5Hck+B09xVhZYGIWcPoX?= =?iso-8859-1?q?grC6bFC+5nLvexMBuKadlwhT47xsxUGWmhZtYdMFhU9o9qA0PWRw6uY/jQdb?= =?iso-8859-1?q?FcYs1UD8L9cwDxrJOumtxbHsvh8fgmH+sw+ZOXjHAPuHOOUvC4XM2gyZtF6e?= =?iso-8859-1?q?g5RAcKHbAZecenDXSr+MM366FsySa02EL/tC92N5QSN42g+4qcaf39JgkKcD?= =?iso-8859-1?q?ka8h7aNqhE+x6HzfcIPjtDuVXmTTGpHaxtYgaso/DCOXLtyvEwnRmrplrCoZ?= =?iso-8859-1?q?c3GRIXAVQ8FeKn0M+C0499cDQNCKS78+dsGWW3DyHf5bOvYmrnAjSdlzRY5f?= =?iso-8859-1?q?yZa0IWTG4Idd7BtgRdHs/UdNNNSdUo91/Nt5Pp7f2EJo3NhPlSGIH/VE37/R?= =?iso-8859-1?q?P+onlf1lcbMhTT0xJXHHAJnFm3HSN+8FMmcew8QbQw9IbCekEr1FLRNUJtMe?= =?iso-8859-1?q?4OkqH5a3GiTCs507x15Ov0NDRJTj3bweQoFgcHvxe6azNNMV+RnGp1RnG/c+?= =?iso-8859-1?q?wNx3RdruJ8yAK7YX2YRiSuvQxnsH11XoRg9SM1TigCfV9LXBX8PuMjOre9hL?= =?iso-8859-1?q?EegIJ3M/KzVnheaBLqymMHwBpK/i5iqDVnXfVAUXG5ctMfEhXveOYXXtWnFU?= =?iso-8859-1?q?zF0c/ScrarXYiESzImQot6MpzwrixTTd/4byB6Z6p/IfA6HhLrhs4dFC6Oab?= =?iso-8859-1?q?bU82hL5l3k7k9rIo2C6vufmWzjubKqjTlbxnOnln1DOqILUVjxgZ8yMniMfz?= =?iso-8859-1?q?Afpz3MlljTfTmHpvpCmWf034YSL41MDVAi0kwHGtmhBQW5PS+/Dmi54VrHGP?= =?iso-8859-1?q?ahpdEh7OoCll1/9minR5A3+1dlyisbICSAHEKG7qLGFZUaKW9VwAIcivSYJb?= =?iso-8859-1?q?SAyu2Cc6RhDZQJ4LKkl47g9RHFv6GA4J3U49/ef1uIi3oosj1QjYsjAI3Y9p?= =?iso-8859-1?q?Y9EH2++45RJx8AxRXTCIE3m3fivC+xkD3rMvoKztWzh6YQUyX1j4M4QTAIeu?= =?iso-8859-1?q?yEN0Y+Xd0o6FMDZvOAris?= 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: 4d14e7d9-d99f-4859-e025-08dccb50efe8 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:12:46.2015 (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: Hhw86Add20N4KfnVuWXVZijS4nZwBmJE8lka8NYo0JVXJW30IKlEWBvJxwXyCfguOTP6oL91Npm9PhK8jKUb5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0573 X-Spam-Status: No, score=-10.6 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, RCVD_IN_DNSWL_NONE, 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 d3c6f550b68..474ee1eb13f 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -241,4 +241,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 1633017eff6..49c3275f564 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 64157b09644..d917552cdb7 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -841,14 +841,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 f375d071170..22b936ad743 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_function_type (FILE *file, const char *name, int pub); extern void mingw_pe_declare_object_type (FILE *file, const char *name, 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. */ From patchwork Mon Sep 2 13:14:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979657 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=IlPOLoA7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wy8Pb08KCz1ygC for ; Mon, 2 Sep 2024 23:15:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E926D385840A for ; Mon, 2 Sep 2024 13:15:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20709.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::709]) by sourceware.org (Postfix) with ESMTPS id 6E95B3858D37 for ; Mon, 2 Sep 2024 13:14:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E95B3858D37 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 6E95B3858D37 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::709 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282894; cv=pass; b=qAvoYf2ug6pP5P2EDePnxJhKUzPTAiQgUDRK6iGD95o6QiaAzB1GUnvy0TOJtWOETSImox/G9+gwPujoiGuZzzqzNLMMUsYhgwgfckhuup4PUOa1dIVKRo5kZEMgLcCPhH9VIbYAnjh1X4jiJuojrhEQiACnDu5+kSuN9Xj0DaM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282894; c=relaxed/simple; bh=nFgFOranv47TrHhTHzfZChV1jenl+n4crnoCKnBeEq8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=poVwGNk83fXARNSFHwQh/3/Vs9MSaaev1kY6Zf9BBcO7WK9j88siCZaFZgjRfne/v74qnq7/IvOF7zx+0Sp/IxxRK9C0G+d/+Rpq8FOjdvJvO34YUsRle99WmL76EIdD+AI6+fPO8OMKqSq+BDZKTjMCFNfzC1qOsud+rpGV3p8= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t6a/0dHyZnVUEnLRSQAf5LZbcEnhE+AfUbqD63H57iDGWiYuc8+4DWpFEhfcmYmdv7dybc2z26k9esCSfW6/k2J8YSgDkJIYfKrMdaiZKXT+4ca+/1e+YEm41j/iUVy5yVp1wOKTkTvxV5Jv4MraICV89f34KnsmeDaxwkWbuNNOJwtKi06sM3HSjiZ2H8mCPua76WSpaFCTs5pmMs+IcEbeLdveKc0OsOdrcw/ztzpXDjWf1LyhI4czNGCDZqjkLwctOBmEYrKUwk18H5qJPHmKFRNdKH+e66f4+ZqzORpx/GtRn1oTBQ1CdHeEbn+iDwzrqrd1HpAUDB9cCpYPoQ== 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=38s0V0P/YQtt1Ug27DTZ/gmErIMCtzaK36NvZPR9wJ8=; b=sO2MO6xQXZ+J5yhFM7bHrKBWzs/JZCwbrOVXyCNqRo0Epsp1bfkZOkCC3kar3SS5wsWbHPWAhQfaPZKrognFKLto8OBX+xEy6SWNNLUTSey5o6zsX7RuhDXejeVM4y2/0/pxLgp4r+977J1/ItcoCN5T42GXYudxIgUx7HoXait4eRTqhDfpKdOmWE5RbnrTpPtkyLdtg127gcuuKq0JJ0hnxTcR+TTJl2rcfCCjpUIlu6B9L6I9zlG3Q2KpiuP85SJVuHf+KMuUv+XM+z81aCdPBBnCf38tCfDphyoMYWyQqs+BaJAZrPaRJ8ryCpy5WDQoHsN4HBUGbTLDq+Q9zQ== 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=38s0V0P/YQtt1Ug27DTZ/gmErIMCtzaK36NvZPR9wJ8=; b=IlPOLoA7mILqmRvSU7JV1JJLDIDMeYv2/oMxqj2FrxiittrDH8NoZr6fxHVLaYH3LgLoRkasthviWP2TAQBQiiHUU0wW7qdCstuZQYmzh0d78XlLh4rQT06KfYTWe9LOjhxidrpGq5yC17LY51VBtgNsv6hsvcqc24R2//zACew= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0573.EURPRD83.prod.outlook.com (2603:10a6:150:164::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:14:49 +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; Mon, 2 Sep 2024 13:14:49 +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 v1 9/9] aarch64: Handle alignment when it is bigger than BIGGEST_ALIGNMENT Thread-Topic: [PATCH v1 9/9] aarch64: Handle alignment when it is bigger than BIGGEST_ALIGNMENT Thread-Index: AQHa/ToWr8UFK9T4MEuEFPvnbPK2mQ== Date: Mon, 2 Sep 2024 13:14:48 +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-02T13:14:49.500Z; 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_|GV1PR83MB0573:EE_ x-ms-office365-filtering-correlation-id: c3c44de1-6810-4018-412f-08dccb51391b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?YQHgZ8ODPvg4zoOLjoKFWeV8an?= =?iso-8859-1?q?WcRAHmYaxuaiaQBWdDOWu6pyxTbmUCY6d3NWE6AJzI/WmnITwu5uj7pHi5FH?= =?iso-8859-1?q?iynDCVCkABzfux28OkaN9iPATE6jJLTlZ091GXZKPi0PHW1V0z6JDaT9/T8l?= =?iso-8859-1?q?Bhe/+KVL+YCgWbUzGZnQhhjflSFrePCmmN/o1JTawftHH3E1UlfhHJUc8mOl?= =?iso-8859-1?q?w/SI0XxqPzxk2tyvSFhRWlGuNhfS5CHPa+UsRhRbZC74UdxJfQLWEvMnLXeI?= =?iso-8859-1?q?F7eT49/JHGeJ+bIyk2MCMXA7Y9K0HBsaunOctLJaw6F5oHx+9m+lakF5hzod?= =?iso-8859-1?q?BWMO4KwRJHCU/Gs22mHYCmnreLuH4QV334d8k2S2USEJ8sVQQ08z6e03xmkA?= =?iso-8859-1?q?H9h6bz43aPteH8DlY38sS9NeqXNyXwdSGH8l6x6wHrK4hDnQM1l0QDxgzu1k?= =?iso-8859-1?q?XL/VObrYrD4Gg9xi+MbJDxUw/hvGvJsoDmXCpjh4dN/TblSKKTBVa5kJehes?= =?iso-8859-1?q?rfToIrt6U7+vOLWk3ktWgHAZxJFZwLs++GCCyT47yuXB49Sv2NkHRpvKjbv4?= =?iso-8859-1?q?n3r/TPOJKaGDU1Z0ufp9yMhmcIOJfZTKhWiO78ODM8bxxaeugDhSFJfC7Use?= =?iso-8859-1?q?1ZzB60mhbv/1Y99NO1QxyTYGC01GPCngqRJwPSH4UkWHqYKGhPjHXpO01HHS?= =?iso-8859-1?q?ShaN+F43DA5rhGHuYGd8IgKHJz8r1/j6xHXjZtIOS7I7hgb+XnqEPEw23HOa?= =?iso-8859-1?q?evCImbg5hHbcA8ZsqPKzi28x+dIoWkjhK5oz08YURnwbphYQlHxEeyM0YXZQ?= =?iso-8859-1?q?WqvlHVZ+uGgofDC45ijjnSlEIXQKzeLzMK1MKGoZtEx2UoIuwdSyrO55+4J8?= =?iso-8859-1?q?BBjMVRu9BLddmsyap2VY5STnozkMqrWomAYWwUnQk/eQMP6P2cuaQFN42lZ1?= =?iso-8859-1?q?GM/yEbUoH43faXbF3Q1QbYDNUb9C4qPUUA8AotpVIhYqv4fF4UNiFZi8ZVwC?= =?iso-8859-1?q?XqptmWukMX7MRDvwSjTWCYhRbgJN8rb5SW29eP3LgeUAzWB7T1a6nMG2qDas?= =?iso-8859-1?q?NH8pYsKxvjR1aKGr86IwiMp4vFlCCCEZrRDFHrsMALEas8hj4gF+T6TgpLNa?= =?iso-8859-1?q?LDtqVcbXQbFHzooDVkvY/XABA8G36+tOjH4RAnkpIgH/6I5lOYMWoQZfLCCu?= =?iso-8859-1?q?PjpMrzVDjm5ot8VI8uyb8+mxWzf4taUScmNIf3g6tLoHVrrhW0JPWynlTM2j?= =?iso-8859-1?q?dENCWHcM5ffuBVArcM/rASD+pITGamw0eySC/oqBZNVG9MyRZr7nTtP7k/QH?= =?iso-8859-1?q?/yRtNihtNeXFRn4j5DoWNwAX0xlAiA9Njm+WO8RVk5pNZieJwi18a3mr4sm2?= =?iso-8859-1?q?56x+UvyPXAoc1izJqCLHNH24Ic4mV0p2WNxbXIPLg9BRNyW08Aae0Ke8//uI?= =?iso-8859-1?q?Q4muoWl5F0eW+2ML+JljZHLg=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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?5NQmJtLP4ZE1WgxIC3r17p4?= =?iso-8859-1?q?j3kcHUSmrNLhxmnXBWEfUaIdNm1pWfXc9b4DNCfRi7K3tDNMzuYKjrPzq7ez?= =?iso-8859-1?q?74wGNw8ZKqVSZkO9w9Dl5o2DslqmTCWFwUA7yTV4aSoK03a9iVwaoxVymqHS?= =?iso-8859-1?q?VqFzEwVWuslmKNxZ5K8HodcZL3d4BS8Bh8M5EFPjwNQWOmYYL0NwDhbldghW?= =?iso-8859-1?q?DK+2xNhyWcccOlcTHeTbpIl8xNio3+AHe0gNKdOFhFxzSvWQk0zgR9Zm6zf+?= =?iso-8859-1?q?629HT23+2dyqtU4ETOX26TM7vV45UIXDZ61gv5EseNcdIld2f0982i6OSb/W?= =?iso-8859-1?q?uyWMMg+bqgugnrodPtCtJFG7E63dYrpUOU28f6XQnLYt/ONLz4lARhNSjzA/?= =?iso-8859-1?q?tHqvZ1/1JPQMctmOfXnQQQqRBtU7f0+/6whnGCE0zJDkPF5zN8IZLT1EzBAM?= =?iso-8859-1?q?Bx7bhKEnWoZ/MZ+cPyuVIym00Au7PErWPCLYMvAASvGrVv1tg/ti3qc4Dew7?= =?iso-8859-1?q?rswGsYS8OVVgY2lmHmkzDpA6QKcezDW4Z6gCDla3159yFOe3oiFQUd30N3T6?= =?iso-8859-1?q?OPZINpz4WKUt4Z2MszZQeI/dIs0/MMmhUfuFaxGUKbFPMEuOyXHfHsVAYtt+?= =?iso-8859-1?q?UuOk6fXO3CcCbtkH48esamTRD+pyIq/a2PgNPQp28UHnRX+RKT1O55D3FC3W?= =?iso-8859-1?q?9b7cF2bhBN0AP3c6/Z6vnRAus27Y0aNgw7pZnRgcgqPnADsz24B2PSv/Ha6Z?= =?iso-8859-1?q?Mod/S4bRKEefdfHdHSudKxA/NXLr0UPOAIMl2gAyTYhBCcjvHNuJ/CBxE8vm?= =?iso-8859-1?q?X08pbDxeXhHYiwrbozKtIjgetZx0tARERTh45XT0gPLbC14LdTqoXXOr8Qp9?= =?iso-8859-1?q?CG7S7kug/wmCZM+KpT14mu6P1fcdrA4GllrZBFHkW2pVGH2cfQcMwl/oxhcx?= =?iso-8859-1?q?9H4nl6w2lQMtDZsjbzZ4WNT+6mXiwTGeiE6Z7lhOeap96gPXILFn6NtFcstJ?= =?iso-8859-1?q?8wla3tLA6PJjD8CILsCjkRJ/jLYD7KIVcjyapQjOSGdVlVvlsAMPPwMTMLD0?= =?iso-8859-1?q?7ssI2TKiEMpPtIKUdZwc0z0R66iiHfxMb674eFIhYD527+rX5NRjPGQtYnx/?= =?iso-8859-1?q?/rRa/PhhQFs3/UjiiJiMCBfA6/cBXc0Ii7IEPZjCl9W5RC6jTxc07F40cp7V?= =?iso-8859-1?q?otMT11oY2xqIGds6tkEYpmwYByQHjaVKBEGyoWsOTYTYQig1JxeGHFwPDOOP?= =?iso-8859-1?q?VLuWmHgHSyGMtZiHh/23I9rPImKZDXWJiM2B7IBFZesicPobPJAZkwhIEft/?= =?iso-8859-1?q?9udWLy5oM60+KvRjnDzeuj0D/9e4d6HAl1sfmaVSll/kBbpvNuA+VbM1QWtw?= =?iso-8859-1?q?UxQF8OZhV2zkXYdWLuR+QYDPFbMOLtIn0M1gmwTLe41RA8j2GsU/w1YbJKa2?= =?iso-8859-1?q?PLrrLEQcCFPzCXUzEB51QK65MKMgJpyxiWUb/nfvASidg0G5e8kZKV29qFSF?= =?iso-8859-1?q?T1hCgKXmpv0A15DE/xa4H+/QHdtfNx+I+QRnHrUUkjFhTnjs4q83flEt/O7y?= =?iso-8859-1?q?d57YKjxqxsiAaXm1LEC0B3gX81YdgTa+ePmAXQAf0jG9TXxx8A9nEkIx1q16?= =?iso-8859-1?q?BgWTDJXu+lLvkgin6Hy3EcFyFGT3UMx9i3CWo5TrMwcUxP2UOI4Ni6DaQYjC?= =?iso-8859-1?q?5qr6RAAllYmU9SBjiXfLG?= 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: c3c44de1-6810-4018-412f-08dccb51391b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:14:49.0030 (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: Q6iQDTYGXDh3jR8QQnOodazsqyIA4HXCIbpD1Ef2CUHrU0Ly8sivPAPaFku0mW5GpJSUb58iVrhc0VdIJ+nBvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0573 X-Spam-Status: No, score=-10.6 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, RCVD_IN_DNSWL_NONE, 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 In some cases, the alignment can be bigger than BIGGEST_ALIGNMENT. The patch handles these cases. gcc/ChangeLog: * config/aarch64/aarch64-coff.h (ASM_OUTPUT_ALIGNED_LOCAL): Change alignment. --- gcc/config/aarch64/aarch64-coff.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/config/aarch64/aarch64-coff.h b/gcc/config/aarch64/aarch64-coff.h index 77c09df82e4..131145171a0 100644 --- a/gcc/config/aarch64/aarch64-coff.h +++ b/gcc/config/aarch64/aarch64-coff.h @@ -58,6 +58,16 @@ assemble_name ((FILE), (NAME)), \ fprintf ((FILE), ",%u\n", (int)(ROUNDED))) +#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNMENT) \ + { \ + unsigned HOST_WIDE_INT rounded = MAX ((SIZE), 1); \ + unsigned HOST_WIDE_INT alignment = MAX ((ALIGNMENT), BIGGEST_ALIGNMENT); \ + rounded += (alignment / BITS_PER_UNIT) - 1; \ + rounded = (rounded / (alignment / BITS_PER_UNIT) \ + * (alignment / BITS_PER_UNIT)); \ + ASM_OUTPUT_LOCAL (FILE, NAME, SIZE, rounded); \ + } + #define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ fprintf (STREAM, "\t.space\t%d // skip\n", (int) (NBYTES))