Message ID | 20101116021054.GA12899@bromo.med.uc.edu |
---|---|
State | New |
Headers | show |
Jack Howarth <howarth@bromo.med.uc.edu> writes: > With this patch and the additional change of... > > Index: gcc/config/darwin-protos.h > =================================================================== > --- gcc/config/darwin-protos.h (revision 166790) > +++ gcc/config/darwin-protos.h (working copy) > @@ -18,6 +18,8 @@ > along with GCC; see the file COPYING3. If not see > <http://www.gnu.org/licenses/>. */ > > +#include "c-family/c-format.h" > + > extern void darwin_init_sections (void); > extern int name_needs_quotes (const char *); > > @@ -101,6 +103,7 @@ > extern void darwin_check_cfstring_format_arg (tree, tree); > extern tree darwin_build_constant_cfstring (tree); > extern void darwin_enter_string_into_cfstring_table (tree); > +extern const format_kind_info darwin_additional_format_types[]; > > extern void darwin_asm_output_anchor (rtx symbol); > extern bool darwin_kextabi_p (void); > > x86_64-apple-darwin10 successfully bootstraps with --enable-build-with-cxx. Thanks. That's actually not the right fix. The right fix is to leave darwin-protos.h unchanged, and to change this line in darwin-c.c: const format_kind_info darwin_additional_format_types[] = { It needs to be EXPORTED_CONST format_kind_info darwin_additional_format_types[] = { I can't really test that change, but if it works for you I'll preapprove it. Thanks. Ian
Index: gcc/config/darwin-protos.h =================================================================== --- gcc/config/darwin-protos.h (revision 166790) +++ gcc/config/darwin-protos.h (working copy) @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#include "c-family/c-format.h" + extern void darwin_init_sections (void); extern int name_needs_quotes (const char *); @@ -101,6 +103,7 @@ extern void darwin_check_cfstring_format_arg (tree, tree); extern tree darwin_build_constant_cfstring (tree); extern void darwin_enter_string_into_cfstring_table (tree); +extern const format_kind_info darwin_additional_format_types[]; extern void darwin_asm_output_anchor (rtx symbol); extern bool darwin_kextabi_p (void);