]> granicus.if.org Git - clang/commit
Revert "Attributes on K&R C functions should not cause incompatible..."
authorRenato Golin <renato.golin@linaro.org>
Sun, 12 Feb 2017 19:08:02 +0000 (19:08 +0000)
committerRenato Golin <renato.golin@linaro.org>
Sun, 12 Feb 2017 19:08:02 +0000 (19:08 +0000)
commit17ad1c0c58545231709072bc0ff038811da9958f
tree8711fb23b272837b74db72f6768b86e40d9a2cc5
parentd4881d607c5b4b67ca815a565a25592de5f40476
Revert "Attributes on K&R C functions should not cause incompatible..."

...function type with a redeclaration having the same attribute. Fixing this
introduced a secondary problem where we were assuming that K&R functions
could not be attributed types when reporting old-style function definitions
that are not preceded by a prototype."

Also Revert "Hopefully fixes a compile error introduced by r294861."

This reverts commit r294862, r294861, as they bork the ARM builds and
haven't fix it back.

Also, please, short commit titles, long commit decsriptions...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294910 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/AST/TypeLoc.h
lib/Sema/SemaDecl.cpp
test/Sema/knr-def-call.c
test/Sema/warn-strict-prototypes.c