This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: inconsistencies in the documentation regarding side effects with auto inc-dec
- From: Kenneth Zadeck <zadeck at naturalbridge dot com>
- To: Ramana Radhakrishnan <ramana dot r at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 17 Mar 2010 19:36:55 -0400
- Subject: Re: inconsistencies in the documentation regarding side effects with auto inc-dec
- References: <67ea2eb1003171628v6e632114sea6abc6a95155244@mail.gmail.com>
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
>