public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* a mistake in gccint doc
@ 2009-05-15 16:34 Eric Fisher
  2009-05-15 23:16 ` Diego Novillo
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Fisher @ 2009-05-15 16:34 UTC (permalink / raw)
  To: gcc

Hello,

In 'SSA Operands' node, tree-ssa.texi, the original text are

"
For instance, given

@smallexample
@{
  int a, b;
  a = b
@}
@end smallexample

Since @code{a} and @code{b} are non-aliased locals, the statement
@code{a = b} will have one real definition and one real use because
variable @code{b} is completely modified with the contents of
variable @code{a}.  Real definition are also known as @dfn{killing
definitions}.  Similarly, the use of @code{a} reads all its bits.
"

I think it's a mistake between a and b. It should be,

"
variable @code{a} is completely modified with the contents of
variable @code{b}.  Real definition are also known as @dfn{killing
definitions}.  Similarly, the use of @code{b} reads all its bits.
"

Eric Fisher
May 15, 2009

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: a mistake in gccint doc
  2009-05-15 16:34 a mistake in gccint doc Eric Fisher
@ 2009-05-15 23:16 ` Diego Novillo
  2009-05-16  9:29   ` Eric Fisher
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Novillo @ 2009-05-15 23:16 UTC (permalink / raw)
  To: Eric Fisher; +Cc: gcc

On Fri, May 15, 2009 at 02:12, Eric Fisher <joefoxreal@gmail.com> wrote:

> I think it's a mistake between a and b. It should be,
>
> "
> variable @code{a} is completely modified with the contents of
> variable @code{b}.  Real definition are also known as @dfn{killing
> definitions}.  Similarly, the use of @code{b} reads all its bits.
> "

Thanks, could you send a patch for tree-ssa.texi?


Diego.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: a mistake in gccint doc
  2009-05-15 23:16 ` Diego Novillo
@ 2009-05-16  9:29   ` Eric Fisher
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Fisher @ 2009-05-16  9:29 UTC (permalink / raw)
  To: gcc, gcc-patches, Diego Novillo

2009/5/16 Diego Novillo <dnovillo@google.com>:
> On Fri, May 15, 2009 at 02:12, Eric Fisher <joefoxreal@gmail.com> wrote:
>
>> I think it's a mistake between a and b. It should be,
>>
>> "
>> variable @code{a} is completely modified with the contents of
>> variable @code{b}.  Real definition are also known as @dfn{killing
>> definitions}.  Similarly, the use of @code{b} reads all its bits.
>> "
>
> Thanks, could you send a patch for tree-ssa.texi?
>
>
> Diego.
>

This is a patch for tree-ssa.texi, which corrects the mistake between a and b.

2009-05-16 Eric Fisher <joefoxreal@gmail.com>
    * gcc/doc/tree-ssa.texi:  fix a mistake in SSA Operands section

Index: tree-ssa.texi
===================================================================
--- tree-ssa.texi       (revision 147604)
+++ tree-ssa.texi       (working copy)
@@ -108,9 +108,9 @@ full object that they represent.  For in

 Since @code{a} and @code{b} are non-aliased locals, the statement
 @code{a = b} will have one real definition and one real use because
-variable @code{b} is completely modified with the contents of
-variable @code{a}.  Real definition are also known as @dfn{killing
-definitions}.  Similarly, the use of @code{a} reads all its bits.
+variable @code{a} is completely modified with the contents of
+variable @code{b}.  Real definition are also known as @dfn{killing
+definitions}.  Similarly, the use of @code{b} reads all its bits.

 In contrast, virtual operands are used with variables that can have
 a partial or ambiguous reference.  This includes structures, arrays,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-16  3:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-15 16:34 a mistake in gccint doc Eric Fisher
2009-05-15 23:16 ` Diego Novillo
2009-05-16  9:29   ` Eric Fisher

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