From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AGHT+IEzkv1Ozn1si+9jbJRRhip5/rXecwnUuKeQm3fRrcP4Mf6S+L0Pke8zboejqpt0l87L6BWKzw== 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-Type: text/plain; charset=us-ascii 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 List-Id: 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)) -- Alan Modra Australia Development Lab, IBM