This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch committed: Use EXPORTED_CONST in msformat-c.c


PR 40636 points out that --enable-build-with-cxx fails for the mingw32
target, because some const declarations in msformat-c.c need to be
explicitly extern.  This patch changes them to use EXPORTED_CONST
instead.  Built and checked cross-compiler, committed as obvious.

Ian


2009-07-04  Ian Lance Taylor  <iant@google.com>

	PR target/40636
	* config/i386/msformat-c.c (mingw_format_attributes): Declare as
	EXPORTED_CONST.
	(mingw_format_attribute_overrides): Likewise.


Index: config/i386/msformat-c.c
===================================================================
--- config/i386/msformat-c.c	(revision 149242)
+++ config/i386/msformat-c.c	(working copy)
@@ -145,7 +145,7 @@ static const format_char_info ms_time_ch
   { NULL,		0, STD_C89, NOLENGTHS, NULL, NULL, NULL }
 };
 
-const format_kind_info mingw_format_attributes[3] =
+EXPORTED_CONST format_kind_info mingw_format_attributes[3] =
 {
   { "ms_printf",   ms_printf_length_specs,  ms_print_char_table, " +#0-'", NULL,
     ms_printf_flag_specs, ms_printf_flag_pairs,
@@ -167,7 +167,7 @@ const format_kind_info mingw_format_attr
 };
 
 /* Default overrides for printf, scanf and strftime.  */
-const target_ovr_attr mingw_format_attribute_overrides[4] =
+EXPORTED_CONST target_ovr_attr mingw_format_attribute_overrides[4] =
 {
   { "ms_printf", "printf" },
   { "ms_scanf", "scanf" },

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