PR debug/29436, c/32326
authorJason Merrill <jason@redhat.com>
Mon, 19 Nov 2007 21:35:13 +0000 (16:35 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Nov 2007 21:35:13 +0000 (16:35 -0500)
commit4009f2e7f047aafc40fc9a27d884497e87ae0c05
tree1d16dbdc75464cebb92ce8862847635b43953c3f
parent4d4447b56b603b0786a0de3601ba45618dc6816c
PR debug/29436, c/32326

        PR debug/29436, c/32326
        * tree.c (build_type_attribute_qual_variant): Refuse to make
        a distinct copy of a struct/enum type.  Use build_distinct_type_copy.
        * doc/extend.texi (Type Attributes): Don't encourage people to add
        attributes to struct/enum types in a typedef.  Fix
        transparent_union example.

        * tree-inline.c (remap_type_1): Remove code that's redundant with
        remap_type.
        (build_duplicate_type): Set id.copy_decl.
        * c-common.c (handle_transparent_union_attribute): Simplify logic.

From-SVN: r130297
gcc/ChangeLog
gcc/c-common.c
gcc/doc/extend.texi
gcc/testsuite/gcc.c-torture/execute/mayalias-2.c
gcc/testsuite/gcc.c-torture/execute/mayalias-3.c
gcc/tree-inline.c
gcc/tree.c