diff options
author | Joseph Myers <jsm28@gcc.gnu.org> | 2000-10-11 22:54:33 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-10-11 22:54:33 +0100 |
commit | bb58bec5cf51bf1cadf8e2462a61e965806f5c6e (patch) | |
tree | dbad9f895b3de111042fcb0bf7dd74fc9cdd6f68 /gcc/c-tree.h | |
parent | d0b43a40b5395e51595342a2b41dad2b44cf9a09 (diff) | |
download | gcc-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/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index b8adce1..a936b22 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -366,6 +366,10 @@ extern int warn_missing_braces; extern int warn_sign_compare; +/* Warn about possible violations of sequence point rules. */ + +extern int warn_sequence_point; + /* Warn about testing equality of floating point numbers. */ extern int warn_float_equal; |