public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: WANG Xuerui <i@xen0n.name>
To: Xi Ruoyao <xry111@xry111.site>,
	Lulu Cheng <chenglulu@loongson.cn>,
	gcc-patches@gcc.gnu.org
Cc: xuchenghua@loongson.cn
Subject: Re: [PATCH] LoongArch: document -m[no-]explicit-relocs
Date: Wed, 27 Jul 2022 15:21:26 +0800	[thread overview]
Message-ID: <e46f9ffd-a3a3-0fa5-308e-c18f56863e13@xen0n.name> (raw)
In-Reply-To: <767f8ddc835151d62ce825b8fe7b2ff7b4e3d2e6.camel@xry111.site>

Hi,

On 2022/7/27 15:06, Xi Ruoyao wrote:
> Document newly introduced -m[no-]explicit-relocs options.  Ok for trunk?
>
> -- >8 --
>
> gcc/ChangeLog:
>
> 	* doc/invoke.texi: Document -m[no-]explicit-relocs for
> 	LoongArch.
> ---
>   gcc/doc/invoke.texi | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index 9a3f2d14c5a..04418f80428 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -24939,6 +24939,18 @@ global symbol: The data got table must be within +/-8EiB addressing space.
>   @end itemize
>   @end table
>   The default code model is @code{normal}.
> +
> +@item -mexplicit-relocs
> +@itemx -mno-explicit-relocs
> +@opindex mexplicit-relocs
> +@opindex mno-explicit-relocs
> +Generate (do not generate) explicit symbol relocations instead of
> +assembler macros.  Using explicit relocations can improve code generation.
> +GCC detects the capaiblities of the assembler when it is built and sets
> +the default to @code{-mexplicit-relocs} if the assembler supports the
> +syntax for explicit specification of relocations, and
> +@code{-mno-explicit-relocs} otherwise.  This option is mostly useful for
> +debugging or using an assembler different from build-time.

Some text massaging, along with some shameful copying from other (read: 
RISC-V) -mexplicit-relocs docs...

"Use or do not use assembler relocation operators when dealing with 
symbolic addresses. The alternative is to use assembler macros instead, 
which may limit optimization.

The default value for the option is determined during GCC build-time by 
detecting corresponding assembler support: @code{-mexplicit-relocs} if 
said support is present, @code{-mno-explicit-relocs} otherwise. This 
option is mostly useful for debugging, or interoperation with assemblers 
different from the build-time one."

What do you think?

>   @end table
>   
>   @node M32C Options

  reply	other threads:[~2022-07-27  7:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27  7:06 Xi Ruoyao
2022-07-27  7:21 ` WANG Xuerui [this message]
2022-07-27  8:47   ` Lulu Cheng
2022-07-27  9:15     ` Xi Ruoyao
2022-07-27  9:28       ` Lulu Cheng
2022-07-27  9:57         ` WANG Xuerui
2022-07-27 13:18           ` Xi Ruoyao

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=e46f9ffd-a3a3-0fa5-308e-c18f56863e13@xen0n.name \
    --to=i@xen0n.name \
    --cc=chenglulu@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /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).