aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@gcc.gnu.org>2000-10-11 22:54:33 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2000-10-11 22:54:33 +0100
commitbb58bec5cf51bf1cadf8e2462a61e965806f5c6e (patch)
treedbad9f895b3de111042fcb0bf7dd74fc9cdd6f68 /gcc/stmt.c
parentd0b43a40b5395e51595342a2b41dad2b44cf9a09 (diff)
downloadgcc-bb58bec5cf51bf1cadf8e2462a61e965806f5c6e.zip
gcc-bb58bec5cf51bf1cadf8e2462a61e965806f5c6e.tar.gz
gcc-bb58bec5cf51bf1cadf8e2462a61e965806f5c6e.tar.bz2
c-typeck.c (check_modify_expr): New function.
* c-typeck.c (check_modify_expr): New function. (build_modify_expr): Call it if warn_sequence_point. * c-decl.c (warn_sequence_point): New variable. (c_decode_option): Handle -Wsequence-point and -Wno-sequence-point. Enable -Wsequence-point as part of -Wall. * c-tree.h (warn_sequence_point): Declare. * invoke.texi (-Wsequence-point): Document. * toplev.c (documented_lang_options): Add -Wsequence-point and -Wno-sequence-point. Original work by Michael Meeks, 16 Jun 1998. testsuite: * gcc.dg/sequence-pt-1.c: New test. From-SVN: r36840
Diffstat (limited to 'gcc/stmt.c')
0 files changed, 0 insertions, 0 deletions