c-typeck.c (parser_build_binary_op): Condition warnings for X<=Y<=Z on -Wparentheses...
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 17 Jul 2004 09:20:51 +0000 (10:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 17 Jul 2004 09:20:51 +0000 (10:20 +0100)
commit3e3970a27611d6cf2c5d8cfaa73e9e17f38b530c
treee4dd6ebe816e96ed4438c19008d235f68f8c19fc
parent10c383a4be1ee140d5387bb0448ffb160e97896d
c-typeck.c (parser_build_binary_op): Condition warnings for X<=Y<=Z on -Wparentheses instead of -Wextra.

* c-typeck.c (parser_build_binary_op): Condition warnings for
X<=Y<=Z on -Wparentheses instead of -Wextra.
* doc/invoke.texi: Update.  Document that most of -Wparentheses is
supported for C only.

testsuite:
* gcc.dg/Wparentheses-2.c, gcc.dg/Wparentheses-3.c,
gcc.dg/Wparentheses-4.c, Wparentheses-5.c, Wparentheses-6.c,
Wparentheses-7.c, Wparentheses-8.c, Wparentheses-9.c: New tests.

From-SVN: r84860
12 files changed:
gcc/ChangeLog
gcc/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wparentheses-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wparentheses-9.c [new file with mode: 0644]