From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 1CD7D3949F23 for ; Wed, 16 Nov 2022 00:36:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1CD7D3949F23 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-lj1-x22f.google.com with SMTP id u11so19747087ljk.6 for ; Tue, 15 Nov 2022 16:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pIhqppbl5N3SUxpvj32cVsmnEVWBBLqBU/NCld1Bk1Q=; b=UO1ndw1jBXbocyZhQmWwNf94X5B+LnU90VVBk2KNeowWrNXfPnkcChqrrEZpXPiBtH 9+mv3C7nLGKFC8KcIfaUgy/O8uX7UnnvPxVnDHerBpshGXLlkJmUV1bJlZOpADRnzBAL 7TZqfMsNgH8qi9lhRJYrrrh6l0DHxEm6gyYRgZfh0uzD3f6KzrPN9S9i55ZPcUzcQ8oa /Yts0SeQPgVyloPH+W7VO6QYAS+3WOhooRMztW4RF0QaZypdyC5lNHQZUIbjdYylxzgT /QZyg221p2wx+sEz/m5+HTjI4PWpkM6x54AcKP7RuZFfnlXAaMXBKDUkLefDRkqN5klL AYGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pIhqppbl5N3SUxpvj32cVsmnEVWBBLqBU/NCld1Bk1Q=; b=CLYetlrlOGGKya23trHSFDOl/IziqZmxPoxbW7r5Qv7lQoBuF2CugEA98KJUYcAIeD 5wlJkTOIaO+5sb/eCl1wEZFIRJFoV/favdgqglSxwVZc/MAi15U9ICcPvTIDcexiz+H4 iw3l3ZxzVeM6rzpCFowOBxI2+ne3x5oo1Hr7aNmlp/Ea+Yte7PHyQT2GgtvKKQzjuQ46 a09ZhW4oLqA4JzcWl01F19aNmddmJfjbZz+JlzTmuWvDKz83Puvr43kT5lOOj12K698z qerOA4rFJYDJzuIR9MZS3msleq+nkQdPGNGATFxO9tePd920iiTT6vs/vTXjS+rnu6r1 yiuA== X-Gm-Message-State: ANoB5plMN5P1Q9YFLHsqmdamTM+PiUsOl2qKlEiQhXI/OmTV/debU9G0 nDRjeazJ8FhR7WClje2TLFMSTP60eaVLH8MPm8eEXA== X-Google-Smtp-Source: AA0mqf4CJgMM8lsfqbiP6dwea+V2rTUUBXlTlfla2jMEz95PpQavZ6Er1mgRY9N5DBszDXhSpYYEhJ8C26c326SpviA= X-Received: by 2002:a2e:9b8d:0:b0:276:ffd1:d7c8 with SMTP id z13-20020a2e9b8d000000b00276ffd1d7c8mr6435282lji.176.1668558993588; Tue, 15 Nov 2022 16:36:33 -0800 (PST) MIME-Version: 1.0 References: <20221113204119.4061447-1-philipp.tomsich@vrull.eu> In-Reply-To: From: Philipp Tomsich Date: Wed, 16 Nov 2022 01:36:22 +0100 Message-ID: Subject: Re: [PATCH] RISC-V: Use .p2align for code-alignment To: Jeff Law Cc: gcc-patches@gcc.gnu.org, Christoph Muellner , Palmer Dabbelt , Vineet Gupta , Kito Cheng , Jeff Law Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 15 Nov 2022 at 22:14, Philipp Tomsich wr= ote: > > Jeff, > > On Tue, 15 Nov 2022 at 17:37, Jeff Law wrote: > > > > > > On 11/13/22 13:41, Philipp Tomsich wrote: > > > > RISC-V's .p2align (currently) ignores the max-skip argument. As we > > have experimental patches underway to address this in a > > backwards-compatible manner, let's prepare GCC for the day when > > binutils gets updated. > > > > gcc/ChangeLog: > > > > * config/riscv/riscv.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Implement. > > > > > > What are the implications if we start using p2align immediately when th= e current (broken?) state of the assembler? I'm pretty sure configure is a= lready turning on HAVE_GAS_SKIP_P2ALIGN. From a native risc-v build: > > > > > > auto-host.h:#define HAVE_GAS_MAX_SKIP_P2ALIGN 1 > > This is your tree, which has the (partial fix =E2=80=94 i.e., the best we= can > do without breaking backward compatibility) for .p2align. > When building against upstream binutils, this should not be defined. After rereading the generated configure-script, I've changed my mind The check the does nothing to ensure that the max-skip is actually honored and only tests whether it is accepted. Having the max-skip silently ignored may still be the lesser evil. Philipp.