c-typeck.c (comptypes_internal): Handle comparisons of INTEGER_TYPE, FIXED_POINT_TYPE...
authorMarek Polacek <polacek@redhat.com>
Mon, 6 Jun 2016 15:50:23 +0000 (15:50 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 6 Jun 2016 15:50:23 +0000 (15:50 +0000)
commit5545a9071573a58e858860724cb47ed7a5ef440d
tree4f2fdbd263f073b2a4d3d06e36e334555cc43fba
parent94229fb6dcd63c2dfaa6c68d6a03ada2697be729
c-typeck.c (comptypes_internal): Handle comparisons of INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.

* c-typeck.c (comptypes_internal): Handle comparisons of
INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes.  Don't check
TYPE_REF_CAN_ALIAS_ALL.

* c-c++-common/attr-may-alias-1.c: New test.
* c-c++-common/attr-may-alias-2.c: New test.
* gcc.dg/pr39464.c: Turn dg-warning into dg-bogus.

From-SVN: r237137
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-may-alias-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-may-alias-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr39464.c