Commit 4e6bf178 by Tobias Burnus

[multiple changes]

2007-11-26  Steven G. Kargl  <kargls@comcast.net>

        * options.c:  Change default behavior of backslash processing.
        * invoke.texi: Update documentation.

2007-11-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34203
        * gfortran.dg/backslash_3.f: Add -fbackslash option.
        * gfortran.dg/init_flag_1.f90: Add -fbackslash option.
        * gfortran.dg/backslash_1.f90: Remove no longer needed
        -fno-backslash option.

From-SVN: r130451
parent c00e8b06
2007-11-26 Steven G. Kargl <kargls@comcast.net>
PR fortran/34203
* options.c: Change default behavior of backslash processing.
* invoke.texi: Update documentation.
2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33152 PR fortran/33152
......
...@@ -121,7 +121,7 @@ by type. Explanations are in the following sections. ...@@ -121,7 +121,7 @@ by type. Explanations are in the following sections.
-ffixed-line-length-@var{n} -ffixed-line-length-none @gol -ffixed-line-length-@var{n} -ffixed-line-length-none @gol
-ffree-line-length-@var{n} -ffree-line-length-none @gol -ffree-line-length-@var{n} -ffree-line-length-none @gol
-fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 @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 @item Error and Warning Options
@xref{Error and Warning Options,,Options to request or suppress errors @xref{Error and Warning Options,,Options to request or suppress errors
...@@ -233,12 +233,12 @@ Do nothing if this is already the default. ...@@ -233,12 +233,12 @@ Do nothing if this is already the default.
@cindex character set @cindex character set
Allow @samp{$} as a valid character in a symbol name. Allow @samp{$} as a valid character in a symbol name.
@item -fno-backslash @item -fbackslash
@opindex @code{fno-backslash} @opindex @code{backslash}
@cindex backslash @cindex backslash
@cindex escape characters @cindex escape characters
Change the interpretation of backslashes in string literals from Change the interpretation of backslashes in string literals
``C-style'' escape characters to a single backslash character. from a single backslash character to ``C-style'' escape characters.
@item -fmodule-private @item -fmodule-private
@opindex @code{fmodule-private} @opindex @code{fmodule-private}
......
...@@ -95,7 +95,7 @@ gfc_init_options (unsigned int argc ATTRIBUTE_UNUSED, ...@@ -95,7 +95,7 @@ gfc_init_options (unsigned int argc ATTRIBUTE_UNUSED,
gfc_option.flag_repack_arrays = 0; gfc_option.flag_repack_arrays = 0;
gfc_option.flag_preprocessed = 0; gfc_option.flag_preprocessed = 0;
gfc_option.flag_automatic = 1; gfc_option.flag_automatic = 1;
gfc_option.flag_backslash = 1; gfc_option.flag_backslash = 0;
gfc_option.flag_module_private = 0; gfc_option.flag_module_private = 0;
gfc_option.flag_backtrace = 0; gfc_option.flag_backtrace = 0;
gfc_option.flag_allow_leading_underscore = 0; gfc_option.flag_allow_leading_underscore = 0;
......
2007-11-26 Tobias Burnus <burnus@net-b.de>
PR fortran/34203
* gfortran.dg/backslash_3.f: Add -fbackslash option.
* gfortran.dg/init_flag_1.f90: Add -fbackslash option.
* gfortran.dg/backslash_1.f90: Remove no longer needed
-fno-backslash option.
2007-11-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2007-11-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/23722 PR c/23722
! { dg-do run } ! { dg-do run }
! { dg-options "-fno-backslash" }
character(len=4) a character(len=4) a
open (10, status='scratch') open (10, status='scratch')
write (10,'(A)') '1\n2' write (10,'(A)') '1\n2'
......
C { dg-do run } C { dg-do run }
C { dg-options "-fbackslash" }
C PR fortran/30278 C PR fortran/30278
program a program a
character(len=1), parameter :: c1 = char(8), c2 = char(92) character(len=1), parameter :: c1 = char(8), c2 = char(92)
......
! { dg-do run } ! { dg-do run }
! { dg-options "-finit-local-zero" } ! { dg-options "-finit-local-zero -fbackslash" }
program init_flag_1 program init_flag_1
call real_test call real_test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment