inconsistencies in the documentation regarding side effects with auto inc-dec

2010-03-17 Thread Ramana Radhakrishnan
Hi Kenneth,

The documentation of auto-inc-dec still refers to flow and when I
raised this on IRC folks suggested that you might have some
documentation fixes if any, in this area.

http://gcc.gnu.org/onlinedocs/gccint/Incdec.html#Incdec

The lines in the doco are as below :

These embedded side effect expressions must be used with care.
Instruction patterns may not use them. Until the `flow' pass of the
compiler, they may occur only to represent pushes onto the stack. The
`flow' pass finds cases where registers are incremented or decremented
in one instruction and used as an address shortly before or after;
these cases are then transformed to use pre- or post-increment or
-decrement.


Cheers
Ramana


Re: inconsistencies in the documentation regarding side effects with auto inc-dec

2010-03-17 Thread Kenneth Zadeck
i will fix it.

kenny

On 03/17/2010 07:28 PM, Ramana Radhakrishnan wrote:
 Hi Kenneth,

 The documentation of auto-inc-dec still refers to flow and when I
 raised this on IRC folks suggested that you might have some
 documentation fixes if any, in this area.

 http://gcc.gnu.org/onlinedocs/gccint/Incdec.html#Incdec

 The lines in the doco are as below :

 These embedded side effect expressions must be used with care.
 Instruction patterns may not use them. Until the `flow' pass of the
 compiler, they may occur only to represent pushes onto the stack. The
 `flow' pass finds cases where registers are incremented or decremented
 in one instruction and used as an address shortly before or after;
 these cases are then transformed to use pre- or post-increment or
 -decrement.


 Cheers
 Ramana