]> git.ipfire.org Git - thirdparty/gcc.git/commit
2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
authorprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2015 15:10:44 +0000 (15:10 +0000)
committerprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2015 15:10:44 +0000 (15:10 +0000)
commitd1df0bfccbf06e761cbeecb1ec96b53e0fc20215
tree3096135066177486fe57c67c799c10f0bcb121e2
parent94302dfa934c612eccbc19359cd825bd52c21aa6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224083 138bc75d-0d04-0410-961f-82ee72b054a4
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]