]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cygwin32.h (VALID_MACHINE_TYPE_ATTRIBUTE): New macro.
authorJeff Law <law@gcc.gnu.org>
Tue, 28 Jul 1998 22:31:09 +0000 (16:31 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 28 Jul 1998 22:31:09 +0000 (16:31 -0600)
x
        * i386/cygwin32.h (VALID_MACHINE_TYPE_ATTRIBUTE): New macro.
        * i386/winnt.c (associated_type): New fn.
        (i386_pe_valid_type_attribute_p): New fn.
        (i386_pe_check_vtable_importexport): Remove.
        (i386_pe_dllexport_p): Use associated_type.
        (i386_pe_dllimport_p): Likewise.
        From Antonio M. O. Neto <anmendes@cruzeironet.com.br>:
        * i386.c (i386_valid_type_attribute_p): Also accept
        attributes for METHOD_TYPEs.

From-SVN: r21459

gcc/config/i386/i386.c

index 8e5211f133793cddd4776b6517c1936764a66939..d3410635266806545f4fed9d119f2d49cf33a487 100644 (file)
@@ -546,6 +546,7 @@ i386_valid_type_attribute_p (type, attributes, identifier, args)
      tree args;
 {
   if (TREE_CODE (type) != FUNCTION_TYPE
+      && TREE_CODE (type) != METHOD_TYPE
       && TREE_CODE (type) != FIELD_DECL
       && TREE_CODE (type) != TYPE_DECL)
     return 0;