public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] bpf: Add documentation for the -mcpu option
@ 2024-02-16  6:54 Will Hawkins
  2024-02-20 12:35 ` Jose E. Marchesi
  0 siblings, 1 reply; 3+ messages in thread
From: Will Hawkins @ 2024-02-16  6:54 UTC (permalink / raw)
  To: gcc-patches; +Cc: Will Hawkins

Add documentation describing the meaning and values for the -mcpu
command-line option.

Tested for bpf-unknown-none on x86_64-linux-gnu host.

gcc/ChangeLog:

	* config/bpf/bpf.opt: Add help information for -mcpu.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
---
 gcc/config/bpf/bpf.opt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/bpf/bpf.opt b/gcc/config/bpf/bpf.opt
index bc5b2220116..acfddebdad7 100644
--- a/gcc/config/bpf/bpf.opt
+++ b/gcc/config/bpf/bpf.opt
@@ -77,9 +77,11 @@ Enable signed move and memory load instructions.
 
 mcpu=
 Target RejectNegative Joined Var(bpf_isa) Enum(bpf_isa) Init(ISA_V4)
+Select the eBPF ISA version to target in code generation.
 
 Enum
 Name(bpf_isa) Type(enum bpf_isa_version)
+Valid ISA versions (for use with the -mcpu= option)
 
 EnumValue
 Enum(bpf_isa) String(v1) Value(ISA_V1)
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bpf: Add documentation for the -mcpu option
  2024-02-16  6:54 [PATCH] bpf: Add documentation for the -mcpu option Will Hawkins
@ 2024-02-20 12:35 ` Jose E. Marchesi
  2024-02-20 17:53   ` Will Hawkins
  0 siblings, 1 reply; 3+ messages in thread
From: Jose E. Marchesi @ 2024-02-20 12:35 UTC (permalink / raw)
  To: Will Hawkins; +Cc: gcc-patches


Hello Will.

Thanks for the patch.
I just installed it on your behalf.

> Add documentation describing the meaning and values for the -mcpu
> command-line option.
>
> Tested for bpf-unknown-none on x86_64-linux-gnu host.
>
> gcc/ChangeLog:
>
> 	* config/bpf/bpf.opt: Add help information for -mcpu.
>
> Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
> ---
>  gcc/config/bpf/bpf.opt | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/gcc/config/bpf/bpf.opt b/gcc/config/bpf/bpf.opt
> index bc5b2220116..acfddebdad7 100644
> --- a/gcc/config/bpf/bpf.opt
> +++ b/gcc/config/bpf/bpf.opt
> @@ -77,9 +77,11 @@ Enable signed move and memory load instructions.
>  
>  mcpu=
>  Target RejectNegative Joined Var(bpf_isa) Enum(bpf_isa) Init(ISA_V4)
> +Select the eBPF ISA version to target in code generation.
>  
>  Enum
>  Name(bpf_isa) Type(enum bpf_isa_version)
> +Valid ISA versions (for use with the -mcpu= option)
>  
>  EnumValue
>  Enum(bpf_isa) String(v1) Value(ISA_V1)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bpf: Add documentation for the -mcpu option
  2024-02-20 12:35 ` Jose E. Marchesi
@ 2024-02-20 17:53   ` Will Hawkins
  0 siblings, 0 replies; 3+ messages in thread
From: Will Hawkins @ 2024-02-20 17:53 UTC (permalink / raw)
  To: Jose E. Marchesi; +Cc: gcc-patches

On Tue, Feb 20, 2024 at 7:35 AM Jose E. Marchesi
<jose.marchesi@oracle.com> wrote:
>
>
> Hello Will.
>
> Thanks for the patch.
> I just installed it on your behalf.

Thank you!

>
> > Add documentation describing the meaning and values for the -mcpu
> > command-line option.
> >
> > Tested for bpf-unknown-none on x86_64-linux-gnu host.
> >
> > gcc/ChangeLog:
> >
> >       * config/bpf/bpf.opt: Add help information for -mcpu.
> >
> > Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
> > ---
> >  gcc/config/bpf/bpf.opt | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/gcc/config/bpf/bpf.opt b/gcc/config/bpf/bpf.opt
> > index bc5b2220116..acfddebdad7 100644
> > --- a/gcc/config/bpf/bpf.opt
> > +++ b/gcc/config/bpf/bpf.opt
> > @@ -77,9 +77,11 @@ Enable signed move and memory load instructions.
> >
> >  mcpu=
> >  Target RejectNegative Joined Var(bpf_isa) Enum(bpf_isa) Init(ISA_V4)
> > +Select the eBPF ISA version to target in code generation.
> >
> >  Enum
> >  Name(bpf_isa) Type(enum bpf_isa_version)
> > +Valid ISA versions (for use with the -mcpu= option)
> >
> >  EnumValue
> >  Enum(bpf_isa) String(v1) Value(ISA_V1)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-20 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16  6:54 [PATCH] bpf: Add documentation for the -mcpu option Will Hawkins
2024-02-20 12:35 ` Jose E. Marchesi
2024-02-20 17:53   ` Will Hawkins

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).