From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 703193857370 for ; Sat, 9 Jul 2022 12:28:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 703193857370 Received: by mail-pl1-x632.google.com with SMTP id d5so888546plo.12 for ; Sat, 09 Jul 2022 05:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=a67Ye0PQilRplabjF8Qmx4jtrUsJPXrOOIYLLoTM5iw=; b=CQMvehOletC4T7iiUXw8joTrety9usPOqOan1l00iu9WAKjfQr18UycD83XlASDhXB 1jyobjP8ivJGCMod2flOUywgwwKPVHVeutC+IqkA4QuR8RhjybEpRG4Hm/ZO7r5WDlcd wZdbn99ggMGGFOqc7dpYivg7VdTRx4AZJFEczS5fpDXNxi5DuGi6zj0+qzGuDCFe9LEt t3kr7upwKs2IorR0vri0X5kQPSL9NP7otbXHzhQg9a2FgZrPBvfQXQK07pFXGarxoowh h6EX0N3oEiPjk5lsK4c4ytJRF8b+1HZxw9BvpI1o7lZeR4jy7kt0aJvnI7DScCEYyfia d8FQ== X-Gm-Message-State: AJIora8AUn7YYDs25H7CrcL+foo0NYV6CvLeAorRon5JzofpEP0nAFFd +AhzNx2jZ2Wz/J9Vb6K1UYP50bGZSNU= X-Google-Smtp-Source: AGRyM1t2Zwq7jeMEDGZtIDV9MncABlMN5Zdxuyg4cZyc9qnpWUUhYUbh6t5cww+JpwPuZBZQZvhZeg== X-Received: by 2002:a17:90a:640d:b0:1ed:2255:372b with SMTP id g13-20020a17090a640d00b001ed2255372bmr5715449pjj.128.1657369697861; Sat, 09 Jul 2022 05:28:17 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id c135-20020a621c8d000000b00517c84fd24asm1402816pfc.172.2022.07.09.05.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 05:28:17 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id F29E41143046; Sat, 9 Jul 2022 21:58:14 +0930 (ACST) Date: Sat, 9 Jul 2022 21:58:14 +0930 From: Alan Modra To: binutils@sourceware.org Subject: expr.c make_expr_symbol: use notes obstack Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3036.9 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2022 12:28:19 -0000 * expr.c (make_expr_symbol): Use notes_alloc. diff --git a/gas/expr.c b/gas/expr.c index 6ad8bee2733..f4ea24717df 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -97,7 +97,7 @@ make_expr_symbol (expressionS *expressionP) if (expressionP->X_op == O_constant) resolve_symbol_value (symbolP); - n = XNEW (struct expr_symbol_line); + n = notes_alloc (sizeof (*n)); n->sym = symbolP; n->file = as_where (&n->line); n->next = expr_symbol_lines; -- Alan Modra Australia Development Lab, IBM