Patchwork Export darwin_additional_format_types

login
register
mail settings
Submitter Jack Howarth
Date Nov. 17, 2010, 1:44 p.m.
Message ID <20101117134400.GA31063@bromo.med.uc.edu>
Download mbox | patch
Permalink /patch/71568/
State New
Headers show

Comments

Jack Howarth - Nov. 17, 2010, 1:44 p.m.
The attached patch resolves the issue of the symbol 
darwin_additional_format_types being undefined during the
--enable-build-with-cxx bootstrap on darwin. Bootstrap and
regression tested on x86_64-apple-darwin10. Okay for gcc trunk?
           Jack

2011-11-16  Jack Howarth  <howarth@bromo.med.uc.edu>
	    Ian Lance Taylor  <iant@google.com>

	* config/darwin-c.c (darwin_additional_format_types): Export.
Ian Taylor - Nov. 17, 2010, 3:42 p.m.
Jack Howarth <howarth@bromo.med.uc.edu> writes:

> 2011-11-16  Jack Howarth  <howarth@bromo.med.uc.edu>
> 	    Ian Lance Taylor  <iant@google.com>
>
> 	* config/darwin-c.c (darwin_additional_format_types): Export.

This is OK.

Thanks.

Ian

Patch

Index: gcc/config/darwin-c.c
===================================================================
--- gcc/config/darwin-c.c	(revision 166794)
+++ gcc/config/darwin-c.c	(working copy)
@@ -706,7 +706,7 @@ 
 }
 
 /* The extra format types we recognize.  */
-const format_kind_info darwin_additional_format_types[] = {
+EXPORTED_CONST format_kind_info darwin_additional_format_types[] = {
   { "CFString",   NULL,  NULL, NULL, NULL, 
     NULL, NULL, 
     FMT_FLAG_ARG_CONVERT|FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL, 0, 0, 0, 0, 0, 0,