aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-05-10 13:38:34 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2005-05-10 13:38:34 +0100
commit2798c11f46535b4581da39ed747dd07f02085ae5 (patch)
treebf0363a9abcdf9390c78c1340cf7f4002e86ccaf /gcc/tree-ssa-loop-unswitch.c
parent56d6849d895084a21f01d232f20fa6db9aecc971 (diff)
downloadgcc-2798c11f46535b4581da39ed747dd07f02085ae5.zip
gcc-2798c11f46535b4581da39ed747dd07f02085ae5.tar.gz
gcc-2798c11f46535b4581da39ed747dd07f02085ae5.tar.bz2
re PR c/21342 (some incompatible external declarations not diagnosed)
PR c/21342 * c-decl.c (pushdecl): When there is a declaration in the current scope and the declarations are external linkage, check for compatibility with the type in the external scope and update the type in the external scope with the composite type information. Do not form a composite type of the new type and the visible type if they are incompatible. testsuite: * gcc.dg/redecl-11.c, gcc.dg/redecl-12.c, gcc.dg/redecl-13.c, gcc.dg/redecl-14.c, gcc.dg/redecl-15.c: New tests. From-SVN: r99510
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions