public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4850] docs: Fix peephole paragraph ordering
@ 2022-12-22 17:05 Andrew Carlotti
  0 siblings, 0 replies; only message in thread
From: Andrew Carlotti @ 2022-12-22 17:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:74544bdadc44edcd8d55792972e35b2cc07515a4

commit r13-4850-g74544bdadc44edcd8d55792972e35b2cc07515a4
Author: Andrew Carlotti <andrew.carlotti@arm.com>
Date:   Sun Dec 18 02:52:02 2022 +0000

    docs: Fix peephole paragraph ordering
    
    The documentation for the DONE and FAIL macros was incorrectly inserted
    between example code, and a remark attached to that example.
    
    gcc/ChangeLog:
    
            * doc/md.texi: Move example code remark next to it's code block.

Diff:
---
 gcc/doc/md.texi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index cc28f868fc8..c1d3ae2060d 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -9321,6 +9321,11 @@ so here's a silly made-up example:
   "")
 @end smallexample
 
+@noindent
+If we had not added the @code{(match_dup 4)} in the middle of the input
+sequence, it might have been the case that the register we chose at the
+beginning of the sequence is killed by the first or second @code{set}.
+
 There are two special macros defined for use in the preparation statements:
 @code{DONE} and @code{FAIL}.  Use them with a following semicolon,
 as a statement.
@@ -9348,11 +9353,6 @@ If the preparation falls through (invokes neither @code{DONE} nor
 @code{FAIL}), then the @code{define_peephole2} uses the replacement
 template.
 
-@noindent
-If we had not added the @code{(match_dup 4)} in the middle of the input
-sequence, it might have been the case that the register we chose at the
-beginning of the sequence is killed by the first or second @code{set}.
-
 @end ifset
 @ifset INTERNALS
 @node Insn Attributes

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

only message in thread, other threads:[~2022-12-22 17:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 17:05 [gcc r13-4850] docs: Fix peephole paragraph ordering Andrew Carlotti

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