From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2092.outbound.protection.outlook.com [40.107.94.92]) by sourceware.org (Postfix) with ESMTPS id E8BB7386EC3C for ; Wed, 2 Sep 2020 20:18:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E8BB7386EC3C ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NAB7a7B2ddIfZWE0s/W7Zp6ZN+S32zUwnBcuHucPn3+srFGEGaSqPWN8DPPzBIf+N5YAIk9TZ/rkduV+C0PewoehGrutawlxpK1tokWq2mG1atrhM+MgDAqOz9KUtvsTsKBhePI5t8RgzebgHNcw8AKTKJIZEsMAcYts5rdBl4zb2qd80UHAuhpURZCCT7BnVHUP3HJWOvB9dPi7aTYSi3tMBcG1PbXtRZyveFeE2ibgT2Q7cwykU8McdXBN530wuhV4RxakX3YG0BNm0hs/ldV7hPOn9hE1p6QbLBMCp/h2g+5QFPzOirdm672ADdKYkO9VX9T6QqMK9VNy3tAmyw== 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-SenderADCheck; bh=uoVZGF4qfb+7m7B9HxGPO5B1ww7NjEKhp8iu3diqPMc=; b=aq9qSQ8JmPozpN4WCcCRi59nwcLKFqKi1i77zRXH911dD1beMT6PkPbCVMsXTkkL6m1E0R2TZD3q8X3ng4b+c2aT1oK3AvDQl9TqX3cK9ybQfzrWo6dZp6dp65fuaOR2oUs4heGza6nHG00+1KEDGT6ZPd7rcxY2Xpbo8xv18H7N9uyqCApfPpA30W9x5hgfhZQExE4q8U0QTtMem9FZUTGXEt7LyNpdcSTS0pvns0sUxMpaD909yrR6eYAVPRENV8bcqdHnXxYPnkQJrlluB+77za4tsGeDLD+SEGMMbqGgCWZ9kN7ouWs+9e7zpJU8BOOIkqGZ65DIGp4pjiZnXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amperecomputing.com; dmarc=pass action=none header.from=amperecomputing.com; dkim=pass header.d=amperecomputing.com; arc=none Received: from BYAPR01MB5464.prod.exchangelabs.com (2603:10b6:a03:129::28) by BYAPR01MB4056.prod.exchangelabs.com (2603:10b6:a03:5c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.25; Wed, 2 Sep 2020 20:18:34 +0000 Received: from BYAPR01MB5464.prod.exchangelabs.com ([fe80::44db:c140:1b6d:b023]) by BYAPR01MB5464.prod.exchangelabs.com ([fe80::44db:c140:1b6d:b023%7]) with mapi id 15.20.3348.015; Wed, 2 Sep 2020 20:18:34 +0000 From: Gary Oblock To: "gcc@gcc.gnu.org" Subject: Types are confused in inlining Thread-Topic: Types are confused in inlining Thread-Index: AQHWgWNvd1kCdTU8L0isvrolUKURSA== Date: Wed, 2 Sep 2020 20:18:34 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [69.181.250.88] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 52c26c00-026a-487c-f8af-08d84f7d5e61 x-ms-traffictypediagnostic: BYAPR01MB4056: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BzI20rT2vkUCVsNq79zUpezraccbkDObnqxSICTQTYUTUemLQayuHxgHb/ZYWU3asijd06SoWwYvf9UtVetTQcV+NHIYlzSnD0LrcAvs21A7vDSq3vWnd1rt+QLq4hBBpQ4DgaNbHlfq9Cw1aVYyjTxV3olM5JhVnn3YeIOZtaC9exP0Fw0kO7vXJPCsv6VHRc27Jfs4Xy/iFsLJHCPNgKn1pcPRiMqBXUVxbe4R+4qWFB6i+KO/U/YWF321Ga+AxMMBeJhnrUI5MHppHFrOxKrIxHCY1/6bnyZte0rxnLpZTfu46hqfFQbAY6mrtJr7oa+ufHmKw+fcOWtRO0FGbw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR01MB5464.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39840400004)(136003)(396003)(376002)(366004)(86362001)(7696005)(8676002)(66476007)(9686003)(64756008)(186003)(5660300002)(66446008)(55016002)(26005)(6506007)(52536014)(66946007)(6916009)(76116006)(66556008)(8936002)(19627405001)(2906002)(478600001)(33656002)(316002)(71200400001)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: yuNBfnYvlYgMgmgH7QMVzVherxdlrdqJyZlcvycc7S+5+o+Cii40ZAgQ9nAT/J/TtLVtua/zf1UFYuOQka3cKkdky3ovZrbIBa8VMsavujZKqKmku/QC4/dC54xhVGOhgk9NHY4ucxYTcYWnAkDAcA490DLVyQjUC+xYR3dtKiHkFdsmXKQWY+MGX4v7FGCUAg0P+IID+2kh0EqOFyNyz0G1BGlEJYdv5HGSThbRt0mj/veKefjSBRioNeqkK3SiG7n07xac4AK4U/gEkvJrXq9VBC6gpXt1IaKtarX4Nrm0U5uuSNrhi8VygFNt7KN8/3/WQAdFC3uU25989mtxbZzIqSZeg7VtkBo0i93DiP74j+wzCDEQA3/6ZgLW1obAmJRa0j4hA4yn8KIF8buxKFJKuxcA1/qvBpkeUyF0vdkD6yKDfi1hLVL0nxkaaIEx6FWDyL5SPAixqtTR9QvzyK8BC6x33X0KATbpsdn/vll3KNiTNeNGpaqdj2NzLpmNM5S5rquaLAox9GKb2nJ/xQplFtd2Z3HDN3908lxvoDo7DScsCFDRS6ObbBulGOovShSWhGoTvPAmadwcDXPU2cSGbJ8GPeXH8R6mhEk8SPZhB6opRwh/KIpVspumzbbgYJpwzMZgJAkxPhk69YgoHA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: amperecomputing.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR01MB5464.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52c26c00-026a-487c-f8af-08d84f7d5e61 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2020 20:18:34.3251 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fDHOSN7kTY+J07K6LLTWXPiQjKqlPEb3wv5ZPkUWsELWOuYndWcJnmOVY5riylNT96p77Q1UjXNtCPrfMRkFw09KqdMDdtsG0gn87flyrXs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR01MB4056 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, TXREP, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 20:18:40 -0000 I'm not accusing inlining of having problems but I really need to understand what's going on in this situation so I can fix my optimization. The error given is: main.c: In function =91main=92: main.c:5:1: error: non-trivial conversion in =91ssa_name=92 5 | main(void) | ^ struct type_t * unsigned long _101 =3D dedangled_97; during GIMPLE pass: fixup_cfg etc. etc. I put a conditional breakpoint in gdb where both _101 and dedangled_97 were created and low and behold they were both set to "unsigned long". Does anybody have a clue as to how "_101" got changed from "unsigned long" to "struct type_t *"? Note, the later is a meaningful type in my program. I'm trying to replace all instances of the former as part of structure reorganization optimization.) I should mention that this GIMPLE stmt is the one that moves the value computed in an inlined function into the body of code where the inling took place. Thanks, Gary Oblock CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is = for the sole use of the intended recipient(s) and contains information that= is confidential and proprietary to Ampere Computing or its subsidiaries. I= t is to be used solely for the purpose of furthering the parties' business = relationship. Any unauthorized review, copying, or distribution of this ema= il (or any attachments thereto) is strictly prohibited. If you are not the = intended recipient, please contact the sender immediately and permanently d= elete the original and any copies of this email and any attachments thereto= .