[Bug c/60103] Spurious -Wsequence-point warning with -O1

2014-02-10 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60103 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/60103] Spurious -Wsequence-point warning with -O1

2014-02-06 Thread chengniansun at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60103 --- Comment #2 from Chengnian Sun --- (In reply to Andrew Pinski from comment #1) > I think C11 and C90/C99 have a different idea here. There is a relative > sequence point between the function call fn2 and the 0 but there is no > sequence point

[Bug c/60103] Spurious -Wsequence-point warning with -O1

2014-02-06 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60103 --- Comment #1 from Andrew Pinski --- I think C11 and C90/C99 have a different idea here. There is a relative sequence point between the function call fn2 and the 0 but there is no sequence point between the two assignments I think. Sequence poi