[Bug libfortran/47284] New: G format outputs wrong number of asterixes

2011-01-13 Thread brendanarnold at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47284

   Summary: G format outputs wrong number of asterixes
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libfortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: brendanarn...@gmail.com


Try this simple program


   PROGRAM FOO
   WRITE(*,100) -0.1

100FORMAT(G5.1)

   STOP
   END

Result is a single '*' and not '*' as expected


Could test for asterix in previously written data before outputting blanks in
line 687 of libgfortran/io/write_float.def, if they are present then output
asterix instead of blanks.


[Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal

2011-01-13 Thread brendanarnold at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47285

   Summary: G format outputs wrong number of characters when
decimal supplied in literal
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libfortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: brendanarn...@gmail.com


Try this program,


   PROGRAM FOO
   WRITE(*,100) -1.

100FORMAT(G5.5E5)

   STOP
   END

This outputs '-1.' i.e. is 7 characters when it should be 5 c.f. this
program


   PROGRAM FOO
   WRITE(*,100) -1

100FORMAT(G5.5E5)

   STOP
   END

Note the decimal point in the literal. This outputs '*'


[Bug libfortran/47514] New: Source file over a certain size compiles but will not run

2011-01-28 Thread brendanarnold at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47514

   Summary: Source file over a certain size compiles but will not
run
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libfortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: brendanarn...@gmail.com


Created attachment 23152
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23152
Source files mentioned in the report

It seems there is a limit between 200kB and 500kB ish or perhaps the number of
labels for FORMAT statements that causes source file 'a.f' to run fine but
source file 'b.f' to crash. Note that both compile with no warnings/errors with
'-Wall' enabled. Performed on Windows, gfortran 4.4.1.

For comparison, both compile and run fine on Intel Linux using ifort 9.1


[Bug libfortran/47514] Source file over a certain size compiles but will not run

2011-01-28 Thread brendanarnold at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47514

Brendan  changed:

   What|Removed |Added

   Host||Windows XP - SP3 - Intel -
   ||MinGW
Version|4.4.1   |4.4.0

--- Comment #2 from Brendan  2011-01-28 
13:40:06 UTC ---
Here are some more details - note: I made a mistake with the version number is
4.4.0 not 4.4.1

C:\Documents and Settings\ba1224\Desktop\New Folder> gfortran -v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.4.0/configure
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++
--disable-sjlj-exceptions --enable-shared --enable-libgcj --enable-libgomp
--with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug
--enable-version-specific-runtime-libs --prefix=/mingw
--with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32
Thread model: win32
gcc version 4.4.0 (GCC)


[Bug libfortran/47514] Source file over a certain size compiles but will not run

2011-01-28 Thread brendanarnold at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47514

--- Comment #4 from Brendan  2011-01-28 
16:52:12 UTC ---
Was using the MinGW bundled with PythonXY

Now upgraded to version 4.5.2 and it works fine

Thanks!