This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Tentative patch to catch a[n]=b[n++]...
- To: Michael Meeks <michael at imaginator dot com>
- Subject: Re: Tentative patch to catch a[n]=b[n++]...
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Wed, 25 Mar 1998 13:03:44 -0800
- cc: egcs at cygnus dot com
I have written a patch for gcc-2.8.1 / egcs-1.0.2 that flags
warnings on the more simple cases of modifying a variable between sequence
points.
It would be interesting to have such a warning option in gcc.
Since this patch may warn for some code that is OK (if I understood you
corectly), it should be a separate -W option that is not enabled by default by
any other -W options.
Presumably this is a non-trivial change, which means we will need a copyright
assignment and/or disclaimer (depending on the size) before we can accept it.
Jim