From patchwork Wed Feb 8 23:12:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 54632 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3740377wrn; Wed, 8 Feb 2023 15:12:31 -0800 (PST) X-Google-Smtp-Source: AK7set+tOekpKpjRRq/zEOrvYRdEVs5CPNgggWc/x9f9TlyVGlnI0s4elFjl5llS9W270ZylO5kf X-Received: by 2002:a17:907:6d18:b0:8a9:e330:3a23 with SMTP id sa24-20020a1709076d1800b008a9e3303a23mr9951002ejc.26.1675897951533; Wed, 08 Feb 2023 15:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675897951; cv=none; d=google.com; s=arc-20160816; b=xw0HFoLuL9Z/VnydO/vR0TQ4yi+tJBk8q4l1Hj8uQ5sLx012UOzRR4eOwj8kmRL+tK QHyNTSSs+avQcMB5R5r4RMay6Cv50TpCMa9BreFiqJx0/51Vy6fJdfgbUGENs8VnUbt0 hw6NsiRc1vTlijklYRWuPkm69hmPhzrBT9kHiRzSMUKWxRT9Fd3WjwMmaIf9ddQyXH7E 0u14jfyaJ20tVk/oQjA2OrV8rASmWHRSpr50YnIUwsKbHcIJ2g4wbz9pT86dYSQYEsdo jjNzGYJUZl/vsCJSukTNnYVdmJssE+TEDWeIiqtCgcLu8NHJ5ky85RaNNr+nd5Zotlkm xArw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=jqfWtyqbzT/plJRHts8Tuf2Ovwl+CZPFw4U5viefppc=; b=L7mxI0cVXOP4A99Nkd9A9NnUwl39u67dGXFk4E8/I886g4UFyEt+4V9nH+EZ/M8C+Q EpR1+IhekSuK1j4Yt9dtQEYeHxEbYPSJvCtL9nLYRilfR69uUhEOlF9Zt3kWwn/FfLKn tLsSfQR1+772CvCerzA+7WVxUW1MbAK9uUi0E9+C31PebepG7eVoR/Ki3/LNiZNdg37d 0V42/aceUuhRtpJZzc4RW6SKjPTALzKw5sDqDLKUVuh451MZDLdqj1nupmdehHV2Xol4 xUjZWd3XiuO5iUTlyFFwrFrmk2g8hb95pdxZw2qeKBdk1nqFMLRICFlYyMg0rf9Zw1NR K+rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=EHUahrxs; 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=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 14-20020a170906008e00b0087777bb4127si224361ejc.172.2023.02.08.15.12.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 15:12:31 -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=@sourceware.org header.s=default header.b=EHUahrxs; 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=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 86E553858C30 for ; Wed, 8 Feb 2023 23:12:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86E553858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675897950; bh=jqfWtyqbzT/plJRHts8Tuf2Ovwl+CZPFw4U5viefppc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EHUahrxsghyKZSM1B1Ng/P/wSU0DqKOb1A1yXL5xs8ZiTqXuLVdL6u/67u2B/yXj3 PpkjZ/+nJU6AqrNmv4iFZumdd68Y3+1PMEE7sCRR+PixR1S50iWa/E7CrorGlyldXP APUzkriuPyZQBer8aByl6h6wnckqMMyWNxEX/ntU= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 5C29D3858D20 for ; Wed, 8 Feb 2023 23:12:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C29D3858D20 Received: by mail-pl1-x631.google.com with SMTP id f6so846800pln.12 for ; Wed, 08 Feb 2023 15:12:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jqfWtyqbzT/plJRHts8Tuf2Ovwl+CZPFw4U5viefppc=; b=nQbACjucbYlfpW+1O2SHYDLONHU3ZI1WTWI/5/ieu/nKLLfe67N1c7wwwEqUe8LpVl om94WmqjQHAGJNuZfm90fiBIXbjZWBw69VJlrio0vfChvYaqGyubUS2L3elecllJl5et 3O1JJ2FlpouF5maID1WES3odJv0AuKZLWYQSSDI/PVJQHpfp+eiRZF2c6imANJ513ekE UZ84Ku6p0Lcsxpqa83E7jJ8dclscwxsZ97UnyhYxLR/oOkqQ6i7gbGaIFV29TZzfVflT MZgT7BB8cH3G4k/fV2D3CXEhM2w/9FLiBJbfBe/muDOBYFU4/Byb1kOhGJG6pK5qRLLs nnAg== X-Gm-Message-State: AO0yUKXnPYEtkQiSsdFresGoGGpUofLIJj6mk5daZxqmU7WLwrZMA147 mxliB4exEcnuCvow2epBioKkGpGM0eQ= X-Received: by 2002:a17:902:e548:b0:199:1c4e:7681 with SMTP id n8-20020a170902e54800b001991c4e7681mr10078316plf.52.1675897939956; Wed, 08 Feb 2023 15:12:19 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:2c19:e063:cb3b:da4]) by smtp.gmail.com with ESMTPSA id ju3-20020a170903428300b0019117164732sm9770836plb.213.2023.02.08.15.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 15:12:19 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id C2A3E1140F9C; Thu, 9 Feb 2023 09:42:16 +1030 (ACDT) Date: Thu, 9 Feb 2023 09:42:16 +1030 To: binutils@sourceware.org Subject: Internal error at gas/expr.c:1814 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757306370224701466?= X-GMAIL-MSGID: =?utf-8?q?1757306370224701466?= This is the assertion know (*input_line_pointer != ' '); after calling operand. The usual exit from operand calls SKIP_ALL_WHITESPACE. * expr.c (operand): Call SKIP_ALL_WHITESPACE after call to expr. diff --git a/gas/expr.c b/gas/expr.c index 794be6f09d8..189236bec6d 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -996,7 +996,7 @@ operand (expressionS *expressionP, enum expr_mode mode) } else input_line_pointer++; - SKIP_WHITESPACE (); + SKIP_ALL_WHITESPACE (); /* Here with input_line_pointer -> char after "(...)". */ return segment;