[PATCH,fortran] *The* ISO C Binding patch

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jun 27 21:43:00 GMT 2007


On Sun, Jun 24, 2007 at 12:38:03PM +0200, Andreas Schwab wrote:
> Steve Kargl <sgk@troutmask.apl.washington.edu> writes:
> 
> > +NAMED_CHARCST (ISOCBINDING_NULL_CHAR, "c_null_char", '\0')
> > +NAMED_CHARCST (ISOCBINDING_ALERT, "c_alert", '\a')
> > +NAMED_CHARCST (ISOCBINDING_BACKSPACE, "c_backspace", '\b')
> > +NAMED_CHARCST (ISOCBINDING_FORM_FEED, "c_form_feed", '\f')
> > +NAMED_CHARCST (ISOCBINDING_NEW_LINE, "c_new_line", '\n')
> > +NAMED_CHARCST (ISOCBINDING_CARRIAGE_RETURN, "c_carriage_return", '\r')
> > +NAMED_CHARCST (ISOCBINDING_HORIZONTAL_TAB, "c_horizontal_tab", '\t')
> > +NAMED_CHARCST (ISOCBINDING_VERTICAL_TAB, "c_vertical_tab", '\v')
> 
> Shouldn't those use the target character set?
> 

I've committed the attached patch after building the fortran-experiments
branch and regression testing on i386-*-freebsd and amd64-*-freebsd.
Note, I don't use cross compiler nor do I know which target the 
langhooks feature is needed.  Hopefully, the patch works for others.


2007-06-27  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/binding_c_table_15_1.f03: New test.
	* gcc/fortran/iso-c-binding.def: Use lang_hooks.to_target_charset()
	for named constants.
	* gcc/fortran/trans-types.c: Include langhooks.h

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: langhooks.diff
Type: text/x-diff
Size: 2977 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070627/0f3eacd1/attachment.bin>


More information about the Fortran mailing list