]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Wed, 3 Jun 2015 15:10:44 +0000 (15:10 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Wed, 3 Jun 2015 15:10:44 +0000 (15:10 +0000)
commitbc51ace3600b5c9b5dcad09f16858e5727866e27
tree3096135066177486fe57c67c799c10f0bcb121e2
parent80a4fe78bf071c07a71f640bd861193b85c27138
c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.

2015-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

c/
        * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
        Warn for empty struct.
        (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.

testsuite/
        * gcc.dg/Wcxx-compat-22.c: New testcase.
        * c-c++-common/Wsizeof-pointer-memaccess1.c: Pass -Wno-c++-compat.
        * c-c++-common/Wsizeof-pointer-memaccess2.c: Likewise.
        * c-c++-common/pr58346-1.c: Likewise.
        * c-c++-common/transparent-union-1.c: Likewise.

From-SVN: r224083
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c
gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c
gcc/testsuite/c-c++-common/pr58346-1.c
gcc/testsuite/c-c++-common/transparent-union-1.c
gcc/testsuite/gcc.dg/Wcxx-compat-22.c [new file with mode: 0644]