From patchwork Thu Nov 17 03:43:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guillermo E. Martinez" X-Patchwork-Id: 60730 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 12CFA3959CB0 for ; Thu, 17 Nov 2022 03:43:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12CFA3959CB0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668656617; bh=o55H0Ag3hget5Of5GlpMC4pPuKLnaLDhdw/Td9J6yOM=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Help:List-Subscribe:From: Reply-To:From; b=EZwTp58Qb6g8PAZCAboqU0uRxm/RdJVpmSXk5l7N/5Zxo40J46XKCqhByWxLo6oEm M3skUT7E1neD9rspbqcKgscvB6XJizwH/kFRGKoPhE767yJerwL5kEEzvv6AjERGnU Ax9lhCwtoGO161DUo0UGllfQzfVuVYsRRuOSUKM8= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 828083887F76 for ; Thu, 17 Nov 2022 03:43:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 828083887F76 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AH25QLK032463 for ; Thu, 17 Nov 2022 03:43:26 GMT Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3kv3ns7npa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 Nov 2022 03:43:25 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2AH37wu6012420 for ; Thu, 17 Nov 2022 03:43:24 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kt1xes4d3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 Nov 2022 03:43:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B3643OTadVPt+G32w9t+P1RkWEXYhJ3yY0ssNGs0cSjqt51tiBLPKaxaPqPBzBRAgEXorXcaw2AS7/15u0Id73pOMWHn6NDBUnqxl6zIcqD4PJdFgrbtqIyq9rlb8pxvc4QhG4gPYOtSE7ZDJXzvMMOxdD5yiDHjMdAiUZ6fOAGQSqjN3FP64s1146dO63j1310yEUHoQ1deeS+wMMz1eBqJ6UksGWHSff4Cf9bM++106fT1NEP6xRi9iOhX3UovRgFNY8URTzu6qi+Z12ZkYlM6H21gCfsya7CAVrGhXRuazCf8s7ji+t2fpPYR+lBi/5lcH9BUIx37l7EJxO+/aQ== 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=o55H0Ag3hget5Of5GlpMC4pPuKLnaLDhdw/Td9J6yOM=; b=N5wmVHHaTtLlmSDk/xWhr8O/UhishP6mRwESm8brF5cufcu19VDeSuFSFEbL8jONzjnJLOwurr3rf2Scb9go5ayXCQ9IQikfuCUxbHHgcQ4M6YruNtibNWYGfBSThA62ZurESBGZE0x77XJi+s/ePlWPSs0lOvdIkdIPpBU5cqiaOWM+xfBmHXk8gLPH2BOeNFOyckvc0hy4KDzyx/UYYXf3ChbO4EwquDMkb9g59avb/lIXz0ISZ9QlWKt+26FtDzH9Prrjwn+LhMG5DhiJZLFhyFlih8+/aIyVneCClVNSL61d/7c2BJSqyo7VUrzi7nWC1IJDAmuhYMnTVAoGmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR10MB1407.namprd10.prod.outlook.com (2603:10b6:300:23::20) by CH0PR10MB4843.namprd10.prod.outlook.com (2603:10b6:610:cb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.20; Thu, 17 Nov 2022 03:43:20 +0000 Received: from MWHPR10MB1407.namprd10.prod.outlook.com ([fe80::1800:88c1:fae8:13b4]) by MWHPR10MB1407.namprd10.prod.outlook.com ([fe80::1800:88c1:fae8:13b4%10]) with mapi id 15.20.5813.020; Thu, 17 Nov 2022 03:43:20 +0000 To: libabigail@sourceware.org Cc: "Guillermo E. Martinez" Subject: [PATCH 1/5] ctf-front-end: Set alignment-in-bits property to 0 Date: Wed, 16 Nov 2022 21:43:01 -0600 Message-Id: <20221117034305.184864-2-guillermo.e.martinez@oracle.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221117034305.184864-1-guillermo.e.martinez@oracle.com> References: <20221117034305.184864-1-guillermo.e.martinez@oracle.com> X-ClientProxiedBy: SN4PR0501CA0018.namprd05.prod.outlook.com (2603:10b6:803:40::31) To MWHPR10MB1407.namprd10.prod.outlook.com (2603:10b6:300:23::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR10MB1407:EE_|CH0PR10MB4843:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ff0e0ef-0a22-441b-2117-08dac84ddd16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: abKWLV8a1mh4syqasAlePmodCihgFdH5ztBb4hs7eX7SoZLGAIVlvG9QdJLSQHKAfpmD6aBuiXB6luBJoIqHp1IBY2wL/YjLvCfIT0Ve1t316BR5xD3AfmEQIfvMuzcFMdVEgUhK9VXS+jlVj4Gm81z3AQzp3xeDaNtQYZfqPjANHr1o+w+7QNireiM+uoolpG+VfdQ6ThZDG0idLMVP4S6Cu2FJGdAOPmXzciZQNAwaM2Z0b5ANkY7D2HX3p1akd6yQLAuQvs5YBZS5et0yUi+mqLOckaE/Hbe7g/IGEc5G8MuAs4UluszNUvwJL1K+QvlvS9pumJU5A6+6GzFnS4h1+O8hk+fX2mrzJf3XmILBhSG9WemqSFVGr6xjcKSi6b3ziUssWDxxoc7/dfSJ6UpwQ0eGbnVc/aGyqofXbITyeugyIuzFff/eh8/umZd9vG+LbYC/CPNiGy2z3U501e55n4lT4tQRm7VBNq5wP6Q7J0xWXpfRyq3C/+R7OJ5hWsiGray1i3nOPUDf9qQtBqyOs4QI81MeIdUWzO4UCqhoIlPh1n0+DG6xv/Lbn0K+OC7TDloKBHwePIW66Vd531s30TF60WFFPTto/Go5ebVYMZi2lLL4SIKUIBOHLKifTipHBo1dDupwTZwzBxJ2WePxscHuXrKpHuA6Hzje14kNE7vQcASceKmkS0O1WnSeh0JqaVFOt2C8di3kzL3qdQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR10MB1407.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(346002)(39860400002)(376002)(396003)(366004)(451199015)(86362001)(36756003)(103116003)(41300700001)(2616005)(66946007)(66476007)(66556008)(4326008)(8676002)(30864003)(1076003)(186003)(8936002)(5660300002)(107886003)(6666004)(478600001)(6486002)(19627235002)(316002)(6512007)(6506007)(6916009)(38100700002)(83380400001)(2906002)(559001)(579004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sAZDwJUvmY3hQmKvPPB3cV8LgtsCLCCIIFAEIr7LxIPGiSnBTZ7ziJOBLA1yqgcDSsSUncH2Ra01GorM3KctJ+qUQ5j5WcYDhg3oetDTecvF5UWywva3zP7M7yHe83fd0qhiDKTMRpkqB04ZLnyvWIYY4iUiHq7BSWFVy516Fw2bKli4NdqMl5ps5tq8PP9YP10Vx6NSf603AX9TZEKRFU3wzp0cuEKqiwHcG9oNi47IHJUijAdxKtzS2teoEfCepwWH5vV2aQlrbZDJmJCKAcF6rJSMCFvR7atu68devAEbW3HKUkR+QdqxjLpu8+rTxQTvmb/qFxtCgym1ss4VRL5t3Zgt0mJP7OTmbonE4m6iST/EOX23UWBsnawne9AlQeU7e9TfR9n8gWNdR4u74zp9nuFEXigrDsCpF9aFKEeDYtBfyfJrDgg+bQm4rC6d23bnulm0NmW1ikQLJ9V2l2TRgkVtdQ27FXOGKfvfSoxxYqoeM7ZErs2QmHq0wfWVJoSGxN+L9tMxgO1rmonOMsBIAsTrOxXR6BlKpB4H+JcRy3ZlVPF1etNnvhq1Q6PYfn7cIAJV8hQVPacI2agtmHPZP3uRgXdG9sLIWjk+L16UUDXbsrrpuomxYIo3zqMzinRXq+f5mLeVMwCTk3GQ0VmXn95AcS3ppESRBLPe3I4bLCtbijG7dCyJE1ez2XgBDma6P3vwT2Kl5ZggtSfBw1pdQFgkCjSZN1OhbH5Rzyc5drWBKN/+LoxFOvVj7QVYU/NGt7xqTSMBqsawZew9C6m6iOuBb3cwgOQkkKkl4GuyUpQOShmruZnqC+5cfrABH3y2wAsBuvJSo/y6yGHZiufzuPJ49DoZu4BHnqmywP4LT8egjqIPuNms01sx/5JSCEFgi01ghT/zvpEaM5AULLC/vOrSRsQgR78/sNcLGlCyiAWVI1pYWvTIdr5ZfmOBPy9pUG7B7VmIn/L1lwlJn8YFhIYqgBDGHEdm9ccZqQOryF5vqnEJ2DifmgIDZ+tf+cDUgyI3reDLvH66b0mdG/bysZi8XQPAJ3jaS/p8mjDN2A1ECNMV9AlGjFEHXRgrrJjZQ5fdTTTqYox2nNjM4NQvjGAOSiL8ZuEvOhA9y5JF16u5Zo49iebEb5XxJJCgKRvY73Cf9Tqzjj4tJ1spl4TFPmw7F1KzMmkrE69d1hQRfD0HWdjiK9VHHrVfwGl+MlwNTX4TqYrk/RVzPijLNYSWf1LJvpl2R5mr5ghUmCraaij7UXMt9rteayuKG69bsR742sMinprYE8ewY3ttSg99+kXmiwQguKAYrgWQc7m6j8r/hENwCcQV1pFw/4YYfy6g+e0ZOwW6TYdVT6oqJT6r30e1OrRop8Gx26f4+FDvbUljbo/IShRrzPAQxy4kAbDF5uADAqCBIwwDk7E+/2dBbd5NJp2oJ9NW3zJj8l4UQdjAnNuu4O9yVRCNtRoRdNYaeTuSSfG6PzvJ5YOSyoAZXrAKwYKW169GKz6oM7+0Obi2vRUg2YLC018qdwQ4ucs5EqMqHXC4zJfyvq4uX8NyfUlVhpXLIwzgAkA+GOTOjcB7GKlWZfOVHHiQ664QYlnnUnb97sX6qjkkdiXcBOwUZynauvAnCztTHOFooaY4CYVNGsN6f22suD4Ge30ClRL0eBvioduAP/X6vuj0JmtZrkJhYjXjNqtcv34o43Q= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Gqb3sqydMMVuK03jswhm4QRxA8RoRmD4278guSGWRVWPY+xBdbSQdT9Aw6K93SN7Qthot063dnkqnXJMX8Cy+9IXR9RKChhNnBq7JHS72IPbbvFyp3zEqwaV498nzt4VqCKvpwqL4S6zWvjaBZ2iOwwbqaRNFcX8UL8OZ056DV4IAWcLSp/2zX6/N1v+X6MK+kAo2R1LOmnCCdPtO1P948b85cPWJ0mRBIywyacJY1/H0B+38naY5kC2gfDHynmRhLpP7J2d1OI1zDR7sl1wDmAYKUeMb9mlhZKFUbefMIIOkQCC7ha+NKqYMf60cFd/R248ocS47Hk5cTmWtnJ1mUv9ioB4BqkiaMXSouXGts8FugyNic4B0+HJpvqZkKNs39riCfpZ40ZxUYRdnxZns247XJSO6rJkYLK3+ws+yHnTwqlv9sBRV8lNUpHT7RqIbC/qj31mXshhPgnU3vplpNgwZs/zxy2NAE142nrM9mvXN0F2zFnNRnvqK7JYxt+/gzykIy+/eoXhoZOxvRDOa3r0eP5xPX1SYoUl1dqTRJs7Zpnbcy6IC2mKKmLmn1bvQztGu+lsC2dvcsItKSsjNWHZfNYSn0xMrpLMAk+50XXTF1q53LQjhcZU72y0050EL9+ff8LhjiKpIcBTne3coQYgl3xBpZFVzSeYxkRCqP6sQ2mqbDNUbSpDkyDml24VY0eFsnatYHC2ouRhiA/5Kfa7ji2n0aQqtDPMJu3se2PLNXjzquKXJAd990y62eqw//HeGq547tbwkiLphurG9w== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ff0e0ef-0a22-441b-2117-08dac84ddd16 X-MS-Exchange-CrossTenant-AuthSource: MWHPR10MB1407.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 03:43:19.5003 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KE/r8lt3o1pui0B+WADwh9lVwjJjietYuEGv375SqhNgo4/X0k6yViQHOQelC59ZG8o6f80as5sAxRD0gNNv6xVRm+OQGhmZ0s8hR/AyWPc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4843 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-16_03,2022-11-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211170024 X-Proofpoint-GUID: 9VuRnd1fCS13VuAkOutC65n6BnyOv6k6 X-Proofpoint-ORIG-GUID: 9VuRnd1fCS13VuAkOutC65n6BnyOv6k6 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SCC_10_SHORT_WORD_LINES, SCC_20_SHORT_WORD_LINES, SCC_5_SHORT_WORD_LINES, SPF_HELO_NONE, 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: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Guillermo E. Martinez via Libabigail" From: "Guillermo E. Martinez" Reply-To: "Guillermo E. Martinez" Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" When comparing IR generated with DWARF and CTF fron-ends the report of different shows changes in the `alignment-in-bits' ABI XML propery: 1 Changed variable: [C] 'int a' was changed at test-abi.c:8:1: type of variable changed: type size hasn't changed type alignment changed from 32 to 0 So, CTF set the alignment to `0' to base types, function types and struct types similarly as DWARF front-end does. * src/abg-ctf-reader.cc (process_ctf_base_type) (process_ctf_function_type, process_ctf_struct_type): Adjust `align_in_bits' argument to `0'. * tests/data/test-diff-pkg-ctf/dirpkg-3-report-1.txt: Adjust test. * tests/data/test-diff-pkg-ctf/dirpkg-3-report-2.txt: Likewise. * tests/data/test-diff-pkg-ctf/gmp-6.x.x86_64-report-0.txt: Likewise. * tests/data/test-read-ctf/PR27700/test-PR27700.abi: Likewise. * tests/data/test-read-ctf/test-PR26568-1.o.abi: Likewise. * tests/data/test-read-ctf/test-PR26568-2.o.abi: Likewise. * tests/data/test-read-ctf/test-ambiguous-struct-A.o.hash.abi: Likewise. * tests/data/test-read-ctf/test-ambiguous-struct-B.o.hash.abi: Likewise. * tests/data/test-read-ctf/test-anonymous-fields.o.abi: Likewise. * tests/data/test-read-ctf/test-array-of-pointers.abi: Likewise. * tests/data/test-read-ctf/test-callback.abi: Likewise. * tests/data/test-read-ctf/test-callback2.abi: Likewise. * tests/data/test-read-ctf/test-conflicting-type-syms-a.o.hash.abi: Likewise. * tests/data/test-read-ctf/test-conflicting-type-syms-b.o.hash.abi: Likewise. * tests/data/test-read-ctf/test-dynamic-array.o.abi: Likewise. * tests/data/test-read-ctf/test-fallback.abi: Likewise. * tests/data/test-read-ctf/test-forward-type-decl.abi: Likewise. * tests/data/test-read-ctf/test-functions-declaration.abi: Likewise. * tests/data/test-read-ctf/test-linux-module.abi: Likewise. * tests/data/test-read-ctf/test-linux-module.abi: Likewise. * tests/data/test-read-ctf/test-list-struct.abi: Likewise. * tests/data/test-read-ctf/test0.abi: Likewise. * tests/data/test-read-ctf/test0.hash.abi: Likewise. * tests/data/test-read-ctf/test1.so.abi: Likewise. * tests/data/test-read-ctf/test1.so.hash.abi: Likewise. * tests/data/test-read-ctf/test2.so.abi: Likewise. * tests/data/test-read-ctf/test2.so.hash.abi: Likewise. * tests/data/test-read-ctf/test3.so.abi: Likewise. * tests/data/test-read-ctf/test3.so.hash.abi: Likewise. * tests/data/test-read-ctf/test4.so.abi: Likewise. * tests/data/test-read-ctf/test4.so.hash.abi: Likewise. * tests/data/test-read-ctf/test5.o.abi: Likewise. * tests/data/test-read-ctf/test7.o.abi: Likewise. * tests/data/test-read-ctf/test8.o.abi: Likewise. * tests/data/test-read-ctf/test9.o.abi: Likewise. Signed-off-by: Guillermo E. Martinez Signed-off-by: Guillermo E. Martinez Signed-off-by: Dodji Seketeli --- src/abg-ctf-reader.cc | 7 +++--- .../test-diff-pkg-ctf/dirpkg-3-report-1.txt | 1 - .../test-diff-pkg-ctf/dirpkg-3-report-2.txt | 1 - .../gmp-6.x.x86_64-report-0.txt | 1 + .../test-read-ctf/PR27700/test-PR27700.abi | 2 +- tests/data/test-read-ctf/test-PR26568-1.o.abi | 12 +++++----- tests/data/test-read-ctf/test-PR26568-2.o.abi | 10 ++++---- .../test-ambiguous-struct-A.o.hash.abi | 10 ++++---- .../test-ambiguous-struct-B.o.hash.abi | 6 ++--- .../test-read-ctf/test-anonymous-fields.o.abi | 10 ++++---- .../test-read-ctf/test-array-of-pointers.abi | 10 ++++---- tests/data/test-read-ctf/test-callback.abi | 8 +++---- tests/data/test-read-ctf/test-callback2.abi | 6 ++--- .../test-conflicting-type-syms-a.o.hash.abi | 2 +- .../test-conflicting-type-syms-b.o.hash.abi | 2 +- .../test-read-ctf/test-dynamic-array.o.abi | 10 ++++---- tests/data/test-read-ctf/test-fallback.abi | 2 +- .../test-read-ctf/test-forward-type-decl.abi | 6 ++--- .../test-functions-declaration.abi | 10 ++++---- .../data/test-read-ctf/test-linux-module.abi | 18 +++++++------- tests/data/test-read-ctf/test-list-struct.abi | 4 ++-- tests/data/test-read-ctf/test0.abi | 24 +++++++++---------- tests/data/test-read-ctf/test0.hash.abi | 24 +++++++++---------- tests/data/test-read-ctf/test1.so.abi | 4 ++-- tests/data/test-read-ctf/test1.so.hash.abi | 4 ++-- tests/data/test-read-ctf/test2.so.abi | 8 +++---- tests/data/test-read-ctf/test2.so.hash.abi | 8 +++---- tests/data/test-read-ctf/test3.so.abi | 2 +- tests/data/test-read-ctf/test3.so.hash.abi | 2 +- tests/data/test-read-ctf/test4.so.abi | 6 ++--- tests/data/test-read-ctf/test4.so.hash.abi | 6 ++--- tests/data/test-read-ctf/test5.o.abi | 18 +++++++------- tests/data/test-read-ctf/test7.o.abi | 10 ++++---- tests/data/test-read-ctf/test8.o.abi | 2 +- tests/data/test-read-ctf/test9.o.abi | 20 ++++++++-------- 35 files changed, 137 insertions(+), 139 deletions(-) diff --git a/src/abg-ctf-reader.cc b/src/abg-ctf-reader.cc index 9950de57..9c41edf4 100644 --- a/src/abg-ctf-reader.cc +++ b/src/abg-ctf-reader.cc @@ -788,7 +788,6 @@ process_ctf_base_type(reader *rdr, translation_unit_sptr tunit = rdr->cur_transl_unit(); type_decl_sptr result; - ssize_t type_alignment = ctf_type_align(ctf_dictionary, ctf_type); const char *type_name = ctf_type_name_raw(ctf_dictionary, ctf_type); /* Get the type encoding and extract some useful properties of @@ -827,7 +826,7 @@ process_ctf_base_type(reader *rdr, result.reset(new type_decl(rdr->env(), type_name, type_encoding.cte_bits, - type_alignment * 8 /* in bits */, + /*alignment=*/0, location(), type_name /* mangled_name */)); @@ -936,7 +935,7 @@ process_ctf_function_type(reader *rdr, result.reset(new function_type(ret_type, function_parms, tunit->get_address_size(), - ctf_type_align(ctf_dictionary, ctf_type))); + /*alignment=*/0)); if (result) { @@ -1095,7 +1094,7 @@ process_ctf_struct_type(reader *rdr, result.reset(new class_decl(rdr->env(), struct_type_name, ctf_type_size(ctf_dictionary, ctf_type) * 8, - ctf_type_align(ctf_dictionary, ctf_type) * 8, + /*alignment=*/0, true /* is_struct */, location(), decl_base::VISIBILITY_DEFAULT, diff --git a/tests/data/test-diff-pkg-ctf/dirpkg-3-report-1.txt b/tests/data/test-diff-pkg-ctf/dirpkg-3-report-1.txt index 4938d221..aa1d7732 100644 --- a/tests/data/test-diff-pkg-ctf/dirpkg-3-report-1.txt +++ b/tests/data/test-diff-pkg-ctf/dirpkg-3-report-1.txt @@ -8,7 +8,6 @@ parameter 1 of type 'S1*' has sub-type changes: in pointed to type 'struct S1': type size changed from 0 to 32 (in bits) - type alignment changed from 0 to 32 1 data member insertion: 'int mem2', at offset 0 (in bits) diff --git a/tests/data/test-diff-pkg-ctf/dirpkg-3-report-2.txt b/tests/data/test-diff-pkg-ctf/dirpkg-3-report-2.txt index 4938d221..aa1d7732 100644 --- a/tests/data/test-diff-pkg-ctf/dirpkg-3-report-2.txt +++ b/tests/data/test-diff-pkg-ctf/dirpkg-3-report-2.txt @@ -8,7 +8,6 @@ parameter 1 of type 'S1*' has sub-type changes: in pointed to type 'struct S1': type size changed from 0 to 32 (in bits) - type alignment changed from 0 to 32 1 data member insertion: 'int mem2', at offset 0 (in bits) diff --git a/tests/data/test-diff-pkg-ctf/gmp-6.x.x86_64-report-0.txt b/tests/data/test-diff-pkg-ctf/gmp-6.x.x86_64-report-0.txt index d3915f14..171d6490 100644 --- a/tests/data/test-diff-pkg-ctf/gmp-6.x.x86_64-report-0.txt +++ b/tests/data/test-diff-pkg-ctf/gmp-6.x.x86_64-report-0.txt @@ -133,6 +133,7 @@ underlying type 'const mp_limb_t*' changed: entity changed from 'const mp_limb_t*' to 'unsigned long int' type size hasn't changed + type alignment changed from 64 to 0 parameter 2 of type 'typedef mp_size_t' changed: typedef name changed from mp_size_t to mp_limb_t underlying type 'long int' changed: diff --git a/tests/data/test-read-ctf/PR27700/test-PR27700.abi b/tests/data/test-read-ctf/PR27700/test-PR27700.abi index fe3a897d..4f34eb8a 100644 --- a/tests/data/test-read-ctf/PR27700/test-PR27700.abi +++ b/tests/data/test-read-ctf/PR27700/test-PR27700.abi @@ -12,7 +12,7 @@ - + diff --git a/tests/data/test-read-ctf/test-PR26568-1.o.abi b/tests/data/test-read-ctf/test-PR26568-1.o.abi index 7df180d4..60017457 100644 --- a/tests/data/test-read-ctf/test-PR26568-1.o.abi +++ b/tests/data/test-read-ctf/test-PR26568-1.o.abi @@ -3,19 +3,19 @@ - - - + + + - + - + @@ -29,7 +29,7 @@ - + diff --git a/tests/data/test-read-ctf/test-PR26568-2.o.abi b/tests/data/test-read-ctf/test-PR26568-2.o.abi index 44f72263..d038316a 100644 --- a/tests/data/test-read-ctf/test-PR26568-2.o.abi +++ b/tests/data/test-read-ctf/test-PR26568-2.o.abi @@ -3,14 +3,14 @@ - - - + + + - + @@ -24,7 +24,7 @@ - + diff --git a/tests/data/test-read-ctf/test-ambiguous-struct-A.o.hash.abi b/tests/data/test-read-ctf/test-ambiguous-struct-A.o.hash.abi index 91ddf181..42ce36de 100644 --- a/tests/data/test-read-ctf/test-ambiguous-struct-A.o.hash.abi +++ b/tests/data/test-read-ctf/test-ambiguous-struct-A.o.hash.abi @@ -3,11 +3,11 @@ - + - - + + @@ -21,13 +21,13 @@ - + - + diff --git a/tests/data/test-read-ctf/test-ambiguous-struct-B.o.hash.abi b/tests/data/test-read-ctf/test-ambiguous-struct-B.o.hash.abi index cba10afd..351483de 100644 --- a/tests/data/test-read-ctf/test-ambiguous-struct-B.o.hash.abi +++ b/tests/data/test-read-ctf/test-ambiguous-struct-B.o.hash.abi @@ -3,8 +3,8 @@ - - + + @@ -15,7 +15,7 @@ - + diff --git a/tests/data/test-read-ctf/test-anonymous-fields.o.abi b/tests/data/test-read-ctf/test-anonymous-fields.o.abi index 2df54c3b..987daa57 100644 --- a/tests/data/test-read-ctf/test-anonymous-fields.o.abi +++ b/tests/data/test-read-ctf/test-anonymous-fields.o.abi @@ -3,18 +3,18 @@ - - + + - + - + @@ -27,7 +27,7 @@ - + diff --git a/tests/data/test-read-ctf/test-array-of-pointers.abi b/tests/data/test-read-ctf/test-array-of-pointers.abi index 47135315..c521bbec 100644 --- a/tests/data/test-read-ctf/test-array-of-pointers.abi +++ b/tests/data/test-read-ctf/test-array-of-pointers.abi @@ -6,27 +6,27 @@ - + - + - + - + - + diff --git a/tests/data/test-read-ctf/test-callback.abi b/tests/data/test-read-ctf/test-callback.abi index 7f9b6c5f..3c90e737 100644 --- a/tests/data/test-read-ctf/test-callback.abi +++ b/tests/data/test-read-ctf/test-callback.abi @@ -4,12 +4,12 @@ - - - + + + - + diff --git a/tests/data/test-read-ctf/test-callback2.abi b/tests/data/test-read-ctf/test-callback2.abi index c2ffdb18..87b43d06 100644 --- a/tests/data/test-read-ctf/test-callback2.abi +++ b/tests/data/test-read-ctf/test-callback2.abi @@ -3,8 +3,8 @@ - - + + @@ -12,7 +12,7 @@ - + diff --git a/tests/data/test-read-ctf/test-conflicting-type-syms-a.o.hash.abi b/tests/data/test-read-ctf/test-conflicting-type-syms-a.o.hash.abi index 85e780a9..79079b04 100644 --- a/tests/data/test-read-ctf/test-conflicting-type-syms-a.o.hash.abi +++ b/tests/data/test-read-ctf/test-conflicting-type-syms-a.o.hash.abi @@ -4,7 +4,7 @@ - + diff --git a/tests/data/test-read-ctf/test-conflicting-type-syms-b.o.hash.abi b/tests/data/test-read-ctf/test-conflicting-type-syms-b.o.hash.abi index 400606dd..74b25d36 100644 --- a/tests/data/test-read-ctf/test-conflicting-type-syms-b.o.hash.abi +++ b/tests/data/test-read-ctf/test-conflicting-type-syms-b.o.hash.abi @@ -4,7 +4,7 @@ - + diff --git a/tests/data/test-read-ctf/test-dynamic-array.o.abi b/tests/data/test-read-ctf/test-dynamic-array.o.abi index a9849d49..a8978c0c 100644 --- a/tests/data/test-read-ctf/test-dynamic-array.o.abi +++ b/tests/data/test-read-ctf/test-dynamic-array.o.abi @@ -3,11 +3,11 @@ - - + + - + @@ -18,10 +18,10 @@ - + - + diff --git a/tests/data/test-read-ctf/test-fallback.abi b/tests/data/test-read-ctf/test-fallback.abi index e7d30594..9f09cd56 100644 --- a/tests/data/test-read-ctf/test-fallback.abi +++ b/tests/data/test-read-ctf/test-fallback.abi @@ -3,7 +3,7 @@ - + diff --git a/tests/data/test-read-ctf/test-forward-type-decl.abi b/tests/data/test-read-ctf/test-forward-type-decl.abi index 026e7d32..c239187b 100644 --- a/tests/data/test-read-ctf/test-forward-type-decl.abi +++ b/tests/data/test-read-ctf/test-forward-type-decl.abi @@ -3,7 +3,7 @@ - + @@ -11,12 +11,12 @@ - + - + diff --git a/tests/data/test-read-ctf/test-functions-declaration.abi b/tests/data/test-read-ctf/test-functions-declaration.abi index dd8516fd..193221e4 100644 --- a/tests/data/test-read-ctf/test-functions-declaration.abi +++ b/tests/data/test-read-ctf/test-functions-declaration.abi @@ -4,19 +4,19 @@ - - + + - + - + - + diff --git a/tests/data/test-read-ctf/test-linux-module.abi b/tests/data/test-read-ctf/test-linux-module.abi index e8081f16..933b9f82 100644 --- a/tests/data/test-read-ctf/test-linux-module.abi +++ b/tests/data/test-read-ctf/test-linux-module.abi @@ -7,8 +7,8 @@ - - + + @@ -16,17 +16,17 @@ - + - + - + @@ -50,13 +50,13 @@ - - + + - + - + diff --git a/tests/data/test-read-ctf/test-list-struct.abi b/tests/data/test-read-ctf/test-list-struct.abi index ecd4d08b..3fdc6aec 100644 --- a/tests/data/test-read-ctf/test-list-struct.abi +++ b/tests/data/test-read-ctf/test-list-struct.abi @@ -4,8 +4,8 @@ - - + + diff --git a/tests/data/test-read-ctf/test0.abi b/tests/data/test-read-ctf/test0.abi index 2129de41..05430067 100644 --- a/tests/data/test-read-ctf/test0.abi +++ b/tests/data/test-read-ctf/test0.abi @@ -20,21 +20,21 @@ - - - - - + + + + + - - - + + + - + @@ -42,7 +42,7 @@ - + @@ -53,11 +53,11 @@ - + - + diff --git a/tests/data/test-read-ctf/test0.hash.abi b/tests/data/test-read-ctf/test0.hash.abi index e98c97db..4aa9a93c 100644 --- a/tests/data/test-read-ctf/test0.hash.abi +++ b/tests/data/test-read-ctf/test0.hash.abi @@ -20,21 +20,21 @@ - - - - - + + + + + - - - + + + - + @@ -42,7 +42,7 @@ - + @@ -53,11 +53,11 @@ - + - + diff --git a/tests/data/test-read-ctf/test1.so.abi b/tests/data/test-read-ctf/test1.so.abi index 4d0895a3..822b57a5 100644 --- a/tests/data/test-read-ctf/test1.so.abi +++ b/tests/data/test-read-ctf/test1.so.abi @@ -12,7 +12,7 @@ - + @@ -21,7 +21,7 @@ - + diff --git a/tests/data/test-read-ctf/test1.so.hash.abi b/tests/data/test-read-ctf/test1.so.hash.abi index 89bbb528..b3ace158 100644 --- a/tests/data/test-read-ctf/test1.so.hash.abi +++ b/tests/data/test-read-ctf/test1.so.hash.abi @@ -12,7 +12,7 @@ - + @@ -21,7 +21,7 @@ - + diff --git a/tests/data/test-read-ctf/test2.so.abi b/tests/data/test-read-ctf/test2.so.abi index 53001972..f2fb069d 100644 --- a/tests/data/test-read-ctf/test2.so.abi +++ b/tests/data/test-read-ctf/test2.so.abi @@ -7,12 +7,12 @@ - + - + @@ -23,11 +23,11 @@ - + - + diff --git a/tests/data/test-read-ctf/test2.so.hash.abi b/tests/data/test-read-ctf/test2.so.hash.abi index 84fcaa96..1efd533a 100644 --- a/tests/data/test-read-ctf/test2.so.hash.abi +++ b/tests/data/test-read-ctf/test2.so.hash.abi @@ -7,12 +7,12 @@ - + - + @@ -23,11 +23,11 @@ - + - + diff --git a/tests/data/test-read-ctf/test3.so.abi b/tests/data/test-read-ctf/test3.so.abi index 25fe7685..8e2492f3 100644 --- a/tests/data/test-read-ctf/test3.so.abi +++ b/tests/data/test-read-ctf/test3.so.abi @@ -11,7 +11,7 @@ - + diff --git a/tests/data/test-read-ctf/test3.so.hash.abi b/tests/data/test-read-ctf/test3.so.hash.abi index 07dd9601..f991d33a 100644 --- a/tests/data/test-read-ctf/test3.so.hash.abi +++ b/tests/data/test-read-ctf/test3.so.hash.abi @@ -11,7 +11,7 @@ - + diff --git a/tests/data/test-read-ctf/test4.so.abi b/tests/data/test-read-ctf/test4.so.abi index 21241d30..9f4e9255 100644 --- a/tests/data/test-read-ctf/test4.so.abi +++ b/tests/data/test-read-ctf/test4.so.abi @@ -6,14 +6,14 @@ - - + + - + diff --git a/tests/data/test-read-ctf/test4.so.hash.abi b/tests/data/test-read-ctf/test4.so.hash.abi index 40ab7069..1e952c75 100644 --- a/tests/data/test-read-ctf/test4.so.hash.abi +++ b/tests/data/test-read-ctf/test4.so.hash.abi @@ -6,14 +6,14 @@ - - + + - + diff --git a/tests/data/test-read-ctf/test5.o.abi b/tests/data/test-read-ctf/test5.o.abi index 84eb34d7..6d72d7ab 100644 --- a/tests/data/test-read-ctf/test5.o.abi +++ b/tests/data/test-read-ctf/test5.o.abi @@ -8,39 +8,39 @@ - + - - - + + + - + - + - + - + - + diff --git a/tests/data/test-read-ctf/test7.o.abi b/tests/data/test-read-ctf/test7.o.abi index 85468e11..65371cf5 100644 --- a/tests/data/test-read-ctf/test7.o.abi +++ b/tests/data/test-read-ctf/test7.o.abi @@ -3,8 +3,8 @@ - - + + @@ -18,16 +18,16 @@ - + - + - + diff --git a/tests/data/test-read-ctf/test8.o.abi b/tests/data/test-read-ctf/test8.o.abi index b6996c29..430bc128 100644 --- a/tests/data/test-read-ctf/test8.o.abi +++ b/tests/data/test-read-ctf/test8.o.abi @@ -4,7 +4,7 @@ - + diff --git a/tests/data/test-read-ctf/test9.o.abi b/tests/data/test-read-ctf/test9.o.abi index c983d17f..331bfc70 100644 --- a/tests/data/test-read-ctf/test9.o.abi +++ b/tests/data/test-read-ctf/test9.o.abi @@ -3,31 +3,31 @@ - + - + - - + + - + - + - + - + @@ -44,12 +44,12 @@ - + - +