This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fwd: PATCH ix86_attribute_table (GCC 3.1)


FYI 

--- Danny Smith <danny_r_smith_2001@yahoo.co.nz> wrote: > Date: Wed, 26
Sep 2001 14:17:11 +1000 (EST)
> From: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
> Subject: PATCH ix86_attribute_table
> To: GCC Patches <gcc-patches@gcc.gnu.org>
> 
> i386 attributes dllimport, dllexport and shared  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!
>  


http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]