From: Michael Eager <eager@eagercon.com>
To: Neal Frager <neal.frager@amd.com>, binutils@sourceware.org
Cc: ibai.erkiaga-elorza@amd.com, nagaraju.mekala@amd.com,
mark.hatle@amd.com, sadanand.mutyala@amd.com,
appa.rao.nali@amd.com, vidhumouli.hunsigida@amd.com,
luca.ceresoli@bootlin.com
Subject: Re: [PATCH v2 1/1] gas: microblaze: Add mlittle-endian and mbig-endian flags
Date: Thu, 28 Sep 2023 13:16:04 -0700 [thread overview]
Message-ID: <b605db2c-6487-5c32-c03f-7e8e15b7dad4@eagercon.com> (raw)
In-Reply-To: <20230927144833.1671892-1-neal.frager@amd.com>
On 9/27/23 07:48, Neal Frager via Binutils wrote:
> Added support in gas for mlittle-endian and mbig-endian flags
> as options.
>
> Updated show usage for MicroBlaze specific assembler options
> to include new entries.
>
> This patch has been tested for years of AMD Xilinx Yocto
> releases as part of the following patch set:
>
> https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils
>
> Signed-off-by: nagaraju <nagaraju.mekala@amd.com>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
> V1->V2:
> - removed new options which were unnecessary
> - added documentation for MicroBlaze specific options
> ---
> gas/config/tc-microblaze.c | 5 +++++
> gas/doc/as.texi | 2 +-
> gas/doc/c-microblaze.texi | 16 ++++++++++++++++
> 3 files changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
> index 564e0b786e2..aa85174befd 100644
> --- a/gas/config/tc-microblaze.c
> +++ b/gas/config/tc-microblaze.c
> @@ -1854,6 +1854,8 @@ struct option md_longopts[] =
> {
> {"EB", no_argument, NULL, OPTION_EB},
> {"EL", no_argument, NULL, OPTION_EL},
> + {"mlittle-endian", no_argument, NULL, OPTION_EL},
> + {"mbig-endian", no_argument, NULL, OPTION_EB},
> { NULL, no_argument, NULL, 0}
> };
>
> @@ -2524,6 +2526,9 @@ md_show_usage (FILE * stream ATTRIBUTE_UNUSED)
> /* fprintf(stream, _("\
> MicroBlaze options:\n\
> -noSmall Data in the comm and data sections do not go into the small data section\n")); */
> + fprintf (stream, _(" MicroBlaze specific assembler options:\n"));
> + fprintf (stream, " -%-23s%s\n", "mbig-endian", N_("assemble for a big endian cpu"));
> + fprintf (stream, " -%-23s%s\n", "mlittle-endian", N_("assemble for a little endian cpu"));
> }
>
>
> diff --git a/gas/doc/as.texi b/gas/doc/as.texi
> index 6a3e5eed39f..52571d95dd2 100644
> --- a/gas/doc/as.texi
> +++ b/gas/doc/as.texi
> @@ -439,7 +439,7 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}.
> @end ifset
> @ifset MICROBLAZE
> @emph{Target MICROBLAZE options:}
> -@c MicroBlaze has no machine-dependent assembler options.
> + [@b{-mlittle-endian}] [@b{-mbig-endian}]
> @end ifset
> @ifset MIPS
>
> diff --git a/gas/doc/c-microblaze.texi b/gas/doc/c-microblaze.texi
> index fabc5ba54df..a76897861f7 100644
> --- a/gas/doc/c-microblaze.texi
> +++ b/gas/doc/c-microblaze.texi
> @@ -22,6 +22,7 @@ Reference Guide (UG081)} available at www.xilinx.com.
> @menu
> * MicroBlaze Directives:: Directives for MicroBlaze Processors.
> * MicroBlaze Syntax:: Syntax for the MicroBlaze
> +* MicroBlaze Options:: Options for MicroBlaze Processors.
> @end menu
>
> @node MicroBlaze Directives
> @@ -97,3 +98,18 @@ preprocessor control command (@pxref{Preprocessing}).
> @cindex MicroBlaze line separator
> The @samp{;} character can be used to separate statements on the same
> line.
> +
> +@node MicroBlaze Options
> +@section Options
> +
> +MicroBlaze processors support the following options:
> +
> +@cindex MicroBlaze Options
> +
> +@table
This should be
@table @code
(See similar text in c-mips.texi, for example.)
> +@item -mbig-endian
> +Build for MicroBlaze in Big Endian configuration.
> +
> +@item -mlittle-endian
> +Build for MicroBlaze in Little Endian configuration.
> +@end table
Did you rebuild the docs with this updated patch? You should have
gotten an error message from MAKEINFO.
Committed with above change.
--
Michael Eager
prev parent reply other threads:[~2023-09-28 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-27 14:48 Neal Frager
2023-09-27 15:14 ` Nick Clifton
2023-09-28 20:16 ` Michael Eager [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=b605db2c-6487-5c32-c03f-7e8e15b7dad4@eagercon.com \
--to=eager@eagercon.com \
--cc=appa.rao.nali@amd.com \
--cc=binutils@sourceware.org \
--cc=ibai.erkiaga-elorza@amd.com \
--cc=luca.ceresoli@bootlin.com \
--cc=mark.hatle@amd.com \
--cc=nagaraju.mekala@amd.com \
--cc=neal.frager@amd.com \
--cc=sadanand.mutyala@amd.com \
--cc=vidhumouli.hunsigida@amd.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).