public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Philipp Tomsich <philipp.tomsich@vrull.eu>
To: Jeff Law <jeffreyalaw@gmail.com>
Cc: gcc-patches@gcc.gnu.org,
	Christoph Muellner <christoph.muellner@vrull.eu>,
	 Palmer Dabbelt <palmer@rivosinc.com>,
	Vineet Gupta <vineetg@rivosinc.com>,
	 Kito Cheng <kito.cheng@gmail.com>,
	Jeff Law <jlaw@ventanamicro.com>
Subject: Re: [PATCH] RISC-V: Use .p2align for code-alignment
Date: Wed, 16 Nov 2022 01:36:22 +0100	[thread overview]
Message-ID: <CAAeLtUAOAkiZkTtbww=NxFQRxe_g9M_QATy6Aker1RBP8thi-Q@mail.gmail.com> (raw)
In-Reply-To: <CAAeLtUAoY0=emr0FCs=kitz1pa+2PJdEbBTQeUYyFn7q93Y+Dg@mail.gmail.com>

On Tue, 15 Nov 2022 at 22:14, Philipp Tomsich <philipp.tomsich@vrull.eu> wrote:
>
> Jeff,
>
> On Tue, 15 Nov 2022 at 17:37, Jeff Law <jeffreyalaw@gmail.com> 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 the current (broken?) state of the assembler?  I'm pretty sure configure is already 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 — 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.

      reply	other threads:[~2022-11-16  0:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-13 20:41 Philipp Tomsich
2022-11-15 16:37 ` Jeff Law
2022-11-15 21:14   ` Philipp Tomsich
2022-11-16  0:36     ` Philipp Tomsich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeLtUAOAkiZkTtbww=NxFQRxe_g9M_QATy6Aker1RBP8thi-Q@mail.gmail.com' \
    --to=philipp.tomsich@vrull.eu \
    --cc=christoph.muellner@vrull.eu \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.com \
    --cc=jlaw@ventanamicro.com \
    --cc=kito.cheng@gmail.com \
    --cc=palmer@rivosinc.com \
    --cc=vineetg@rivosinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).