2006-01-11 Bernhard Fischer <rep.nop@aon.at>
PR fortran/25486
* scanner.c (load_line): use maxlen to determine the line-length used
for padding lines in fixed form.
gcc/testsuite:
2006-01-10 Bernhard Fischer <rep.nop@aon.at>
PR fortran/25486
* gfortran.dg/literal_character_constant_1_x.F: New test.
* gfortran.dg/literal_character_constant_1_y.F: Ditto.
* gfortran.dg/literal_character_constant_1_z.F: Ditto.
* gfortran.dg/literal_character_constant_1.inc: Helper for new tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109591
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-01-11 Bernhard Fischer <rep.nop@aon.at>
+
+ PR fortran/25486
+ * scanner.c (load_line): use maxlen to determine the line-length used
+ for padding lines in fixed form.
+
2005-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25730
/* Pad lines to the selected line length in fixed form. */
if (gfc_current_form == FORM_FIXED
- && gfc_option.fixed_line_length > 0
+ && gfc_option.fixed_line_length != 0
&& !preprocessor_flag
&& c != EOF)
- while (i++ < gfc_option.fixed_line_length)
- *buffer++ = ' ';
+ {
+ while (i++ < maxlen)
+ *buffer++ = ' ';
+ }
*buffer = '\0';
*pbuflen = buflen;
+2006-01-10 Bernhard Fischer <rep.nop@aon.at>
+
+ PR fortran/25486
+ * gfortran.dg/literal_character_constant_1_x.F: New test.
+ * gfortran.dg/literal_character_constant_1_y.F: Ditto.
+ * gfortran.dg/literal_character_constant_1_z.F: Ditto.
+ * gfortran.dg/literal_character_constant_1.inc: Helper for new tests.
+
2006-01-11 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/ext/packed3.C: Add expected packed error.
--- /dev/null
+C fixed-form literal character constant with continuation line padding test
+C PR fortran/25486
+ program a
+ character(len=90) c
+ character(90) :: fil
+c A tab is between 8 and 9.
+ c = '1234567
+ &8 9'
+ write(fil,'(a)') c
+#ifdef LL_NONE
+ if(fil.ne. "12345678 9")
+ & call abort
+#else
+ if(fil.ne.
+ &"1234567 8 9"
+ &)
+ & call abort
+#endif
+ end
+
--- /dev/null
+! { dg-do run }
+C fixed-form literal character constant with continuation line padding test
+C PR fortran/25486
+! { dg-options "" }
+#include "literal_character_constant_1.inc"
--- /dev/null
+! { dg-do run }
+C fixed-form literal character constant with continuation line padding test
+C PR fortran/25486
+! { dg-options "-ffixed-line-length-72" }
+#include "literal_character_constant_1.inc"
--- /dev/null
+! { dg-do run }
+C fixed-form literal character constant with continuation line padding test
+C PR fortran/25486
+! { dg-options "-ffixed-line-length-none -DLL_NONE" }
+#include "literal_character_constant_1.inc"