aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-05-23 21:47:16 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-05-23 21:47:16 +0100
commitdc5027f47440baef6b984b029fb5c3e5ee59e5ba (patch)
tree83fb32a9434ffd3ff6d6985dd79f64b42099c036 /gcc/java/expr.c
parent8f9e812dacef3cc9eedb9fa17111affa93454287 (diff)
downloadgcc-dc5027f47440baef6b984b029fb5c3e5ee59e5ba.zip
gcc-dc5027f47440baef6b984b029fb5c3e5ee59e5ba.tar.gz
gcc-dc5027f47440baef6b984b029fb5c3e5ee59e5ba.tar.bz2
c-decl.c (diagnose_mismatched_decls): Give error for duplicate typedefs with different but compatible types.
* c-decl.c (diagnose_mismatched_decls): Give error for duplicate typedefs with different but compatible types. Allow duplicate typedefs with the same type except for pedantic non-C1X, but give warning for variably modified types. * c-typeck.c (tagged_types_tu_compatible_p, function_types_compatible_p, type_lists_compatible_p, comptypes_internal): Add parameter different_types_p; set *different_types_p for different but compatible types. All callers changed. (comptypes_check_different_types): New. * c-tree.h (comptypes_check_different_types): Declare. testsuite: * gcc.dg/c1x-typedef-1.c, gcc.dg/c1x-typedef-2.c, gcc.dg/c90-typedef-1.c, gcc.dg/c99-typedef-1.c: New tests. * gcc.dg/decl-8.c: Use -std=gnu89 -pedantic-errors. From-SVN: r159767
Diffstat (limited to 'gcc/java/expr.c')
0 files changed, 0 insertions, 0 deletions