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]

Re: Ping - old patch from April - mingw support for I32/I64 MS printf formatters to c-format.c


On Fri, 21 Dec 2007, Kai Tietz wrote:

> There is a problem with the fortran compiler and this patch. The fortran 
> compiler inherits i386.c as target, but does not have the c_global_trees 
> symbol, which is referenced by the formatter tables. So this patch will 
> fail for it. To solve this, I suggest, that the tables should be placed 
> within c-format.c. Is this ok for you ?

No, you should put it in a new *-c.c file listed in c_target_objs and 
cxx_target_objs in config.gcc and add the necessary rule to the associated 
t-* file to build this object.  sol2-c.c has an existing example of 
target-specific formats.

-- 
Joseph S. Myers
joseph@codesourcery.com


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