From 34097e36ee17821c0b83abe8d82b4bf8184dbf0b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 4 Jul 2009 22:52:57 +0000 Subject: [PATCH] re PR target/40636 (Build failed with --enable-build-with-cxx (mingw32 target)) PR target/40636 * config/i386/msformat-c.c (mingw_format_attributes): Declare as EXPORTED_CONST. (mingw_format_attribute_overrides): Likewise. From-SVN: r149243 --- gcc/ChangeLog | 7 +++++++ gcc/config/i386/msformat-c.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d96786..5e51659 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-07-04 Ian Lance Taylor + + PR target/40636 + * config/i386/msformat-c.c (mingw_format_attributes): Declare as + EXPORTED_CONST. + (mingw_format_attribute_overrides): Likewise. + 2009-07-04 Jakub Jelinek PR debug/40596 diff --git a/gcc/config/i386/msformat-c.c b/gcc/config/i386/msformat-c.c index dec8f40..d7eb42d 100644 --- a/gcc/config/i386/msformat-c.c +++ b/gcc/config/i386/msformat-c.c @@ -145,7 +145,7 @@ static const format_char_info ms_time_char_table[] = { 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_attributes[3] = }; /* 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" }, -- 2.7.4