This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH ix86_attritubute_table
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Subject: PATCH ix86_attritubute_table
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Wed, 26 Sep 2001 14:17:11 +1000 (EST)
i386 attributes dllimport, dllexport and shared attributes have no
arguments. This patch corrects ix86_attribute_table.
Tested with bootstrap on i386-pc-mingw32 host.
ChangeLog
2001-09-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
* config/i386/i386.c (ix86_attribute_table): Correct
min_len, max_len fields for dllimport, dllexport and shared.
--- i386.c.orig Wed Sep 26 15:53:16 2001
+++ i386.c Wed Sep 26 15:53:48 2001
@@ -1033,9 +1033,9 @@ const struct attribute_spec ix86_attribu
passed in registers. */
{ "regparm", 1, 1, false, true, true,
ix86_handle_regparm_attribute },
#ifdef TARGET_DLLIMPORT_DECL_ATTRIBUTES
- { "dllimport", 1, 1, false, false, false, ix86_handle_dll_attribute
},
- { "dllexport", 1, 1, false, false, false, ix86_handle_dll_attribute
},
- { "shared", 1, 1, true, false, false,
ix86_handle_shared_attribute },
+ { "dllimport", 0, 0, false, false, false, ix86_handle_dll_attribute
},
+ { "dllexport", 0, 0, false, false, false, ix86_handle_dll_attribute
},
+ { "shared", 0, 0, true, false, false,
ix86_handle_shared_attribute },
#endif
{ NULL, 0, 0, false, false, false, NULL }
};
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!