diff options
author | Marek Polacek <polacek@redhat.com> | 2015-07-27 19:09:27 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-07-27 19:09:27 +0000 |
commit | f2afe6dd93ff0f07eabd85716ab767701c33e4f0 (patch) | |
tree | 345acc5884d42fd6642fbee07236f691cb326a41 /gcc/testsuite | |
parent | cca444fb00473658e18f52209dc64709af2005b2 (diff) | |
download | gcc-f2afe6dd93ff0f07eabd85716ab767701c33e4f0.zip gcc-f2afe6dd93ff0f07eabd85716ab767701c33e4f0.tar.gz gcc-f2afe6dd93ff0f07eabd85716ab767701c33e4f0.tar.bz2 |
re PR bootstrap/67030 (ARM bootstrap failure due to [-Werror=tautological-compare])
PR bootstrap/67030
* c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
* c-c++-common/Wtautological-compare-2.c: New test.
From-SVN: r226264
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Wtautological-compare-2.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3e409dd..b769807 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-27 Marek Polacek <polacek@redhat.com> + + PR bootstrap/67030 + * c-c++-common/Wtautological-compare-2.c: New test. + 2015-07-27 H.J. Lu <hongjiu.lu@intel.com> PR target/66232 diff --git a/gcc/testsuite/c-c++-common/Wtautological-compare-2.c b/gcc/testsuite/c-c++-common/Wtautological-compare-2.c new file mode 100644 index 0000000..c8aecef --- /dev/null +++ b/gcc/testsuite/c-c++-common/Wtautological-compare-2.c @@ -0,0 +1,15 @@ +/* PR bootstrap/67030 */ +/* { dg-do compile } */ +/* { dg-options "-Wtautological-compare" } */ + +extern int foo (void); + +#define A a +#define B A +#define FOO (A > B) + +void +fn1 (int a) +{ + if (FOO); +} |