From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80080.outbound.protection.outlook.com [40.107.8.80]) by sourceware.org (Postfix) with ESMTPS id 7DF63386103C for ; Wed, 14 Jul 2021 12:47:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7DF63386103C Received: from AM7PR03CA0027.eurprd03.prod.outlook.com (2603:10a6:20b:130::37) by DBBPR08MB4458.eurprd08.prod.outlook.com (2603:10a6:10:c8::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.24; Wed, 14 Jul 2021 12:47:42 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::43) by AM7PR03CA0027.outlook.office365.com (2603:10a6:20b:130::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Wed, 14 Jul 2021 12:47:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;gcc.gnu.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Wed, 14 Jul 2021 12:47:40 +0000 Received: ("Tessian outbound 57330d0f8f60:v99"); Wed, 14 Jul 2021 12:47:40 +0000 X-CR-MTA-TID: 64aa7808 Received: from cb610673921a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 54351DA5-92F4-46AF-83D4-836148328399.1; Wed, 14 Jul 2021 12:47:33 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cb610673921a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 14 Jul 2021 12:47:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IEedks4r+BhF71CK0YVHipKrtbdFlE3/5E3PXK/K1TSkWC0yZcjj94C6G7IVM9lHSFLcM0QSZEfz4mknWd4mp+4kIh3UO2A4+dAuP0y+rSRVaFrwObGfOA7i2NSCDaXmFcylBzAAZQ9zXotGqyqHk/V5pxdLzdIzoJRde2eIKp3qrTvL8D6TvHljjBhto5QUKMKFmc4EBEunXODJCntI84gwP2VhGZSY3piUWICI47HMQCi4l+LBnNSSFcacDPQLPK1sL9rwmy/Z0TYnx6xS1Cz/CvHk4S02c3PCDY14ossF8xSGFP66/VAnTAG5ASy7eLBXexedXv09H/kIpxkysg== 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=MYqTOYngcAg40RZg7j7GvAT3lAv0mbUO4wLabmWPuAg=; b=hUiH8xyeVH8RE5AI6hEMANMlwgwFWoKHzQP1p43h/JbsoO96SES6lVvmwhAdSvB61kHZ2Js4eZHuvHQWYrXEK+scZ0CPxYR+u8XL4eNpkKKWlbeOV5lVwj+B/+nxBPF31jXjX6HUH85HaNqBt0QBxgQ9Bw6uDfqd1Q1y1sMUJ8KQbcK51lrVofB1OYnh1VhiO99z2s5jmls3PcBsT2ILKTBnwSjU3nzPYvtoeGRNThT5JadryCQ74QpVNYVHFy9pNxQBvjRGR8+eh+lAiPVQK6Q2AUEqX/dII7oCPKr2VUhvV/T3aEBDuMgBBHl+4LrG+L6lru/drtmxe5wJtMqV1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by VE1PR08MB5597.eurprd08.prod.outlook.com (2603:10a6:800:1b3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.27; Wed, 14 Jul 2021 12:47:31 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::cdbb:a6b9:e814:19c7]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::cdbb:a6b9:e814:19c7%7]) with mapi id 15.20.4331.021; Wed, 14 Jul 2021 12:47:31 +0000 From: Tamar Christina To: Michael Matz , Bernd Edlinger CC: "gcc-patches@gcc.gnu.org" , Richard Biener Subject: RE: [PATCH] Generate gimple-match.c and generic-match.c earlier Thread-Topic: [PATCH] Generate gimple-match.c and generic-match.c earlier Thread-Index: AQHXU3v04Ie7G38ba0KLdcla8sTkAKr4frIAgAABxQCAAIYXgIBJrkEw Date: Wed, 14 Jul 2021 12:47:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 22D4BE1F37583340B595FFE2DC2F534B.0 x-checkrecipientchecked: true Authentication-Results-Original: suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 46d84fc1-9bc6-4d0d-14cb-08d946c59155 x-ms-traffictypediagnostic: VE1PR08MB5597:|DBBPR08MB4458: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: AtI3JjFtgkDI3+fvcapP/t2xALrA+tgpiQ4INw0bOwxbjwXTDiI4bxln5vQKKjpGyO1tPgUxHN/wVS7aVgZTSUhEXX52GgLgruhYUT5q06XdOrM7addG5z3Yaj141Q+Y6TwHF+lpDDOoM/5Hq0CgTy6hB4MQ3RkDeYdCV6yKLzKSyt8F1jpCbzXldivIPXRKUTCfB0GrQlvCJAFzik1NboQcM1rGhp3SP0dY9lThFLNrQznDV1Xe9z/4c6Nfu95TZSVHH2CIYrqG3CrQMuoBuiQUheyEJUmG784yvLCoofxR6E8HdWVVa5CUfI4ngrFcSjBCnTHvgxGGtXXkc/tEYPXj4ets1jc8xYMbwX7T/V7i41D3T8jxFxRGS0E3daA3zGtLuzBm2Ua/RaSgEHaZUXVcyXB6NuTbXuphv7Xo6fFJBOTLMzGOiauu4JMqZvnmS3+URzH4FoCWLq6GhXzZ8oEih+jaBZkII3so+wkOOtw4FlMnaLWgdrzwyUoZ+kyc5YbsUU7hytr8WiJabfUWWO3VnL4tzAD0d7oglGHFICtRtMj0gxImZmLmfFirKWPkvmLRBR3ZLHFKDmW79SL5BstZZXs8Tc8+wCr3sR4RWS1nS503j5bI72pXw/Qw0ud6RXy3CpU1So630ftJSkfhd/6UqULfKn0Fmzzq43252rwlHc1YjWIf/jZhXG1+Wu+HIYCe9/eXNq+R5cIkyt/err5Y0jd2iDFaqIlL0NZNhI4HmpSCd9K/iI3dEA9LCLzVe6b4OXhl1JODcdSPVhUrFnhpI+Ka82XKMWABXf+VnpLEX+7o0YH15GAx9UoJErRhb6BbONjr/gtb3fBUSrBjlZT/9YPPUgswNUHZPvBEaeY= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB5325.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(376002)(39850400004)(7696005)(110136005)(186003)(26005)(55016002)(5660300002)(9686003)(2906002)(53546011)(478600001)(52536014)(966005)(4326008)(6506007)(33656002)(86362001)(8676002)(66556008)(66446008)(71200400001)(66946007)(83380400001)(38100700002)(316002)(64756008)(122000001)(76116006)(54906003)(66476007)(8936002)(41533002)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?A2hTeGpHPDgJ+drnz+HsObV8pSUf82BwhknJbCrWHfH+lxXDDcqMsTzS2BfP?= =?us-ascii?Q?qzYF/6HQrpBWbn6aTmIgx8CUm+vrGxRw4rQY8d6J3hfikO3oDA+Rc1uTxCu8?= =?us-ascii?Q?x6cm76iALvNi5A4gB8HZPu9JPp9CGupQQGPn886zU43MFvWmkoonFXtEkqDt?= =?us-ascii?Q?fliVjPEWHnt/NSRVR5Xh7Mm8+BteBTaFja923QOU/Z8XrW3Yw0JQ4WD+CdcG?= =?us-ascii?Q?HICJMb4zfMdBqGQJF/fPmV1rn+3vjP8mY08hN2DxSY0uBUjOEGwSbYsnXZiO?= =?us-ascii?Q?+FPcPvLz2txcm+pyAqSUJde+nPiPfZFAxh+ZO2y8UwYTlbbWgbxnGkbiQPNP?= =?us-ascii?Q?9d6B+G0WWfsafFqPSElK3GpoA4Kpg/jT3dGEo+/h0xtgZiV0W0+cqBEt+ft3?= =?us-ascii?Q?0vvfHBGOyBrNl6HKw5nxdaP9vO2JVFNuYFLLg8olJVA+rKgWPQT8H1Xd+xR5?= =?us-ascii?Q?IpymmIf4TAhO7fFIP17+KT4y8eoWjR01y0D3DwFtLC5PaqA9LPMqEgbSuZnH?= =?us-ascii?Q?3ONK61DTXcM/t57CXFiQC3xakva7meyICd/UiYPmgo46HOznrmP5SO6rVY65?= =?us-ascii?Q?043j/pJnc4nA0I2jwyVvQRqOtO4ksDCOx4c+ovF20qTpadnTPk/2RLusCDg7?= =?us-ascii?Q?qMhTHBSDaf7DhWWL/nGlN5kiAs0jDKda7kF87RsRNnWClEV+1UN83ww3Ho3a?= =?us-ascii?Q?BqEc5FF06iogAGba+aDQLFUcUpXiM+p5/p8Snq+XaOdP/aEVZa/DVdUcHZpI?= =?us-ascii?Q?xvsaFi32dYrUXEa16Q08JW3OQYf3y1b9C8qj5P4TerT0r0YpmBmBT+hSs6+v?= =?us-ascii?Q?ZDdxkWp+I5fAVZIP2Z9AF0G6a1wapnXov2NjUgGrgkZ8sY4+ciAej9tEWtPV?= =?us-ascii?Q?DKE4YK6z/3sDqtISeobdjnyNEWxySb7eChrfqCd4T/FLTEx3ECAcD9FYzrOJ?= =?us-ascii?Q?QSRLKglNavxNA0zOCO+D1JF5GjsL+X0XIF9IuMlDJl8sOdooKaY6dOa7rm8/?= =?us-ascii?Q?EqZCGxlNidcaK9Dnfym4OHmNGhU1bCC08cJAiXI5oHYKBH45JaTqdW7ds+pt?= =?us-ascii?Q?EWkRdyyveoKGiqnVoi4MmdaokK+CeLPnjQPsOXeud5gCW9qBKDXJJdWXYO5Y?= =?us-ascii?Q?iEIWtyXIz93ZRLm5p1c6TSooaYyVxI0KfVKUYhDfCTEl39CNWe5vQe2QNGF6?= =?us-ascii?Q?nvg+79U+PoX7JvA1OBYjCg51F5igzgnA9+wdqi8KRgSSnVrM6nyHLxMimNEx?= =?us-ascii?Q?JetxLmuXWqbmTGO2Xfj6PPMcN14tEBPYk4hNG3TV5QTsfjw5YdmxqM5674QB?= =?us-ascii?Q?reUq+zYbeVLxFO67uruSZr7k?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5597 Original-Authentication-Results: suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 50d1c9b2-f830-4dbf-a9a8-08d946c58b5d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JA96bwA0IpeUasMttgz/X7xRGY38xZtX8pLHNXFQYKznsbG/igkY3WGO2arNWf+niUo705QV9Hkfu7r1oJpyzBygCvj71YMkpAC5MNidQ7DFg47JJmINsduwc3OJxqqkAwrSJIDB3IdvbT6bqpFt6pI38x7DctbKjJRQxcmMhv9EnMxG84tBzAprbjPGSWVvMyx4y7XFycr1//LiTFFvO+39KZ1HrJ3bV/VL+z+HchQMn54eRnvr3WYLPavMSZvTwMYqdpyCX8bYctDaIznk518mQ+LKCw5914JSjy2TAAcmKsnHCNovxYskegnetzuxVaY2UVYqt1aMj/fUlMFrSMXVWw3GnOylmRNkLgJleXpotQqOQOC5HoaRHHejOWDZiWBYj5OrdiIxL2GX/Hh+6O2vJXZjU2RQeaS/rGWGgtJLo8JO5JTprfwedNhPHHs+SxnGT/w3ScamzQGS0FMZW5Kmh4UfAWOz1Y082Cu3aaLepiR2Kh+krsQ8h9yDHD1u+JJAJz11kZiPmxipObTCebnOyukCY6iozVUYMsKUZd4enRFpiik6Qy1pahyQmXFf3k8/U4RjZhg+ttgj5al1fsmFpAkMHZoejpzYo5skqAa/BNNmNOURM4n9FekXnTR7wSuy82WMiz7Qcmy8tLmVasx9fQRBLysMQx2yOdBfHEpS6thLsZUwWn5iYiFaxos0meNvKsf4K0TEf30he8JtPEP4ypBm508cKPhuqcYORGsnjXd5LUOfziyuBHEKfIZS7+TVWjstyYL+ygLWIAC0nh8CVhZRZ9VWx7hdkE0E3D+wkXwHEbjTZYgHjKLiUu6gfZEaOa/2ciAL+1cAnqUfmRPKCItNLoJdZMde1RDmV3c= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(346002)(39850400004)(396003)(136003)(376002)(36840700001)(46966006)(81166007)(26005)(336012)(2906002)(107886003)(82310400003)(86362001)(4326008)(82740400003)(83380400001)(8676002)(356005)(5660300002)(54906003)(47076005)(33656002)(966005)(6506007)(316002)(53546011)(36860700001)(70586007)(45080400002)(9686003)(52536014)(186003)(7696005)(55016002)(70206006)(110136005)(8936002)(478600001)(41533002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2021 12:47:40.9889 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46d84fc1-9bc6-4d0d-14cb-08d946c59155 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4458 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2021 12:47:48 -0000 Hi, Ever since this commit=20 commit c9114f2804b91690e030383de15a24e0b738e856 Author: Bernd Edlinger Date: Fri May 28 06:27:27 2021 +0200 Various tools have been having trouble with cross compilation resulting in make[2]: *** No rule to make target '../build-x86_64-build_pc-linux-gnu/lib= cpp/libcpp.a', needed by 'build/genmatch'. (took a while to track down). I don't understand this part of the build sy= stem well enough to know how to fix this. It looks like `libcpp.a` has special handling for cross compilers which now= seems to be broken. I can't reproduce it with our normal cross compiler scripts. Which handles = the stages on its own, but e.g. https://github.com/crosstool-ng/crosstool-ng does reproduce the failure. Any ideas what's going on? Kind Regards, Tamar > -----Original Message----- > From: Gcc-patches On Behalf Of > Michael Matz > Sent: Friday, May 28, 2021 4:33 PM > To: Bernd Edlinger > Cc: gcc-patches@gcc.gnu.org; Richard Biener > Subject: Re: [PATCH] Generate gimple-match.c and generic-match.c earlier >=20 > Hello, >=20 > On Fri, 28 May 2021, Bernd Edlinger wrote: >=20 > > >> I was wondering, why gimple-match.c and generic-match.c are not > > >> built early but always last, which slows down parallel makes > > >> significantly. > > >> > > >> The reason seems to be that generated_files does not mention > > >> gimple-match.c and generic-match.c. > > >> > > >> This comment in Makefile.in says it all: > > >> > > >> $(ALL_HOST_OBJS) : | $(generated_files) > > >> > > >> So this patch adds gimple-match.c generic-match.c to generated_files= . > > >> > > >> > > >> Tested on x86_64-pc-linux-gnu. > > >> Is it OK for trunk? > > > > > > This should help for what I was complaining about in > > > https://gcc.gnu.org/pipermail/gcc/2021-May/235963.html . I build > > > with > > > -j24 and it was stalling on compiling gimple-match.c for me. > > > Looks like insn-attrtab.c is missed too; I saw genattrtab was running= last > too. > > > > > > > Yeah, probably insn-automata.c as well, sometimes it is picked up > > early sometimes not. maybe $(simple_generated_c) should be added to > > generated_files, but insn-attrtab.c is yet another exception. >=20 > You can't put files in there that are sometimes slow to generate (which i= nsn- > {attrtab,automata}.c are on some targets), as _everything_ then waits for > them to be created first. >=20 > Ideally there would be a way for gnumake to mark some targets as "ugh- > slow" and back-propagate this to all dependencies so that those are put i= n > front of the work queue in a parallel make. Alas, something like that ne= ver > came into existence :-/ (When order-only deps were introduced I got > excited, but then came to realize that that wasn't what was really needed= for > this case, a "weak" version of it would be required at least, or better y= et a > specific facility to impose a cost with a target) >=20 >=20 > Ciao, > Michael. >=20 > > > > > > Bernd. > > > > > Thanks, > > > Andrew > > > > > >> > > >> > > >> Thanks > > >> Bernd. > > >> > > >> > > >> 2021-05-28 Bernd Edlinger > > >> > > >> * Makefile.in (generated_files): Add gimple-match.c and > > >> generic-match.c > >