This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libfortran] UTF-8 Support, part 1.1
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>, Jerry DeLisle <jvdelisle at verizon dot net>, Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 19 Aug 2008 08:01:33 +0200
- Subject: Re: [patch, libfortran] UTF-8 Support, part 1.1
Jerry DeLisle wrote:
> Aaron W. LaFramboise wrote:
> > Jerry DeLisle wrote:
> > > Regression tested on x86-64-linux-gnu.
> > On current mainline as of revision 139192, I get this error:
> > ../../../svn/libgfortran/io/write.c: In function 'write_a_char4':
> > ../../../svn/libgfortran/io/write.c:311: error: 'p' undeclared (first
> > use in this function)
>
> I am not seeing this here, maybe a problem with the patch file?
I believe it is a HAVE_CRLF problem. The line write.c:311 is in a
"#ifdef HAVE_CRLF" block. You probably tested on Linux where it is not
set.
I committed the following as obvious (Rev. 139223).
Tobias
===================================================================
--- ChangeLog (Revision 139161)
+++ ChangeLog (Arbeitskopie)
@@ -1,3 +1,9 @@
+2008-08-19 Tobias Burnus <burnus@net-b.de>
+
+ PR libfortran/35863
+ * io/write.c (write_a_char4): Add missing variable declaration
+ in HAVE_CRLF block.
+
2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/35863
Index: io/write.c
===================================================================
--- io/write.c (Revision 139161)
+++ io/write.c (Arbeitskopie)
@@ -308,6 +308,7 @@ write_a_char4 (st_parameter_dt *dtp, con
/* Write out any padding if needed. */
if (len < wlen)
{
+ char *p;
p = write_block (dtp, wlen - len);
if (p == NULL)
return;