diff mbox

Typo in GCC Internals documentation.

Message ID CAMDjE1MjFZfAUQG_dvqF+OqqbxYF+dUyXmisarz9OWB6C=hzEQ@mail.gmail.com
State New
Headers show

Commit Message

Nicklas Bo Jensen July 23, 2013, 9:32 a.m. UTC
Hi,

Found a typo in the GCC Internals documentation in one of the code
examples in 16.18.2 RTL to RTL Peephole Optimizers.

Best,
Nicklas

Comments

Marek Polacek July 23, 2013, 10:01 a.m. UTC | #1
On Tue, Jul 23, 2013 at 11:32:39AM +0200, Nicklas Bo Jensen wrote:
> Hi,
> 
> Found a typo in the GCC Internals documentation in one of the code
> examples in 16.18.2 RTL to RTL Peephole Optimizers.

Thanks, looks good, though the ChangeLog entry is missing, so
something like:

2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>

	* doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.

> Best,
> Nicklas
> 
> Index: gcc/doc/md.texi
> ===================================================================
> --- gcc/doc/md.texi (revision 201156)
> +++ gcc/doc/md.texi (working copy)
> @@ -7578,7 +7578,7 @@
>    "/* @r{determine 1 does not overlap 0 and 2} */"
>    [(set (match_dup 4) (match_dup 1))
>     (set (match_dup 0) (match_dup 4))
> -   (set (match_dup 2) (match_dup 4))]
> +   (set (match_dup 2) (match_dup 4))
>     (set (match_dup 3) (match_dup 4))]
>    "")
>  @end smallexample

	Marek
Jeff Law July 23, 2013, 3:39 p.m. UTC | #2
On 07/23/2013 04:01 AM, Marek Polacek wrote:
> On Tue, Jul 23, 2013 at 11:32:39AM +0200, Nicklas Bo Jensen wrote:
>> Hi,
>>
>> Found a typo in the GCC Internals documentation in one of the code
>> examples in 16.18.2 RTL to RTL Peephole Optimizers.
>
> Thanks, looks good, though the ChangeLog entry is missing, so
> something like:
>
> 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
>
> 	* doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
Thanks.  Installed.

jeff
diff mbox

Patch

Index: gcc/doc/md.texi
===================================================================
--- gcc/doc/md.texi (revision 201156)
+++ gcc/doc/md.texi (working copy)
@@ -7578,7 +7578,7 @@ 
   "/* @r{determine 1 does not overlap 0 and 2} */"
   [(set (match_dup 4) (match_dup 1))
    (set (match_dup 0) (match_dup 4))
-   (set (match_dup 2) (match_dup 4))]
+   (set (match_dup 2) (match_dup 4))
    (set (match_dup 3) (match_dup 4))]
   "")
 @end smallexample