This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Unreviewed patch: Fix i86_attribute_table for w32 targets
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Subject: Unreviewed patch: Fix i86_attribute_table for w32 targets
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Wed, 10 Oct 2001 08:25:59 +1000 (EST)
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!