From patchwork Thu Oct 3 19:44:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1992482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=P49urlDd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XKMbh1lh4z1xtk for ; Fri, 4 Oct 2024 05:45:36 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3CBAA384642D for ; Thu, 3 Oct 2024 19:45:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by sourceware.org (Postfix) with ESMTPS id A63EE385DDD8 for ; Thu, 3 Oct 2024 19:45:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A63EE385DDD8 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A63EE385DDD8 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::c35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727984709; cv=none; b=SuxBAVpi9sFQw0YnJzqwsy1yu76TksZrc5GI5w5fiUa/QeYmsnayhTCXYT9+jgXuzn45IQpEQJHHYA6NaukDzUdoje9sARj9Vklt9FaXubk8BT3Mxdub5yvMn5hlNDySf+wEnOBA4riSNSjYy+cyFKHBDlbUgnwAkz2LLbvgBVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727984709; c=relaxed/simple; bh=OBSrgzp1omuq3BskTdBrp+Rh30s1101wwHRRjNS3KRM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=wWqh6gcCkbV43/F+mQy+8N3Q6is46CXL1rgI8miTRNKgJIDHQDlZSBJ30n8CGD+NXmio+9N/i3uFriK7kgtlneFiTjf+zsGZ8v0wKHZeIkv8otOfhP76t5LrQSFipauuxfXFhf3RxdJlfxz6oXhzhtBnCFz8JY9WV8NsCncLge4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-5e20de1d302so671549eaf.0 for ; Thu, 03 Oct 2024 12:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727984706; x=1728589506; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EzlFcN8s3j7+lA4CwB2pByQ/4zqReXTaLOMjQhpPyRA=; b=P49urlDdDpRP6tHN2DU1JXnECFFm4ztIaswErlBvE0T+bUZ8v2r+Wz6GiJuoePAkdb YcC4i0uEqMBrZhr1w+5WFGLk0B7MQGc1JntgGogm2gqP4i0dHWZ0ZIioz6PREELhDyu8 elpsU78fdn2aruRlt2bWyN0IzDoc/8qO38unKYBytSlrm0KWPUJApF0djNXFy+6p/IBE id0P0fRzHGOi6fEw1thOa3wuGsf4AoZM4UVGbNtZ30gScq91tSQazGX1/qbbD3Kza4Z4 8zpJBk4EGeUgeGCu50q4ggcwLpjdIhtmIJgADQo+jnVThz2JUqx0n7tdahqAEYZQomMj wAAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727984706; x=1728589506; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EzlFcN8s3j7+lA4CwB2pByQ/4zqReXTaLOMjQhpPyRA=; b=eISWVNTq4uQXDOjD7QtagpROsupiKCHcrZE7cLkwsx1iSpw7DQ6XZeFIKb+qSBrinQ mL5+tj3Rf2YTMl7/lMy5H0J+KAlYX3+JJ14hwO0wp8uT3yXIiEGaRZsa7qzWSgU8O3h0 cpuxENXJt6w79GxIzvQQv9ApibwNg/uMPIHj/EaXe4MT15Y/2SeeD/QkqtXrrri8ALZx 3OHZ8EGmWT29cXSYo7i2WWP8J+FOFcLL6jQYAibiTgEVV4FjUC7oEYp4+//o+JCgfRK3 eNaZhPFHIz54n/Hjqmx+X1iaAmYWj/JNdIkP6LCN55pW/c0uAYX2jDKNiGaMQSooQyj8 +exg== X-Gm-Message-State: AOJu0Yw6PX5CrJ9u30A3e/AjcHY+D7Rxj9E9da4QcXG6341H+aRHwZiL cnd3eQcb5NcPqg+BpewbE7OVu6RmrjwgwoLiNrA8oFparlbd2mkdTAOO7tjRp02vro7ZVXNeWqD J+qOhWg== X-Google-Smtp-Source: AGHT+IGab0YcXuq4GgPxXXRRQKwwCYzNodjtCODIApkxCazhxAzB2iyj8dslf6lAzKjnOBfABsgk8Q== X-Received: by 2002:a05:687c:2bd7:b0:250:70bb:1a97 with SMTP id 586e51a60fabf-287c1e16723mr417027fac.24.1727984706644; Thu, 03 Oct 2024 12:45:06 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-287ab9b5c14sm651838fac.14.2024.10.03.12.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 12:45:05 -0700 (PDT) From: Christophe Lyon To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com, wdijkstr@arm.com, matthieu.longo@arm.com Cc: Christophe Lyon Subject: [PATCH 1/3] aarch64: libgcc: Cleanup warnings in lse.S Date: Thu, 3 Oct 2024 19:44:48 +0000 Message-Id: <20241003194450.1052220-2-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003194450.1052220-1-christophe.lyon@linaro.org> References: <20241003194450.1052220-1-christophe.lyon@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Since Commit c608ada288ced0268bbbbc1fd4136f56c34b24d4 Author: Zac Walker CommitDate: 2024-01-23 15:32:30 +0000 Ifdef `.hidden`, `.type`, and `.size` pseudo-ops for `aarch64-w64-mingw32` target lse.S includes aarch64-asm.h, leading to a conflicting definition of macro 'L': - in lse.S it expands to either '' or 'L' - in aarch64-asm.h it is used to generate .L ## label lse.S does not use the second, so this patch just undefines L after the inclusion of aarch64-asm.h. libgcc/ * config/aarch64/lse.S: Undefine L() macro. --- libgcc/config/aarch64/lse.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S index ecef47086c6..77b3dc5a981 100644 --- a/libgcc/config/aarch64/lse.S +++ b/libgcc/config/aarch64/lse.S @@ -54,6 +54,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "aarch64-asm.h" #include "auto-target.h" +/* L is defined in aarch64-asm.h for a different purpose than why we + use it here. */ +#undef L + /* Tell the assembler to accept LSE instructions. */ #ifdef HAVE_AS_LSE .arch armv8-a+lse