public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2268] docs: Add 'S' to Machine Constraints for RISC-V
@ 2021-07-13  6:10 Kito Cheng
  0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2021-07-13  6:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:18a463bb666cc8f3421589e7641ec617acb84741

commit r12-2268-g18a463bb666cc8f3421589e7641ec617acb84741
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Fri Jul 2 10:19:30 2021 +0800

    docs: Add 'S' to Machine Constraints for RISC-V
    
    It was undocument before, but it might used in linux kernel for resolve
    code model issue, so LLVM community suggest we should document that,
    so that make it become supported/documented/non-internal machine constraints.
    
    gcc/ChangeLog:
    
            PR target/101275
            * config/riscv/constraints.md ("S"): Update description and remove
            @internal.
            * doc/md.texi (Machine Constraints): Document the 'S' constraints
            for RISC-V.

Diff:
---
 gcc/config/riscv/constraints.md | 3 +--
 gcc/doc/md.texi                 | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/constraints.md b/gcc/config/riscv/constraints.md
index 8c15c6c0486..c87d5b796a5 100644
--- a/gcc/config/riscv/constraints.md
+++ b/gcc/config/riscv/constraints.md
@@ -67,8 +67,7 @@
        (match_test "GET_CODE(XEXP(op,0)) == REG")))
 
 (define_constraint "S"
-  "@internal
-   A constant call address."
+  "A constraint that matches an absolute symbolic address."
   (match_operand 0 "absolute_symbolic_operand"))
 
 (define_constraint "U"
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 0fe70b7ea40..8225a768a5c 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -3536,6 +3536,9 @@ A 5-bit unsigned immediate for CSR access instructions.
 @item A
 An address that is held in a general-purpose register.
 
+@item S
+A constraint that matches an absolute symbolic address.
+
 @end table
 
 @item RX---@file{config/rx/constraints.md}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-13  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13  6:10 [gcc r12-2268] docs: Add 'S' to Machine Constraints for RISC-V Kito Cheng

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