summaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-11 21:54:33 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-11 21:54:33 +0000
commitcf18ae1fe0f49252e45d2281291fc101b170c9f7 (patch)
treedbad9f895b3de111042fcb0bf7dd74fc9cdd6f68 /gcc/c-tree.h
parent436106b5db7688e5cd57c7b348f3a844eca24f52 (diff)
downloadgcc-cf18ae1fe0f49252e45d2281291fc101b170c9f7.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index b8adce15454..a936b22438d 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;