This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pre and post increment
- From: Andrew Pinski <pinskia at gmail dot com>
- To: imap at adari dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 20 Jul 2009 08:33:22 -0700
- Subject: Re: Pre and post increment
- References: <1248103831.4a648d9703eb1@web.adari.net>
On Mon, Jul 20, 2009 at 8:30 AM, <imap@adari.net> wrote:
> Hello,
>
> Here is a program with output in gcc (4.3.2) on pre and post increments:
Try using -Wsequence-point. With that option GCC produces:
t.c:6: warning: operation on 'a' may be undefined
(and many warnings of the same wording for every line afterwards).
Thanks,
Andrew Pinski