This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, Fortran, committed] Add LANG=C to libgfortran/mk-kinds-h.sh
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Fri, 26 Oct 2007 21:03:08 +0200
- Subject: [Patch, Fortran, committed] Add LANG=C to libgfortran/mk-kinds-h.sh
:ADDPATCH fortran:
After getting failures when building GCC with a non-English locale, I
found out that
huge=`$compile -c -fdump-parse-tree tmq$$.f90 | grep TRANSFER \
| sed 's/ *TRANSFER *// ; s/_.*//'`
only works if TRANSFER is not translated in the dump.
I committed attached patch as obvious. (As the change to mk-kinds-h.sh
is brand new, only today's GCC trunk was affected.)
Tobias
Rev. 129658.
Index: libgfortran/ChangeLog
===================================================================
--- libgfortran/ChangeLog (Revision 129657)
+++ libgfortran/ChangeLog (Arbeitskopie)
@@ -1,3 +1,7 @@
+2007-10-26 Tobias Burnus <burnus@net-b.de>
+
+ * mk-kinds-h.sh: Add "LANG=C".
+
2007-10-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* libgfortran.h (GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS,
Index: libgfortran/mk-kinds-h.sh
===================================================================
--- libgfortran/mk-kinds-h.sh (Revision 129657)
+++ libgfortran/mk-kinds-h.sh (Arbeitskopie)
@@ -1,4 +1,6 @@
#!/bin/sh
+LANG=C
+export LANG
compile="$1"