{"id":2224655,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2224655/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260417172834.1015281-2-torbjorn.svensson@foss.st.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.2/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260417172834.1015281-2-torbjorn.svensson@foss.st.com>","list_archive_url":null,"date":"2026-04-17T17:28:32","name":"[17/30] Change `class escape_summary` to `struct escape_summary` to align tags","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4eaeeda23a9e2ca201de1ff61f68f46bb85aad4d","submitter":{"id":84848,"url":"http://patchwork.ozlabs.org/api/1.2/people/84848/?format=json","name":"Torbjörn SVENSSON","email":"torbjorn.svensson@foss.st.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260417172834.1015281-2-torbjorn.svensson@foss.st.com/mbox/","series":[{"id":500377,"url":"http://patchwork.ozlabs.org/api/1.2/series/500377/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500377","date":"2026-04-17T17:25:07","name":"Align struct/class forward declaration with implementation","version":1,"mbox":"http://patchwork.ozlabs.org/series/500377/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224655/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224655/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=aa7Qi3Mv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=aa7Qi3Mv","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=foss.st.com","sourceware.org; spf=pass smtp.mailfrom=foss.st.com","server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.66.32"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fy29J1kWpz1yHp\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 03:36:04 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3BDE94D8D1E9\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 17:35:57 +0000 (GMT)","from DUZPR83CU001.outbound.protection.outlook.com\n (mail-northeuropeazon11012032.outbound.protection.outlook.com [52.101.66.32])\n by sourceware.org (Postfix) with ESMTPS id 0394F4D108FF\n for <gcc-patches@gcc.gnu.org>; Fri, 17 Apr 2026 17:28:51 +0000 (GMT)","from CWLP265CA0537.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18d::6)\n by GV1PR10MB8608.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:1d1::19) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.25; Fri, 17 Apr\n 2026 17:28:48 +0000","from AMS0EPF000001AF.eurprd05.prod.outlook.com\n (2603:10a6:400:18d:cafe::6b) by CWLP265CA0537.outlook.office365.com\n (2603:10a6:400:18d::6) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.52 via Frontend Transport; Fri,\n 17 Apr 2026 17:28:48 +0000","from smtpO365.st.com (164.130.1.59) by\n AMS0EPF000001AF.mail.protection.outlook.com (10.167.16.155) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9769.17 via Frontend Transport; Fri, 17 Apr 2026 17:28:48 +0000","from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com\n (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 17 Apr\n 2026 19:31:59 +0200","from jkgcxl0012.jkg.st.com (10.74.22.122) by STKDAG1NODE2.st.com\n (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 17 Apr\n 2026 19:28:47 +0200"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 3BDE94D8D1E9","OpenDKIM Filter v2.11.0 sourceware.org 0394F4D108FF"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 0394F4D108FF","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 0394F4D108FF","ARC-Seal":["i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776446932; cv=pass;\n b=XTpPSVBg3aE+Z95Bcsb8aCrH1JcDk3B45kB0GnJUKi/VlMRZgQUAsqTEPCSnfL8stlh7USgzUSmjSeil/nyCq6wY7AodivvEGKh15v2bCAKSeOH8W14zrAmPfmB+UBqkYQ8oVI72mwsS8SR+pupvezvD9Q1JIDUDA8IRQ9mBo10=","i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=rM5A6YBjP3t7pzQhzbeJHD9jjKsoy6vAN/A1HO4OE8c4qe+3LUXkSQrA2o4dX0xhKyiMadf5DIKyl253uQ8b5UiQn6Cu3BPmi+u0HpmNqIeQinYVvh/WxYNp6PkK/85Drv3fWzjwH8N1DIO80wY05TAdg6sTBlppeNihHWZ+k5P8SJGqhk8fjJSKBGfNZQ46Cxyp4nqy1b5zYsmmnswSfoPIvNLMjaTEK7DeDi0iVLr7CTXmhHGk+tSEeD/YIUXx4mVWsNA6/uSc57b9CpYr0By7BPbnKsW59tG4kDThH9PoBnAztCIT53SKb9fqDMTyTG69K+2mDdUGJ2+6l1dF7w=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776446932; c=relaxed/simple;\n bh=7eM4QLYINhenV0nU0CLsDz6XztxokeRp8Or7znKIHXA=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=i0uCaCJNu6FJjq/M9Gr7VLICF0Iy324G+1taIKqpHDVxf/uoTVbnbDDSqYZV/w/oM2cLsaZ9nCW1pSnGcJTgt3YJiwJGLt2xM0xeTDHws15nBNKlvsRhoCEz0pffHnSmkoNk4/OzkQfpR1FhPQesaRHuyG+IRQkx4Y9JcZYd7ns=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=oYCQ/S7VFj4dWV0waRLtP6fgaP23OLER4FjZbafVyqQ=;\n b=RYKv8jzEfgtauRrd42mpthgKMfb25bTLQPk/g9uwudiPKAVqeTefAuTrzrnmz04EW2olmHYx578MMR1rDqEj3f4ibnbD4eddE8VfscZ6Pm3NTBAauKKWvY6bKJL4AXhov0wd75xDNh9affPvgSMx1BMXDZOYwo7uCfj6pvlsuei23ZkxhsP7VnBeztb061NdNkxPc8sAIcyF7aYigUdSlkGD1Gk1l3w3sF3e9QYrC79xv0bODbmWD7QjzvPtf94Y195ZtRCgyfkHmwlV6JzHx34V6OljTchARP9EYR+Sqwaq0VxBkpVpEYmUGm5gJ+k80n7o4hygjowrCqbgwCGnnQ=="],"ARC-Authentication-Results":["i=2; server2.sourceware.org","i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 164.130.1.59) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=foss.st.com;\n dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com;\n dkim=none (message not signed); arc=none (0)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=oYCQ/S7VFj4dWV0waRLtP6fgaP23OLER4FjZbafVyqQ=;\n b=aa7Qi3MviRrTu+Wey+QmYayDYLjdu6KJK2iPgB2eF3IladBYU+3K5lsw3W+RYFvbIiZMr8otGFMd5bPXmVSorrJT4JPKaEmjtyEVeDHnOVq7LOI40tporB5zCpSeyaz4BKHk87qbUEv3A/Sg7m3SzWvoJLSMH1ikVEYSWET+JIRA1xJ8p/u+renpQE+BLsbQeHiEZt9Sc905cy/C/dnw4WzuYAB1sgieEGeuxK1ezNzJilzVmTzm4829RvtRy3zfEfM81VJIzho4t0Ua0rCQBqKl5VHoFRnWKOH/kgXZYyLTBCYVPAL5NazYrwINNEIW0Wf5/FGvJLQp06d45Q+/kw==","X-MS-Exchange-Authentication-Results":"spf=fail (sender IP is 164.130.1.59)\n smtp.mailfrom=foss.st.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=none header.from=foss.st.com;","Received-SPF":"Fail (protection.outlook.com: domain of foss.st.com does not\n designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com;\n client-ip=164.130.1.59; helo=smtpO365.st.com;","From":"=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>","To":"<gcc-patches@gcc.gnu.org>","CC":"=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>","Subject":"[PATCH 17/30] Change `class escape_summary` to `struct\n escape_summary` to align tags","Date":"Fri, 17 Apr 2026 19:28:32 +0200","Message-ID":"<20260417172834.1015281-2-torbjorn.svensson@foss.st.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260417172506.1015169-2-torbjorn.svensson@foss.st.com>","References":"<20260417172506.1015169-2-torbjorn.svensson@foss.st.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"8bit","X-Originating-IP":"[10.74.22.122]","X-ClientProxiedBy":"ENXCAS1NODE2.st.com (10.75.128.138) To STKDAG1NODE2.st.com\n (10.75.128.133)","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"AMS0EPF000001AF:EE_|GV1PR10MB8608:EE_","X-MS-Office365-Filtering-Correlation-Id":"de2a4f00-1b94-42fb-f009-08de9ca6c8e0","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|1800799024|42112799006|82310400026|376014|36860700016|18002099003|22082099003|56012099003;","X-Microsoft-Antispam-Message-Info":"\n tecQEp0UtTMEfJb95lF08FVnyUNUjC5iN3XtlU9hQDKCrEpXQ8yF4R/n7cEXcULGtqo57jQkZ+CoVSr7Gzsg++otJZKvIq/WgduVkpHYQRnMdNX4YuNlkU78M0EZ5Y6bdBtatAf6K7TTUoqVVoYg+xSM+a/fR9qLx6U55v/LEstKk1yB6geRyilKk3gVfpEiHPiHZAAICeL+Ai8QqI2VxHt4mnNbU/3hgsiQLey56jHcxPuWcoQUMiVUTbxeO1qId0GFwfc8/7syTBr0MEjN18xMn7rnQNlOUHKYoDS9r4tAznhhGkPSSuWZzIsn4nN+sQM/ckRCJZXyM3PUbTgUVhNGR8fQ6ZE9zS7Xnoyh+v8ddfAbcAL1qDXti4VO8lTRJ+UOw98ZRppRi1UpyXruhr2TGZFnQLGGnwGPbxD7w5vvLmXl0j4A8+QTEg2tGfBNOhEUTMNyg0MRzNIuT6n55RH8bbLurcUrsY9AxHm0gTmKKFC/livd6+AOmcDYbF5LgDy39NnaIJ10+iQnqQq7dcLrvTKO6UY1+3imTsJSNEfCgh8wQqh4iEgdaghP6kHoMWxmVCPLkG8kRWv1Nuj2vbGaABX85bBX+xNdwMrJcPZ8B4GVeK5GgdbDmLaMX3n/Q7pb8qdRtJV5Loks83P9XxdCr3VB5tYbvvyJE5nirD8GEK8K0OD3bprJ+PFkC5HQvyVXkVMFbBhF+5MAMWuT7ie+lYzzTJtIDKq7X+yvtuY//WEOuDouksT9WyGkkiHRRJf4lO+E1YYVZpWVf/gU+g==","X-Forefront-Antispam-Report":"CIP:164.130.1.59; CTRY:IT; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(1800799024)(42112799006)(82310400026)(376014)(36860700016)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n 6avcPLWGUF6E0nn4JaSgkiTrg0qUmppZ/No93fX4YIKzxj3W99tlcKeZqSAXPg3vUx/EiOZ5/Sptgfouojom3YjXNrjTTwAtgJpixy45TprPMcJJwt1j+DidCiYgE0CboGsXi2/8ha88ai2kNzevdVMSn0uy0+GZBObcs7yQvqAXKd9AsR4uqYfZbbES36k2ty2HGN+cbaThBx7fjXxr2xnqKwnx4lv5h0ylNj/J+jkSy6wYahM0VjHjTGNexw1m+Hq3AgupPUYvoSuztCEM7qp5/8yahcItYpDiepTo5+3eGQUTPA1yLHJLNvjchy8qbsH+I05yhRj2agni6xeaR81nBlJiFzpimPiOBen0l/p88rYK0msMrJK/NOvK/sIFZ+WF8jncDoX+ZrwEloE5D7XXbf1NFbsuydNSNg2xxBzErWGeY5sj18JSvX9kjN9U","X-OriginatorOrg":"foss.st.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"17 Apr 2026 17:28:48.0958 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n de2a4f00-1b94-42fb-f009-08de9ca6c8e0","X-MS-Exchange-CrossTenant-Id":"75e027c9-20d5-47d5-b82f-77d7cd041e8f","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; Ip=[164.130.1.59];\n Helo=[smtpO365.st.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n AMS0EPF000001AF.eurprd05.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"GV1PR10MB8608","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"Building GCC with clang gives warnings like:\nwarning: class 'escape_summary' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]\n\ngcc/ChangeLog:\n\n\t* ipa-modref.cc: Change `class escape_summary` to `struct\n\tescape_summary`.\n\nSigned-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>\n---\n gcc/ipa-modref.cc | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)","diff":"diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc\nindex af508d75d06..10ad174fcc7 100644\n--- a/gcc/ipa-modref.cc\n+++ b/gcc/ipa-modref.cc\n@@ -514,7 +514,7 @@ dump_modref_edge_summaries (FILE *out, cgraph_node *node, int depth)\n     return;\n   for (cgraph_edge *e = node->indirect_calls; e; e = e->next_callee)\n     {\n-      class escape_summary *sum = escape_summaries->get (e);\n+      struct escape_summary *sum = escape_summaries->get (e);\n       if (sum)\n \t{\n \t  fprintf (out, \"%*sIndirect call %i in %s escapes:\",\n@@ -527,7 +527,7 @@ dump_modref_edge_summaries (FILE *out, cgraph_node *node, int depth)\n     {\n       if (!e->inline_failed)\n \tdump_modref_edge_summaries (out, e->callee, depth + 1);\n-      class escape_summary *sum = escape_summaries->get (e);\n+      struct escape_summary *sum = escape_summaries->get (e);\n       if (sum)\n \t{\n \t  fprintf (out, \"%*sCall %s->%s escapes:\", depth, \"\",\n@@ -3803,7 +3803,7 @@ modref_write ()\n \t\t  bp_pack_value (&bp, sum != NULL, 1);\n \t\t  if (sum)\n \t\t    bp_pack_string (ob, &bp, sum->fnspec, true);\n-\t\t  class escape_summary *esum = escape_summaries->get (e);\n+\t\t  struct escape_summary *esum = escape_summaries->get (e);\n \t\t  modref_write_escape_summary (&bp,esum);\n \t\t}\n \t      for (cgraph_edge *e = cnode->callees; e; e = e->next_callee)\n@@ -3812,7 +3812,7 @@ modref_write ()\n \t\t  bp_pack_value (&bp, sum != NULL, 1);\n \t\t  if (sum)\n \t\t    bp_pack_string (ob, &bp, sum->fnspec, true);\n-\t\t  class escape_summary *esum = escape_summaries->get (e);\n+\t\t  struct escape_summary *esum = escape_summaries->get (e);\n \t\t  modref_write_escape_summary (&bp,esum);\n \t\t}\n \t    }\n@@ -5454,7 +5454,7 @@ ipa_merge_modref_summary_after_inlining (cgraph_edge *edge)\n   /* Now merge escape summaries.\n      For every escape to the callee we need to merge callee flags\n      and remap callee's escapes.  */\n-  class escape_summary *sum = escape_summaries->get (edge);\n+  struct escape_summary *sum = escape_summaries->get (edge);\n   int max_escape = -1;\n   escape_entry *ee;\n   unsigned int i;\n","prefixes":["17/30"]}