From patchwork Tue Nov 14 06:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 164737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1676225vqg; Mon, 13 Nov 2023 22:22:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBbdK5oDbUi++vi8bh6pW3HP4H9qcq93fWPv8z9QsUBBhsILeZBZAwNgJNHr3vUC+4jzNC X-Received: by 2002:a05:6214:260a:b0:671:2c2f:4fe6 with SMTP id gu10-20020a056214260a00b006712c2f4fe6mr1573872qvb.46.1699942958961; Mon, 13 Nov 2023 22:22:38 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1699942958; cv=pass; d=google.com; s=arc-20160816; b=dBVW+q3Oa1YmxXn6ENSrPWfa15UIKxQDcB5KGh7+l8MKPzgsjwxvYGcFQQTX1cmcus kSpIwYJhWYL28pWYN589Myiv/GWraKPYe35tYWGOGR43kcIGinlpOnVLf5c7nEe/CXIS 9pcXEyXWhRn4Ci8pqimpDHn124mHViahTQ5x4CzvC1s1tR5xqfBoBB4HK+ttdMPBmZWw rVsQOzT+gX2jV45WW5jwCjx2PqGsGpcok7d+L7Ngk5MyDsn43LgJ8iH1iomH8VnAIGOW /m/inQ49OOJiIlxvt80wwAAvZzT87vib+FS13aINm8dtzpF5+OHGUrL+dLu5uRkP5ZMg CEzA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=MLpUMCVgWHTH/8cyGjQg9ZKU6ZGl5QCoLpYfs2qYYpc=; fh=zgn+771X4ysB7j9hSn7g/xv3tY8yVpzPfpfJXx/EswI=; b=kT3SkYc6y2P6p98bgKM53Egp3ewO8h9nmVH1xon0A43HOSfOXkkOMDKLQotWGVl0GP p8wL10kRHUChjlsl9kivXnSqfO/GOokEopDZF7qgFN03lz08DniCjYoE+Osq9xI4V8wN zw8eT0y2HAOoSTzIntV4C2bIz/Uxgm8Vzv4bLka4SkYWXzxtqqXOvqDXcZy8kWWLpqnh 4QyxT+sv13NOOXBIs6XXNt8wcL+uJvQK+QbmoC7LZTevQ/CtQFaEd8DXCNy8Vi0TnTaW 2kqdjrEr1KZW/EX1g2bXpU/10Q7R4Qrn+aiaouuuSXjckIxVTbiyOCMkfcR8p17NImfh 18Rg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=JcZFuV2i; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u9-20020a0ced29000000b0064cc98b83fasi6004899qvq.604.2023.11.13.22.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 22:22:38 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=JcZFuV2i; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B87F23858416 for ; Tue, 14 Nov 2023 06:22:38 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2117.outbound.protection.outlook.com [40.107.117.117]) by sourceware.org (Postfix) with ESMTPS id CAB3C3858D20 for ; Tue, 14 Nov 2023 06:22:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAB3C3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cipunited.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CAB3C3858D20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.117.117 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699942952; cv=pass; b=negJLhMcs7l6mdGae7/LrUksm2cc2bHCRoYLyV9rnjViP+XT8ZpsShyOsImfYPhpO1hT+nxPJUcGIF7N43uUnYBEf2znheOvnaHRjrGKn99+JxV5ZykGwGV01QFoSnpp+nmAossVZEpq6kYoz/VqSofQJwywFbPPHaMGKhbyxgU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699942952; c=relaxed/simple; bh=/h1p3A8po5JbYTaod+RdUwZUviMyvx/Y20sRPP27duo=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=nDf4Or4r3OJQYq/+M3PRZOc0j3jJm+UN+v9TrQX7EX5cmfzRc6LZyNxlWpTSSVjhbePnozjIUgYNIlhnmC9APgJiUiAyo0tmKC/Y+xk60Pri+rXICeuwIm5RXSuB/eHjQDLRI89va0z+dwlHn+raKF4CMQ8twe5hVt6gf25dTSg= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nFIdWORaQREc/ZFdwl31324T7BSBF7r22WCFPjRm0D+RQz4KsB21Ifm5zF8JYoCIbA3R2jKbfEUF4p8tDqWHoOYIKY4g4wgl8ytnFfdFxhZvcNdpb9KScmXjpReVvhe4tT7cJsMIDy/pXC/FXfCr936UWasegL7xR8oEV9ENwQ1cKBWNMRw2zXCSBy6W7jA9AjOPF6H3DDQ/UuaeGab07YcnISabFVys6oO7Jvi+4qs4L/NPB0IC83+PuM5m/DZ6x+Yw1+TFf4li8RXycmBzqBNQOBVIYcI2UPZTx+JNkFo7ZCXspAx8FzMQD/CSa/AebZUNpjxbhJNqK6ShZEajjA== 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=MLpUMCVgWHTH/8cyGjQg9ZKU6ZGl5QCoLpYfs2qYYpc=; b=iQ/k9/Uf9X6p+nsJFNsPmpDncIPcSSPFNfDt1Ty47Rcb76sax/K/7WCCtt7GrlHt/ePw3/dVbDo0os1TCFmR9UC9Yaj14wuQlG8g6/LEX/Y6nBC4pAKgx+bCirf5LrLNlD7bcUuT0CRCwkLRkSkxfnstn55mAoA4HzGZgDX9/PGMKDwksW6M3aUWp0SmTDNJcybWM83/ClXaFlbkWFL0DuCtkwXYxKWjZSLVzpe9fFY0rn1TIkLh/v2vcyfCuZUeMQrbS2oqlOtyf5E2uK2StA91GAJ09yPTUatMxguC+XH609e+nNUH96jp/SsZ+bT1P0RbdOXRsOIzdCUarHcfpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MLpUMCVgWHTH/8cyGjQg9ZKU6ZGl5QCoLpYfs2qYYpc=; b=JcZFuV2iMM9MhC3bIauDrOMiXR9Ea3RYOAiaP8kIeAJHbWOuMOqZBZ/Gwt5Z7AGhrJaQJ9jAEBEbcrdGlhTZKTQ7G7tlCpC+tEkMV+bCQzvEUi5Sg5ZJZKuJNhlEwhcZ+ZoKMam7DNGFyDfWi9P9wTdb93STt15DxubypG43nDM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cipunited.com; Received: from TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) by SEYPR04MB6312.apcprd04.prod.outlook.com (2603:1096:101:b1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.31; Tue, 14 Nov 2023 06:22:23 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::41df:8aa2:5d9c:5f88]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::41df:8aa2:5d9c:5f88%5]) with mapi id 15.20.6977.029; Tue, 14 Nov 2023 06:22:23 +0000 From: YunQiang Su To: nickc@redhat.com Cc: binutils@sourceware.org, YunQiang Su Subject: [PATCH] GAS/MIPS: add "--defsym r6=" for default when it's r6 Date: Tue, 14 Nov 2023 14:22:01 +0800 Message-Id: <20231114062201.1499958-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: MW4PR04CA0240.namprd04.prod.outlook.com (2603:10b6:303:87::35) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|SEYPR04MB6312:EE_ X-MS-Office365-Filtering-Correlation-Id: ba080c7b-3762-4251-b6ac-08dbe4da1063 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gbd4m6Binz/j7EaL6LWpm/dsVZoQbjjqfxHuUCw+WZCw/4Ds0L852F9AE50s3sxoNO01nOQKN9GcoCjhRPtGz9v2vRQnNvJfLCGi/YUZjXgUnfF1QTDzhM5J20HhShHUQrWpxSOJQ5zvsnV6iu4oP9y79ccI75L5azFHLoGqiLnubaCQ9LHTRkxaAwYcEowXx75VQ5KOCbXzsHbTLxScy5A0wQkRwzHt/4/pqkUdvgPI2V812k4BhEZ5n9TKOzCkYaNaDdtWcNZMpODgAVA2d4C9mg8shRQTBGbWAfAy3gTf93pV/efwZzqe5WA+s6h/uyz7DYiCkiES5yAreqvjqLZlbd7KygEAuSN9DdKMKOgQIu+6ay1JrOvgoKmFRg0vA9g1Owh4tJ9DVA5i6+0IL+hb7WdgHftF/uedY2obuW1aDC3KXWnB2Wq2yoGQjJ0CMdl7D0PuLE2yqgDC2G1UAvXJoXWJ97/n2tHGkMHKOTVrXmODX1pcGjMI40lkbDB5nLt1aEiFzqK1sWYejhjQB6irIaEO0kkcrPswSfclvg0+Atc7a8Qf4OCsBOxeJJJxI1Y7ADu+BnHio93ujPGLMaarQZfaI5sUBtnEY4EeOpuUvN3xSW5MK64R9yHabX/U X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB6117.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(39830400003)(136003)(376002)(396003)(366004)(230922051799003)(1800799009)(451199024)(186009)(64100799003)(6512007)(6666004)(52116002)(6506007)(38350700005)(107886003)(1076003)(2616005)(26005)(316002)(6916009)(8676002)(8936002)(66556008)(66476007)(66946007)(4326008)(6486002)(4744005)(2906002)(36756003)(478600001)(5660300002)(86362001)(41300700001)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount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mIvE0/oYix349YpKWKOSV/P8MvXDjL6rKrYZ5pyBKHNENYbTHqgvOYfO5KeJyNMcJq8cIN6S1aPI06TfSSfT5WrTMNCRO4IssDME6qRCIiVU9dO/vmjb5OPdKs5u6c2hM/IIusV0XfdDh84Y8ARWqX5MTAD4kc8wmD0FIYlC3KmoZxWBMxIdHe0uD0USqhowNhIOuUi85BpvE3w6tQaUUMgwJH9GIPl5DpjNN6p5y2MxEKexRwwHOuOC0qJj7Ph8B91Q0AJZhGrn/iGmN6oCA2/FhwPmz4dgQA7czmB3pWsnBcoaCKKiYsYti6O2IApLZqyJADMs2Q3Mp0PnVzrnIxxaqmDTcrpqG44SL2F/yRRqHyMoZwCW7HAczjaEaTyQbXd/jUSPQtb4HqZGHDO76d2kB81VrzuynAvWIiaFBrg2+qx/mhwBC9yBLamqwA0QW7Y0W4u3/i1GaI11xluTBlfWs9kK95iznPmCkqyIBSoOFzoYHhQKYBqW19bnPw5sghN+ic56TziH9izohiwTyrto7ybAZeeBBd5N5AdnrOFMw== X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba080c7b-3762-4251-b6ac-08dbe4da1063 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 06:22:23.4610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uZ75LEhsRRPcqrDu7pMOS0stUNSPApCbDs9RfXafL0PY3Sns6oIE0uOfeMt9YJZ/I+FGD5rWmyDuQmZUR8+XVDgj9qmbkX8l0+nfmkgYjSI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB6312 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782519388101223010 X-GMAIL-MSGID: 1782519388101223010 In mips.exp, `mips_arch_create` is used to create an test arch, and it will try to create a `default` arch. When our gas is configured as mips32r6/mips64r6, the '--defsym r6=' option is missing when create `default`. Let's add it back. --- gas/testsuite/gas/mips/mips.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 86753e57b79..0611273cac6 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -161,6 +161,12 @@ proc mips_arch_create {arch gprsize extends props as_flags objdump_flags set archdata(displayname) "default = $arch" set archdata(as_flags) "" + if { [string compare $arch mips32r6] == 0 + || [string compare $arch mips64r6] == 0} { + set archdata(as_flags) "--defsym r6=" + } else { + set archdata(as_flags) "" + } set archdata(objdump_flags) "" set mips_arches(default) [array get archdata]