From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2052.outbound.protection.outlook.com [40.107.13.52]) by sourceware.org (Postfix) with ESMTPS id 5DF81385609A for ; Fri, 5 May 2023 15:22:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DF81385609A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6Uq1l+iNA/0eIbJoYGC618tZLat76sKjyB4hDP1XV0=; b=KT/nt/ELNEMPLNkDZUkTd7gqo0HjTGhfAxh24DkZd3mXYDiT0qoWPcwwcBE4YmL+ydnmzyjeqpCTCW+A0bNKPKvEtFy3u5PbFJD2leNCpYZ25CkrKUbof7ErH+SbEc1nex1tlErCNQGslNXNcLkJ66zHpJLU3ZIl0T/tYyAShxc= Received: from AS9PR06CA0693.eurprd06.prod.outlook.com (2603:10a6:20b:49f::9) by AS8PR08MB6597.eurprd08.prod.outlook.com (2603:10a6:20b:334::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27; Fri, 5 May 2023 15:22:21 +0000 Received: from AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49f:cafe::3e) by AS9PR06CA0693.outlook.office365.com (2603:10a6:20b:49f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 15:22:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass 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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT064.mail.protection.outlook.com (100.127.140.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27 via Frontend Transport; Fri, 5 May 2023 15:22:21 +0000 Received: ("Tessian outbound e13c2446394c:v136"); Fri, 05 May 2023 15:22:21 +0000 X-CR-MTA-TID: 64aa7808 Received: from 8cbf1e4dd1fd.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E6739AF0-80E4-4385-8A67-4D95D3B16C76.1; Fri, 05 May 2023 15:22:16 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8cbf1e4dd1fd.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 05 May 2023 15:22:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PQXiriCgvpiffXry4OQLpbOKb/SSM80D7W7un0f8yiqRkD5pmEExwws64k7G6JgzgUGIBRkSbsgSGvkVs9/EvheWFl+jaf1RJBvzlUkZ9BkBkL2nwP2rpbiDtw0GPhi+K3QfJ/G5bKBFMA9zzme5NQYbry6+1co6E5Q1N8TzEMKEyY1U/0N3hwB0qFazllZLlK4u/8o7QFYo8LiPLRVuTMCRzNNVDqlA3+G1hro0BhatWZNMeX9anwQ4jMWNS83X5boDhfTW72WqT3NpZoK/k/T4g9FX5mFOknfPBnybA854D9nJawfj180bfRYgEyaED+r2LOzVKxpgm/gJTZd+6A== 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=u6Uq1l+iNA/0eIbJoYGC618tZLat76sKjyB4hDP1XV0=; b=E6TeqUVNKOoGlJuidP/OUxoTyQpAqRHnkSS+3y/BhYjgYsSY059SsT6xdoyfia6cFZXk7L9mmkSlOfn7cSDipWt5ATF7RfGt3QZYrI1W4pUvRyWDWUwaP5Ka/HUPGYuK75pzW5kb29GJ7JjaqbNJcoWRGaCLtmTMh+8V8ogedkTkkQpZhh8xj4pCm9Sq2wsdRmlbeuWVyx54FkM7+hix5OYsnjnwYh/vEGWFrXJFbauNAqJ5zyPI7oBY7qHtGpO4mLXt7spodOlHoFlrL9NILo+Ej94aFHlv2jKoFlOtCloS+tUMU9s5nYQcX57BCi6B5mFxZiIg5stoU5JDIPwuqg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6Uq1l+iNA/0eIbJoYGC618tZLat76sKjyB4hDP1XV0=; b=KT/nt/ELNEMPLNkDZUkTd7gqo0HjTGhfAxh24DkZd3mXYDiT0qoWPcwwcBE4YmL+ydnmzyjeqpCTCW+A0bNKPKvEtFy3u5PbFJD2leNCpYZ25CkrKUbof7ErH+SbEc1nex1tlErCNQGslNXNcLkJ66zHpJLU3ZIl0T/tYyAShxc= Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by DB9PR08MB8507.eurprd08.prod.outlook.com (2603:10a6:10:3d4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Fri, 5 May 2023 15:22:14 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::82f2:dba0:1f9b:c8f]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::82f2:dba0:1f9b:c8f%3]) with mapi id 15.20.6363.021; Fri, 5 May 2023 15:22:14 +0000 From: Tamar Christina To: Jakub Jelinek , Jeff Law CC: David Edelsohn , GCC Patches Subject: RE: [PATCH 5/5] match.pd: Use splits in makefile and make configurable. Thread-Topic: [PATCH 5/5] match.pd: Use splits in makefile and make configurable. Thread-Index: AQHZf2KMKQCkVWJuB0yEVpYk8owtD69LxvMAgAADzwCAAABaMA== Date: Fri, 5 May 2023 15:22:11 +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: 9CF87C47F94EBB4A80C5D16F5C37FE42.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: VI1PR08MB5325:EE_|DB9PR08MB8507:EE_|AM7EUR03FT064:EE_|AS8PR08MB6597:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b7a9ad7-b12f-4883-539c-08db4d7c85cb x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0E20luhDw+fPSojd3orHeK+SvzLaLs3mPYDgaSbHvlKllftYvB8NLGzcOlLatnLe3zMbo0f+ASOLY7fcMNjwKBLaVRcR0m8u9crKzJ9fhdQ27m8eu/6caI/3EvGefdGMRGcq6wpy9W8zc493NlG02v0+Kzrf/Nn+9cXyAlty3W5w3sobf3m+dTsRKZGBIkkrCZ9pve31oRJTaUTykSCAE5DSxpq8VC+TRJs3heKBxJlJGHnzt9GU60D0UzNV9ruhQ8D/7vGTLjlsb8kfMX4GYurMBhX1gpDoXd03PWO7Y3WqgH85yWTQwArSJrR9HRm1quNxvk6YtqzHSBcnWWhAn82SY08TfY6C2cTi5GveW7e3UiZmwyvZXltaUdheXdILvsmNWmqKf2tHxPWed/+272hP8TEhGDGB48t6iuy7bZxldgy9VPQY0UDXkzIypWMgBOftCpT3I4spkp/k9yFIwe8IOlkokBX3zbxTIvXoJSoiVqrUNn7xZ53wpT7Mk6W4Q8EeriWleyq/7zKwTlQG2nlUO9pUig4JC1oDzJphvsIlKrbCW3JzM+vfge4rIh5TcpzQ/B5AHQK6r/uSxDWT+Q2DJkkWpfrN8Qig52BRsUrQKAkjPSVSn/5Z8RDELOHr 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:(13230028)(4636009)(136003)(376002)(346002)(396003)(366004)(39860400002)(451199021)(478600001)(122000001)(55016003)(52536014)(5660300002)(8676002)(8936002)(110136005)(54906003)(86362001)(6666004)(26005)(66946007)(4326008)(66556008)(64756008)(76116006)(83380400001)(66476007)(6506007)(66446008)(2906002)(316002)(38100700002)(53546011)(41300700001)(33656002)(186003)(9686003)(7696005)(71200400001)(38070700005);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8507 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 87744920-a3fa-4366-00d2-08db4d7c7f7c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0/fb2WVfYYAFgDUfVawViktInbzBxsOHLu68f0Nx0/uDAOW2oegbMhsCnU5EuCWlOJvUIBHy6pOfvZvUh5n3nG8ZGuZrvPOpbHYN3/SaMar0hXdCBCP8sAgTu9Hr0dOiBO3ZGBsG0OypzOk4yH58ZRJtkIFxfqjPaCJ+FxIW8Bgz5RP4yD4amptMRd+gQq5X84vtGM8mu+6MWbJkvScNKwZ90Txc6pGuHBmYlFLhCfh0ILmCN2YZlMq6FDr0orhVI1OwVn9n6TUst9wtPd2b7BICetOsqSurGWCyQKxuFIY6VnQf+Y8O7XU2t9WE+AmM341nA+541ZVuzbvHso3cyai6V/EisKRWPfqf4zLxLlJCGZrrW53dSS5ytpW42OThiQa5iecotqlsX1scbAxvUzl3pHypnX0mJlXJe8f6W0r+/R3em5Si0zdsIjQm3CV5IWloEA9AZULopUQZWXfRh0oNV1f212zcKkOxWDsRx3yyLGLRuU0p31WVubE7MY+OLLvrdMRRMbtxlh2v61eXhIhWq8+hgq27kxwwAUNLswXm9cfPjfq+bsi3rMpG+3XzdcptfjnDrg6TY/5r47kSVfSlWZdQCYwbNWWDdXWnndyTKU6gxJEajQhboeggfcUfxZBUU7h876Ww90e8XesmxCVoBx6aoGO72Rl9K83SL6DJjcbLgxNxeExrP9ClH3lyGIG0pXpCVffbEMD5E0YD3A== 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:(13230028)(4636009)(346002)(376002)(39860400002)(396003)(136003)(451199021)(40470700004)(46966006)(36840700001)(47076005)(83380400001)(40460700003)(186003)(336012)(2906002)(40480700001)(33656002)(86362001)(82310400005)(82740400003)(81166007)(356005)(36860700001)(55016003)(8676002)(8936002)(5660300002)(52536014)(4326008)(70586007)(41300700001)(70206006)(6666004)(7696005)(316002)(478600001)(54906003)(26005)(6506007)(9686003)(53546011)(110136005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 15:22:21.8410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b7a9ad7-b12f-4883-539c-08db4d7c85cb 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: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6597 X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Original Message----- > From: Jakub Jelinek > Sent: Friday, May 5, 2023 4:18 PM > To: Jeff Law > Cc: David Edelsohn ; Tamar Christina > ; GCC Patches > Subject: Re: [PATCH 5/5] match.pd: Use splits in makefile and make > configurable. >=20 > On Fri, May 05, 2023 at 09:04:16AM -0600, Jeff Law via Gcc-patches wrote: > > On 5/5/23 08:59, David Edelsohn via Gcc-patches wrote: > > > This patch has broken GCC bootstrap on AIX. It appears to rely > > > upon, or complain about, the command "seq": > > > > > > /nasfarm/edelsohn/install/GCC12/bin/g++ -std=3Dc++11 -g -DIN_GCC > > > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall > > > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format > > > -Wmissing-format-attribute -Wconditionally-supported > > > -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros > > > -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H > > > -DGENERATOR_FILE -static-libstdc++ -static-libgcc -Wl,-bbigtoc -Wl,- > bmaxdata:0x40000000 -o build/genmatch \ > > > build/genmatch.o > > > ../build-powerpc-ibm-aix7.2.5.0/libcpp/libcpp.a > > > build/errors.o build/vec.o build/hash-table.o build/sort.o > > > ../build-powerpc-ibm-aix7.2.5.0/libiberty/libiberty.a > > > /usr/bin/bash: seq: command not found > > > /usr/bin/bash: seq: command not found build/genmatch --gimple \ > > > --header=3Dtmp-gimple-match-auto.h --include=3Dgimple-match-auto= .h \ > > > /nasfarm/edelsohn/src/src/gcc/match.pd > > > > > > All of the match files are dumped to stdout. > > Sigh. So the question is do we make seq a requirement or do we > > implement an alternate to get the sequence or implement a fallback. >=20 > We require GNU make, so perhaps we could use something like $(wordlist > 1,$(NUM_MATCH_SPLITS),$(check_p_numbers)) > instead of > $(shell seq 1 $(NUM_MATCH_SPLITS)) > provided we move the check_p_numbers definition earlier (or perhaps bettt= er > rename it to something more generic, so that it is clear that is a variab= le > holding numbers from 1 to 9999. I'm currently testing NUM_MATCH_SPLITS =3D @DEFAULT_MATCHPD_PARTITIONS@ -MATCH_SPLITS_SEQ =3D $(shell seq 1 $(NUM_MATCH_SPLITS)) +MATCH_SPLITS_SEQ =3D $(shell echo {1..$(NUM_MATCH_SPLITS)}) Which seems to work since it looks like we require an sh compatible shell. Question is this right? From the existing $(foreach header_var,$(shell sed < Makefile -n -e 's/^\([A-Z0-9_]*_H\)[ ]= *=3D.*/\1/p'),echo $(header_var)=3D$(shell echo $($(header_var):$(srcdir)/%= =3D.../%) | sed -e 's~\.\.\./config/~config/~' -e 's~\.\.\./common/config/~= common/config/~' -e 's~\.\.\.[^ ]*/~~g') >> tmp-header-vars;) Rule this seems to be correct. Thanks, Tamar >=20 > Jakub