From patchwork Wed Feb 28 22:28:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 208061 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a1a:b0:17b:cd04:e0c6 with SMTP id 26csp231281rwa; Wed, 28 Feb 2024 14:28:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnk5KVvXP2yXUnhb7gShPVMxLZe6p9ZuRblWlH1I6ACVuOXn3pL64OsA7b+RjPb9D3FXc31nPpId1503WswhE4pENnYg== X-Google-Smtp-Source: AGHT+IEoffUl9Iu/TasN4qhGiT3AcQM/9Cz9xuO4lDCRnR8kja3XH9OJuXDVZILUaNTffBu9JrZU X-Received: by 2002:ac8:7dca:0:b0:42e:74bb:6918 with SMTP id c10-20020ac87dca000000b0042e74bb6918mr447316qte.1.1709159328409; Wed, 28 Feb 2024 14:28:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709159328; cv=pass; d=google.com; s=arc-20160816; b=sgyyYDXOCDU78VdEQy+cIcRL2TUquRUCHKpivYqtw7bmooX/5ken+R8zYthVEHqWeC nLDESiLceGRbVfGwct/UBRxpyWTJW+vdCQs4eIMchX9AMQiPoyHFz/nY4yVQqPJqeOOd v+A5zoeRvjAkdi5qqICRcGt4pcUvacWSVHtw3tQE/g/HYVANoQOJHOMIPRiK/dUV1Tz7 3JNSr9IXLhZu2qw+2COTedDjEkvBWp+6xVcH9ntIpcBo+pgAJ88JfxuaspdR4nz/ML/h FYxJbEIMlXwxqiybaJ0zgDJ/UZau3aWXQMxBXrV/Er+Zhpfej7YlBkzBXJSgV/7AeBix 9RFA== ARC-Message-Signature: i=2; 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:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=jfkSqc2Lpb8WAM4XWsM1rhcyX0eWux8+1o86/ChT7o4=; fh=NLxAvL/bDfPg4AGOtxqvQlND8vazkZrNzKLY8+LAbBY=; b=FC3abvgFtY16ka4Hpcu5CAJW9QcxpWe9/ECmohNxZZKm1w1Wxvwgx8rc3UbrXWW2Ds eFNx9DHyoUao5LiyMd/9s3XEwxqxt/6kOqUIYrYUTPktj8yJaSkXhK3znn0OHOYiQn8p e7coRCAS1kBEK5udDh99prUY6Ff+R8Mb8YM/4rd7csf0RleACQmeOqZykiYb6U3oh7Iq SVV/O7AY3M6vQSkzbOexC0n5uAVWnZjJcwCHPB06eb6TQ00dE6vNi/yg3Wa9CQhkICAD k6KnJCGC9ROz2t0t5MC0dchm3UWk+gJVwWiRdZuwFDA7Imssrm+8mnk6Uvc/D4ttk1ED puVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GvRRsCWL; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n15-20020ac8674f000000b0042eb40544bcsi117789qtp.444.2024.02.28.14.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GvRRsCWL; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 22CD33858CD1 for ; Wed, 28 Feb 2024 22:28:48 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 88FA83858CD1 for ; Wed, 28 Feb 2024 22:28:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 88FA83858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 88FA83858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709159317; cv=none; b=Y/lu6RM2+dyAzJWFRT/61268gH1LpsgEJSVwzWb5E8JZ9RdI6K2RlHJTamkJuTNCIzqwtlJzfzWYr0pg6Txybb/9JPn91tCECaL4tI8+6ta8bBkkmiNmkgIiQQIuQoxB+LcOpiENlgVP0/Vs1VLqjPlKbnqeQ5GoxUYfRuqfSHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709159317; c=relaxed/simple; bh=oMbcTidcbC49E8UnxDYxqAjTdAhr3fd23pjZwPFHZRY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=awM7+yiKwGPtxq68AJ6Zk53iPmQuj9jc23+HZF/kmx4BKacjOfPvBn0qQ/Vxps7lgQiSQdmf7pHyeZvwc2xSx+GiWXiEoHWyjttGnqEKi9mWPQsVF1jwixQpPkLoiXt6ePFcyOZ7fldn7NLWDgZnD1TnTLHKr+aB3t2icUHaV2k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5ce2aada130so225499a12.1 for ; Wed, 28 Feb 2024 14:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709159312; x=1709764112; darn=sourceware.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=jfkSqc2Lpb8WAM4XWsM1rhcyX0eWux8+1o86/ChT7o4=; b=GvRRsCWL3X90kwNVMUOEei0jlCLJGhKrP8+tt3RfCPjWD0/6s20BQftFoqp8NBst9J u7N1WH6kuryCBOGLw6HDiCWID9FmARkJNmWbP8iIfC9kus6a/LApIFU/ncgSDAVNogx0 uQYRahT90QPoRo2sfALF+2tpkFbjk+UEtNm/q6PT5bewgQ4qBkyV5GocU1PhyW8lo9Xd GLXvbirhsUqjt0mkEaR2N1SETowVi9fmrL1YowC46dIW9SdZLZgJS/8ah0znIjib3Nvt upzMMDmSJOdstV4GCi7WKQwdoicKG8v+ekjwsDVB+gU6R3IqnTl/H2gcUAU75+L8iEXB UX1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709159312; x=1709764112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jfkSqc2Lpb8WAM4XWsM1rhcyX0eWux8+1o86/ChT7o4=; b=v0yE+YhvcEl8Mknurq2gNUvLtM1WxioEou+IzATvvSdWLUcYYSpf07Qc/z5gKupq7g 0Q7GB1/E1QuzA6CYTQVAJt4DUoB6B6s5ZpYRgb85BdmmgfQ7C6p7L+pGqiMtc2Hyr+U2 HIqUtkTnhFcUaHUSQv2ouS7ibFzIESHcPVeYrHqADCXoyJVbBaCvVJKkqudqew+XDiz/ yKHYb3ckFPtvMvWqHZf7qIb5sTzw0UAqbzjqpKdVM9/WuunA1ukaqHr2rJlsxXQ59VPW /rtLCFucMphyMZ8xHCLJG6u4AFdeaKPGdP9+NIK6dN/+TVl6FQDyU3q5xK6QYPPvEJ9y fbhA== X-Gm-Message-State: AOJu0Yy0tZhXHviu4UVle7IaIxxgo1LbdHJ4RDnBqRTmITjWevp20w/Z C/qb2XSri/m9sHYtt1n/Ldvnxe2HCzflJsS2qzoaRUagiKaj4AQDCNEBUqjy X-Received: by 2002:a05:6a20:d397:b0:1a1:2779:62a6 with SMTP id iq23-20020a056a20d39700b001a1277962a6mr429261pzb.42.1709159312463; Wed, 28 Feb 2024 14:28:32 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:e929:988c:dadc:8f32]) by smtp.gmail.com with ESMTPSA id 36-20020a631764000000b005dcaa45d87esm213841pgx.42.2024.02.28.14.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:28:32 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 53708114034E; Thu, 29 Feb 2024 08:58:29 +1030 (ACDT) Date: Thu, 29 Feb 2024 08:58:29 +1030 From: Alan Modra To: binutils@sourceware.org Subject: PR23877, bad value (n32r5900) for default CPU Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3033.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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: 1792183452303074835 X-GMAIL-MSGID: 1792183452303074835 Catching this at configure time would be nicer, but we'd need to exactly match mips_parse_cpu in configure.ac and keep it all in sync. PR 23877 * config/tc-mips.c (mips_after_parse_args): Don't assert that mips_parse_cpu returns non-NULL, call as_fatal with an informative message instead. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 43c12de2c8a..8f54cb8937a 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -15287,7 +15287,9 @@ mips_after_parse_args (void) if (arch_info == 0) { arch_info = mips_parse_cpu ("default CPU", MIPS_CPU_STRING_DEFAULT); - gas_assert (arch_info); + if (!arch_info) + as_fatal (_("gas doesn't understand your configure target %s"), + TARGET_ALIAS); } if (ABI_NEEDS_64BIT_REGS (mips_abi) && !ISA_HAS_64BIT_REGS (arch_info->isa))