This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[PATCH] Silence the backslash whining.


The attached patch should silence to whining of
a few individual in c.l.f because gfortran's current
default behavior does not conform to their visions
of a Fortran compiler and they are too damn lazy
to read and understand the documentation.

PS:  I'm not subscribed to this list, so if you want
    to communicate with me then add me to the CC line.

PPS:  I no longer have commit access, so someone else
    will need to check in the patch.

PPPS:  This patch does not magically give gfortran 
    conformance with the Fortran character set as
    specified in Fortran 2003 standard.

-- 
Steve
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 130443)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2007-11-26  Steven G. Kargl  <kargls@comcast.net>
+
+	* options.c:  Change default behavior of backslash processing.
+	* invoke.texi: Update documentation.
+
 2007-11-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
 	PR fortran/33152
Index: invoke.texi
===================================================================
--- invoke.texi	(revision 130443)
+++ invoke.texi	(working copy)
@@ -121,7 +121,7 @@ by type.  Explanations are in the follow
 -ffixed-line-length-@var{n}  -ffixed-line-length-none @gol
 -ffree-line-length-@var{n}  -ffree-line-length-none @gol
 -fdefault-double-8  -fdefault-integer-8  -fdefault-real-8 @gol
--fcray-pointer  -fopenmp  -fno-range-check -fno-backslash -fmodule-private}
+-fcray-pointer  -fopenmp  -fno-range-check -fbackslash -fmodule-private}
 
 @item Error and Warning Options
 @xref{Error and Warning Options,,Options to request or suppress errors
@@ -233,12 +233,12 @@ Do nothing if this is already the defaul
 @cindex character set
 Allow @samp{$} as a valid character in a symbol name.
 
-@item -fno-backslash
-@opindex @code{fno-backslash}
+@item -fbackslash
+@opindex @code{backslash}
 @cindex backslash
 @cindex escape characters
-Change the interpretation of backslashes in string literals from
-``C-style'' escape characters to a single backslash character.
+Change the interpretation of backslashes in string literals
+from a single backslash character to ``C-style'' escape characters.
 
 @item -fmodule-private
 @opindex @code{fmodule-private}
Index: options.c
===================================================================
--- options.c	(revision 130443)
+++ options.c	(working copy)
@@ -95,7 +95,7 @@ gfc_init_options (unsigned int argc ATTR
   gfc_option.flag_repack_arrays = 0;
   gfc_option.flag_preprocessed = 0;
   gfc_option.flag_automatic = 1;
-  gfc_option.flag_backslash = 1;
+  gfc_option.flag_backslash = 0;
   gfc_option.flag_module_private = 0;
   gfc_option.flag_backtrace = 0;
   gfc_option.flag_allow_leading_underscore = 0;

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