From patchwork Thu Apr 18 21:45:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 88692 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B34ED385842A for ; Thu, 18 Apr 2024 21:46:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2099.outbound.protection.outlook.com [40.107.105.99]) by sourceware.org (Postfix) with ESMTPS id 390EF3858D33 for ; Thu, 18 Apr 2024 21:46:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 390EF3858D33 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 390EF3858D33 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.105.99 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713476764; cv=pass; b=og+imNledEfLw1kfdwggNS+StXFdvG+itFSFuApWU+crR8bdftUJEJc3YDAIkIHOws/wSt6aMR/w6KSfl4fzMcDGERI6ukFR8ZZFcgx6/n7E174n1tNHI0qBi+pjCoLw+Sfp6VcTMyE4WnLU6wkR5lRuitQvDnJRkVa5evGxFi4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713476764; c=relaxed/simple; bh=IDZy4KF/b5DoAqhMuxTh35Mh3LJpDrO1gWufHQexBV0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kOc4eQuxNgBiDOH+Yb/35sKkEiTrXK2tVPbwpg7kMvIvI2SqgU1tzaQbA8g5R8HlsU9/G2oWRXnQWtAosxglRpqiesEWN6NeSUNfu3BHjm/AkU6AEw2jVPkUEw8P+GbzPEjqmOyrO7z/Zwx1WRXIzahJVIk3UNc1laGltlTG/AM= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4x/rZdjh+sOEdE+XlwhKI2ZfbJ/9Pbxar5VzVV1S4sKQReRfFmaDs1mq2d1FiAeuerrnHEjlrJLvZyYGS/92ihvn6g+knvZTtcRkUJIjIAYNjskXFzMzRjgeo/1Mff55OQcLHbxSBZELU9TNHD5uCLc0evQRLhVoKgdKRTxArTJIslPOPlRurPGGqCDmiEDMkRODqXF/cU4kLjfE3prTIJoeQ30VtJ4XV/jwpUsws72BkGGJ+MCwUFTbIcLoo8fW/hXXJ2kNl5XowupmAih4wJduqSM5IeQ7UG+pEa4mRDvAJH4vpQfpMGFdlbh6jRhtoh5sMgDEaexvb3lB3Rtqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=jwf1Y2+3XONqf712qFIxbZcR0PCxLfLMgQN+b/m+HcE=; b=HTk/eE6lW035Oq5bbF4P7q7Gm5dazGTJN6oU3mHiExIK7g7Y5CNV8Ldl3YSd7B2AkaCr7cDl8lg+t/GVPj9uuaQqaw1R4QUCGN5D1jiCp6xddB4E20XSRfDz83mQ63U9o/mNImdaCQLjnyOX4mZCfPzDrTYDU1yEhUu9hFoMKn3HhRyTVbVIDBKhb1QzHGa2A3uBQTbOjvSrMf08vFnJXaoXMqbYxP1uFAvL6kYzHvx9E59l950sl9a1u5vN2Fa60+iUClGsWk+eQbrEM7WUaklUH4UF7aRFWVWuvtx6xXOvMoqs1CsLwe+6qTjzEtIztgZou/l3DXqRs1DY7daRuQ== 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=jwf1Y2+3XONqf712qFIxbZcR0PCxLfLMgQN+b/m+HcE=; b=Djc2UYCcIX4dY6GKaX9LbinMUCPd1hn11+5YP0fOJmlBLbXOeERaJLwk3TG4zvDPmchY0L7lZKRXeR8aFlJwv5gexS5gzjGcGwoNeuxyIO+1Ga060sU6N9DQltdi3P/YWbeeqJHCktwigFQNRvJohJzENu0PfBF2J7B/kvqCUXQ= Received: from PR3PR83MB0425.EURPRD83.prod.outlook.com (2603:10a6:102:5f::21) by VI0PR83MB0695.EURPRD83.prod.outlook.com (2603:10a6:800:218::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.14; Thu, 18 Apr 2024 21:45:58 +0000 Received: from PR3PR83MB0425.EURPRD83.prod.outlook.com ([fe80::2303:5667:fa24:79c2]) by PR3PR83MB0425.EURPRD83.prod.outlook.com ([fe80::2303:5667:fa24:79c2%7]) with mapi id 15.20.7519.014; Thu, 18 Apr 2024 21:45:57 +0000 From: Evgeny Karpov To: Evgeny Karpov , "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , Maxim Kuvyrkov , Radek Barton Subject: [PATCH v1 3/6] Rename functions for reuse in AArch64 Thread-Topic: [PATCH v1 3/6] Rename functions for reuse in AArch64 Thread-Index: AQHakdnMy7uWoP5YA0ObgFPmF8HNqQ== Date: Thu, 18 Apr 2024 21:45:57 +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_ActionId=7edbbdf7-0382-4215-8fdf-996305ff5b5e; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-04-18T21:26:39Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; 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: PR3PR83MB0425:EE_|VI0PR83MB0695:EE_ x-ms-office365-filtering-correlation-id: f621738a-48df-4368-49e1-08dc5ff0ee7c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|1800799015|366007|38070700009; x-microsoft-antispam-message-info: 5lMV578aZU5fBQh7hR4eU3BIV8ezbv+wuHJX/UrPD3dSUOEpl/HxqfdiuVa7pSXrfXjICzRuuq9gZ49vXMLbVWSdc2k7VM49qaejpiBORz044Ey+/6s+QaMc2B+RqzubK+/xFZjl5q2PSOZ8FF3gqJh4ZFku1N0V4KXiwbwhncxvfRzaSbX4NDmnpe0sXmnfiVfZiYj2+Lar0h5ItlvnxS+TZA364RczZnJGH1snew4cMWaxUe95Mo/iN+KrpkntlhQn5QOTqW+JBJ9Lvtxdg4QJWT1mIqth3uBJt69c1ABEABxuM/lKEe9KNi0jcXAGGDhTG+cRoYDO6jzT1HBxhUO18EsQE9ReccO1LO/ZWUFMOA/1l7KG4A9Iakg8d4DkjjAfVcUOrhobK8sQX76Xis/ya70A8+4hEht9Ib8b+mwFqw9AIbhrTg/6wxDNr673id7oYwgKBko2+pTNRfKSBwfbIOr51iEWtE5hZeFr82Fukl2erqON1IKVcGbcgFvqYFLx4EB2mmaLGC0tGvQ7takqruNszkGjnCFeG174GNq7vEgoG3nNzsS6J9ZpYBvjQXfbQjwzlkD7TWDIYlJyTzfFNoDS8zBRVwnkjmU7XKswwosYKuvaJZjyA+itpK8nXjUeQd9Eerf7h2E4ziYNJK0IBV1gIUJ1R4kz0Iv4e9ikljTrgl7H6MyE/iq8aicl6w52divfPhsURosQgqmOddfpqXqUFZ8iSEioZwu7dP3R+NIw95vwBs2C/5/qVcPEy5g8kGTqCxVD8e9feLfuA2eL8qQ8jWidLNs0MM0cxfwaFn7Jar+5gQwA4mJ6Do9wU/6R1GgOrPVmKAiYIeHoQmP5qoPGZS5UfzXuruSY60x2HgD3IVrkpr8nt/6nKzHpHvJsmQrgFg76qbf2tkJki6Gcv5iOh9meMPs5Bhkz4xbNsyyTa8gSDD7TkswV2ELeQDpa3kVnTcfeOpE1zVDOLbYmepY6ZZu5vNQGl0+xLcxzykNhNFstuAmOTbzJhmCoKMPdIcwqV3snh3Svvnybfn99c0BOLipDr1DgjUTVBigmo8oNhu+ilX+hQOzI6ACnxCf/GZ7Hyr4SVY7l5HIM7riwr2Rkf+7DyzBi+6EFTaTl7XUUgE/21A4PAL0lTSeV1SZ/CZXjIDb4mfgMIrBh90BQCdMrtjwcoCxMCNbCNghpUssL6Rp5pJZbamY2zuIeYS1oZlfFYb+ovNBBKvB5zZHRQC3S2ZxGkwBYavJcseCBlle3/IHh/zFiseu3WeIUnXXDQRirc9GI8US5U1go3A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR83MB0425.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: NcFQbwvMcJIXQywP2wWZhy10Td9OLUhhCr4dBs/JGavgVtc9yzdxrdO+NhsJIRaT+9F5Df/4RtVcbqf6j1zwjJN3bf8XY31GyM4//SHzmBVJFXuEKfoDXy3cWhxkEpcB42Rh2xWfVoKY/XPzIy2sx4AaCUUYKUDkSwQA0qdLY8zMcnDtGKbYJTtBb6HmcRoO2YyIqiYWspTqSmO5R5p4OH4K93VY3CaKkykG0q1UXJt2CPcikFQrh7JgP8YRMGV9+SE35pkhJRKFnjPazyneHq53zU7w0HdWnrLXzfowrbtk5L01Rph8WY1rM70RouSo22ZesYvzHJqB74+bFz692ULQ7BcOuJqEFUjhD/CLApaTuJOYCzHRCX1GfgOj/Zr2ZgPL7KIYUhmdSmfZ2dUKUub/z/8k3g2xST5xtZhqRwMagB46jIS6Tzh8j0J7FQAgifr6r8y32JfZ5MkbFFrsdEZGgXhSxpZipnZaQGYRaiRLn9qjWWGLXuzNZiGyF8gYEpmRlMDJcfMgFfsh/XkTvOLdkktS0OJTyTEWCpwNRb1TcDGbue8P4gpyeNLBGdBwyz+7rX5i7k5cOcRF3LW8OSLxIBgN+dJa35XqD26VcbHm2LMG9tGKjwneCB/t5VEQBucKRCNajqfi3aPwDdtqto6GkhwvMKLuIecQmO1R/g9UXuevGqhBXaIaqlSvxVaDvL2VNMuVGeTj+SDxgcAiZ6ZEsB0EUq8bxj5Mu1Wl6ZgBwihHvnOmnjsijeHul2XJM3ZHW8UGyGSFPqel/Y/5ddU4X8vyg0+9T/q7jGQiDojDjPwqnIe4QjVik4v+ugtf8NF6GGKt/cuM+Ma/wqnf14szke3x/+SETElWdAMjk8e8Km6dH9JNB+kqduLEI4dYv3JjFU9ruvPtbtiLG13WKi5QcwymAhY9EYm/Mhk9baoilMzdz27y9TgukvRDUXlNI1/DWheAqkI3iH3z8LQaH2HNgGVEGnFJCj8jQyHCOdWLlG7rHuXS9QCzu8DlCmzpohPYOI7bM57UQVccd7ptHGrwlQK0hSt8TcpmLCWn0hwPDsY/qxKfX8c6oxWsj2N624F9t+fQ6Bomc50+B6bL3DKlJrnFUEPU5NYJ8PeXQbD8Aopz2Zpp1MuGguP5nPteYFgKCv75fNJCUEbWHHUU5e1pkf6lJ94/g0jIzwgK7y5ugsNgbLbqaGaNiq67cjNuzKAUlWywQ9HB2RypfRozCNlcTGWLGaZy6UV47qR3GLkvPccChmdkEyON9wf7p+GirljHmxdsq9jRFf07o9czfTIsFdMEBPAsdrccU5iNwcpTNoVjIIL7MDS0TUSobe8LgwZTSp4ldEgdQKxnM3SzFRotJoeg4ZLfJ8Twkec1pjRAZXmtgcYrBTUm21ZGzs6fqtCjyED58Mv06/iyCFC1diK+2PLPdIpjItBFNOfFwEB/WksltdY0tzJsCZ20jiIX79n4XWxCeesfz81ye0jJgkKiYr8dZJrpQtUeB9JMFOgNEvLVd0G1T7wfRhOvXGHwXgZ7FsMALMYYE2dqqT4L23fmiDMQZ8Uew96xbM2xvY8I0z3NKZMTYXhBrgulam58 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PR3PR83MB0425.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f621738a-48df-4368-49e1-08dc5ff0ee7c X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2024 21:45:57.7597 (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: CgcBsyV9xi6rXPM3xAppgXv+zqziZom6mb5d6FwinfIXWEtOdXz7caxrlO1/Txv7VdhbTq6N5SdCWZILoFrLpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR83MB0695 X-Spam-Status: No, score=-11.3 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_NUMSUBJECT, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: 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+patchwork=sourceware.org@gcc.gnu.org This patch renames functions related to dllimport/dllexport and selectany functionality. These functions will be reused in the aarch64-w64-mingw32 target. gcc/ChangeLog: * config/i386/cygming.h (mingw_pe_record_stub): Rename functions in mingw folder which will be reused for aarch64. (TARGET_ASM_FILE_END): Update to new target-independent name. (SUBTARGET_ATTRIBUTE_TABLE): Likewise. (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Likewise. (SUB_TARGET_RECORD_STUB): Likewise. * config/i386/i386-protos.h (ix86_handle_selectany_attribute): Likewise. (mingw_handle_selectany_attribute): Likewise. (i386_pe_valid_dllimport_attribute_p): Likewise. (mingw_pe_valid_dllimport_attribute_p): Likewise. (i386_pe_file_end): Likewise. (mingw_pe_file_end): Likewise. (i386_pe_record_stub): Likewise. (mingw_pe_record_stub): Likewise. * config/mingw/winnt.cc (ix86_handle_selectany_attribute): Likewise. (mingw_handle_selectany_attribute): Likewise. (i386_pe_valid_dllimport_attribute_p): Likewise. (mingw_pe_valid_dllimport_attribute_p): Likewise. (i386_pe_record_stub): Likewise. (mingw_pe_record_stub): Likewise. (i386_pe_file_end): Likewise. (mingw_pe_file_end): Likewise. * config/mingw/winnt.h (mingw_handle_selectany_attribute): Declate functionality that will be reused by multiple targets. (mingw_pe_file_end): Likewise. (mingw_pe_record_stub): Likewise. (mingw_pe_valid_dllimport_attribute_p): Likewise. --- gcc/config/i386/cygming.h | 6 +++--- gcc/config/i386/i386-protos.h | 3 --- gcc/config/mingw/winnt.cc | 6 +++--- gcc/config/mingw/winnt.h | 6 +++++- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 4110ceab824..061136efa0a 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -342,7 +342,7 @@ do { \ /* Output function declarations at the end of the file. */ #undef TARGET_ASM_FILE_END -#define TARGET_ASM_FILE_END i386_pe_file_end +#define TARGET_ASM_FILE_END mingw_pe_file_end /* Kludge because of missing PE-COFF support for early LTO debug. */ #undef TARGET_ASM_LTO_START @@ -443,7 +443,7 @@ do { \ #define SUBTARGET_ATTRIBUTE_TABLE \ { "selectany", 0, 0, true, false, false, false, \ - ix86_handle_selectany_attribute, NULL } + mingw_handle_selectany_attribute, NULL } /* { name, min_len, max_len, decl_req, type_req, fn_type_req, affects_type_identity, handler, exclude } */ @@ -451,7 +451,7 @@ do { \ #undef NO_PROFILE_COUNTERS #define NO_PROFILE_COUNTERS 1 -#define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P i386_pe_valid_dllimport_attribute_p +#define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P mingw_pe_valid_dllimport_attribute_p #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION i386_pe_adjust_class_at_definition #define SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME i386_pe_mangle_decl_assembler_name diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index dbced12f8d4..4dc90179b9b 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -261,7 +261,6 @@ extern unsigned int ix86_local_alignment (tree, machine_mode, extern unsigned int ix86_minimum_alignment (tree, machine_mode, unsigned int); extern tree ix86_handle_shared_attribute (tree *, tree, tree, int, bool *); -extern tree ix86_handle_selectany_attribute (tree *, tree, tree, int, bool *); extern int x86_field_alignment (tree, int); extern tree ix86_valid_target_attribute_tree (tree, tree, struct gcc_options *, @@ -301,12 +300,10 @@ extern void ix86_register_pragmas (void); extern void i386_pe_record_external_function (tree, const char *); extern bool i386_pe_binds_local_p (const_tree); extern const char *i386_pe_strip_name_encoding_full (const char *); -extern bool i386_pe_valid_dllimport_attribute_p (const_tree); extern void i386_pe_asm_output_aligned_decl_common (FILE *, tree, const char *, HOST_WIDE_INT, HOST_WIDE_INT); -extern void i386_pe_file_end (void); 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); diff --git a/gcc/config/mingw/winnt.cc b/gcc/config/mingw/winnt.cc index 9901576ade0..a0b5950be2e 100644 --- a/gcc/config/mingw/winnt.cc +++ b/gcc/config/mingw/winnt.cc @@ -71,7 +71,7 @@ ix86_handle_shared_attribute (tree *node, tree name, tree, int, /* Handle a "selectany" attribute; arguments as in struct attribute_spec.handler. */ tree -ix86_handle_selectany_attribute (tree *node, tree name, tree, int, +mingw_handle_selectany_attribute (tree *node, tree name, tree, int, bool *no_add_attrs) { tree decl = *node; @@ -162,7 +162,7 @@ i386_pe_determine_dllimport_p (tree decl) /* Handle the -mno-fun-dllimport target switch. */ bool -i386_pe_valid_dllimport_attribute_p (const_tree decl) +mingw_pe_valid_dllimport_attribute_p (const_tree decl) { if (TARGET_NOP_FUN_DLLIMPORT && TREE_CODE (decl) == FUNCTION_DECL) return false; @@ -749,7 +749,7 @@ i386_find_on_wrapper_list (const char *target) output the .drectve section. */ void -i386_pe_file_end (void) +mingw_pe_file_end (void) { struct extern_list *p; diff --git a/gcc/config/mingw/winnt.h b/gcc/config/mingw/winnt.h index 646654e872d..e02546e8ac2 100644 --- a/gcc/config/mingw/winnt.h +++ b/gcc/config/mingw/winnt.h @@ -18,13 +18,17 @@ http://www.gnu.org/licenses/. */ #ifndef GCC_MINGW_WINNT_H #define GCC_MINGW_WINNT_H +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_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 *name); +extern void mingw_pe_record_stub (const char *); 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); #endif