This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pre and post increment


Hello Andrew,

Thanks for your suggestion, but no difference in output.

Question: Did you expect different output too?

Thanks

Quo ting Andrew Pinski <pinskia@gmail.com>:

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]