Unreviewed patch: Fix i86_attribute_table for w32 targets
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Tue Oct 9 15:26:00 GMT 2001
The patch submitted at:
http://gcc.gnu.org/ml/gcc-patches/2001-09/msg01091.html
is necessary for building 3.1 for mingw32 and cygwin. The dllimport
and dllexport attributes take no arguments.
Please apply to trunk.
Thanks
Here is the patch again:
ChangeLog
2001-10-09 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.
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.316
diff -u -p -r1.316 i386.c
--- i386.c 2001/10/07 16:51:10 1.316
+++ i386.c 2001/10/08 21:10:57
@@ -1061,9 +1061,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!
More information about the Gcc-patches
mailing list