aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-04-15 15:49:30 -0600
committerMartin Sebor <msebor@redhat.com>2021-04-15 15:51:00 -0600
commitda879e01ecd35737c18be1da3324f4560aba1961 (patch)
treef51df9e8918cf84bc287bbdd0e7f4b9300da023f /libgomp
parent58fe131b91007793c0f12f5fe6cab3f1a017d0fa (diff)
downloadgcc-da879e01ecd35737c18be1da3324f4560aba1961.zip
gcc-da879e01ecd35737c18be1da3324f4560aba1961.tar.gz
gcc-da879e01ecd35737c18be1da3324f4560aba1961.tar.bz2
Propagate type attribute when merging extern declarations at local scope.
Resolves: PR c/99420 - bogus -Warray-parameter on a function redeclaration in function scope PR c/99972 - missing -Wunused-result on a call to a locally redeclared warn_unused_result function gcc/c/ChangeLog: PR c/99420 PR c/99972 * c-decl.c (pushdecl): Always propagate type attribute. gcc/testsuite/ChangeLog: PR c/99420 PR c/99972 * gcc.dg/Warray-parameter-9.c: New test. * gcc.dg/Wnonnull-6.c: New test. * gcc.dg/Wreturn-type3.c: New test. * gcc.dg/Wunused-result.c: New test. * gcc.dg/attr-noreturn.c: New test. * gcc.dg/attr-returns-nonnull.c: New test.
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions