public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36465]  New: Compilation crashes and asks me to submit a bug report
@ 2008-06-08 11:53 pattakosn at yahoo dot com
  2008-06-08 12:05 ` [Bug fortran/36465] " pattakosn at yahoo dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pattakosn at yahoo dot com @ 2008-06-08 11:53 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3132 bytes --]

There is a simulation code that I am trying to make run faster by trying
several compile optimization flags. It also uses OpenMP to utilize multiple
cores. Today I got this:

Driving: /home/nimar/opt/gcc-4.3.0/bin/gfortran -v -save-temps
-I/home/nimar/opt/gcc-4.3.0/include -O3 -fimplicit-none -fopenmp
-ftree-parallelize-loops=4 -funroll-all-loops -msse4a -march=native -fipa-pta
-fipa-cp -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -combine
Bed_ini.f -lgfortranbegin -lgfortran -lm -shared-libgcc
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/nimar/build/gcc-4.3.0/configure
--prefix=/home/nimar/opt/gcc-4.3.0 --with-gmp=/home/nimar/opt/gcc-4.3.0
--with-mpfr=/home/nimar/opt/gcc-4.3.0 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.3.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-I/home/nimar/opt/gcc-4.3.0/include'
'-O3' '-fimplicit-none' '-fopenmp' '-ftree-parallelize-loops=4'
'-funroll-all-loops' '-msse4a'  '-fipa-pta' '-fipa-cp' '-funroll-loops'
'-fprefetch-loop-arrays' '-funit-at-a-time' '-combine' '-shared-libgcc'
'-pthread'
 /home/nimar/opt/gcc-4.3.0/libexec/gcc/i686-pc-linux-gnu/4.3.0/f951 Bed_ini.f
-ffixed-form -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param
l1-cache-line-size=64 -mtune=core2 -quiet -dumpbase Bed_ini.f -msse4a -auxbase
Bed_ini -O3 -version -fimplicit-none -fopenmp -ftree-parallelize-loops=4
-funroll-all-loops -fipa-pta -fipa-cp -funroll-loops -fprefetch-loop-arrays
-funit-at-a-time -I/home/nimar/opt/gcc-4.3.0/include -fintrinsic-modules-path
/home/nimar/opt/gcc-4.3.0/lib/gcc/i686-pc-linux-gnu/4.3.0/finclude -o Bed_ini.s
GNU F95 (GCC) version 4.3.0 (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.0, GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Bed_ini.f: In function ‘pr9_bed’:
Bed_ini.f:206: internal compiler error: in get_smt_for, at
tree-ssa-alias.c:3203
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I use a Makefile, but I got the same when trying:

/home/nimar/opt/gcc-4.3.0/bin/gfortran -v -save-temps
-I/home/nimar/opt/gcc-4.3.0/include -O3 -fimplicit-none -fopenmp
-ftree-parallelize-loops=4 -funroll-all-loops -msse4a -march=native -fipa-pta
-fipa-cp -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -combine
Bed_ini.f

I am running ubuntu 8.04, x86 on a core2quad, and I compiled gcc-4.3.0 myself
(along with gmp and mpfr). I have never come across sth like that before, so
please tell me If I need to submit sth more. I hope these help.


-- 
           Summary: Compilation crashes and asks me to submit a bug report
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pattakosn at yahoo dot com
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
@ 2008-06-08 12:05 ` pattakosn at yahoo dot com
  2008-06-08 13:11 ` [Bug middle-end/36465] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pattakosn at yahoo dot com @ 2008-06-08 12:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pattakosn at yahoo dot com  2008-06-08 12:05 -------
Created an attachment (id=15729)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15729&action=view)
The source code and the generated .s file

This is the source file that crashes and the .s file that is generated.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
  2008-06-08 12:05 ` [Bug fortran/36465] " pattakosn at yahoo dot com
@ 2008-06-08 13:11 ` pinskia at gcc dot gnu dot org
  2008-06-08 13:50 ` pattakosn at yahoo dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-08 13:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|critical                    |normal
          Component|fortran                     |middle-end


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
  2008-06-08 12:05 ` [Bug fortran/36465] " pattakosn at yahoo dot com
  2008-06-08 13:11 ` [Bug middle-end/36465] " pinskia at gcc dot gnu dot org
@ 2008-06-08 13:50 ` pattakosn at yahoo dot com
  2008-06-08 14:07 ` pattakosn at yahoo dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pattakosn at yahoo dot com @ 2008-06-08 13:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2445 bytes --]



------- Comment #2 from pattakosn at yahoo dot com  2008-06-08 13:49 -------
I downloaded and compiled 4.3.1 which seems to work well.
However I also downloaded the latest snapshot (4.4-20080606) and I get an other
bug :

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/nimar/build/2/gcc-4.4-20080606/configure
--prefix=/home/nimar/opt/gcc-4.4-20080606
--with-gmp=/home/nimar/opt/gcc-4.4-20080606
--with-mpfr=/home/nimar/opt/gcc-4.4-20080606 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.4.0 20080606 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps'
'-I/home/nimar/opt/gcc-4.4-20080606/include' '-O3' '-fimplicit-none' '-fopenmp'
'-ftree-parallelize-loops=4' '-funroll-all-loops' '-msse4a'  '-fipa-pta'
'-fipa-cp' '-funroll-loops' '-fprefetch-loop-arrays' '-funit-at-a-time'
'-combine' '-c' '-pthread'
 /home/nimar/opt/gcc-4.4-20080606/libexec/gcc/i686-pc-linux-gnu/4.4.0/f951
main3.f -ffixed-form -march=core2 -mcx16 -msahf --param l1-cache-size=32
--param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=core2 -quiet
-dumpbase main3.f -msse4a -auxbase main3 -O3 -version -fimplicit-none -fopenmp
-ftree-parallelize-loops=4 -funroll-all-loops -fipa-pta -fipa-cp -funroll-loops
-fprefetch-loop-arrays -funit-at-a-time
-I/home/nimar/opt/gcc-4.4-20080606/include -fintrinsic-modules-path
/home/nimar/opt/gcc-4.4-20080606/lib/gcc/i686-pc-linux-gnu/4.4.0/finclude -o
main3.s
GNU Fortran (GCC) version 4.4.0 20080606 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.4.0 20080606 (experimental), GMP version
4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
main3.f: In function ‘MAIN__.omp_fn.0’:
main3.f:390: error: stmt (0xb7d02410) marked modified after optimization pass: 
omp_get_thread_num ();
main3.f:390: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


compile line was:

/home/nimar/opt/gcc-4.4-20080606/bin/gfortran -v -save-temps
-I/home/nimar/opt/gcc-4.4-20080606/include -O3 -fimplicit-none -fopenmp
-ftree-parallelize-loops=4 -funroll-all-loops -msse4a -march=native -fipa-pta
-fipa-cp -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -combine 
main3.f -c

The files i uploaded are no more relevant to this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
                   ` (2 preceding siblings ...)
  2008-06-08 13:50 ` pattakosn at yahoo dot com
@ 2008-06-08 14:07 ` pattakosn at yahoo dot com
  2008-06-08 14:11 ` pattakosn at yahoo dot com
  2008-06-08 14:13 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pattakosn at yahoo dot com @ 2008-06-08 14:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pattakosn at yahoo dot com  2008-06-08 14:06 -------
Created an attachment (id=15730)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15730&action=view)
the file that the latest gfortran (4.4-20080606) fails to compile and the
produced .s file

This is the file relevant to the second bug


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
                   ` (3 preceding siblings ...)
  2008-06-08 14:07 ` pattakosn at yahoo dot com
@ 2008-06-08 14:11 ` pattakosn at yahoo dot com
  2008-06-08 14:13 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pattakosn at yahoo dot com @ 2008-06-08 14:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pattakosn at yahoo dot com  2008-06-08 14:10 -------
(In reply to comment #2)
> I downloaded and compiled 4.3.1 which seems to work well.

I am sorry, maybe I was not clear. I meant that I downloaded and compiled 4.3.1
and 4.4-20080606 and then gfortran 4.3.1 compiles my source without any
failures, and the produced executable seems to run correctly. The new bug
regards the latest snapshot which fails to compile my source. The files I 
submitted first are no longer relevant.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/36465] Compilation crashes and asks me to submit a bug report
  2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
                   ` (4 preceding siblings ...)
  2008-06-08 14:11 ` pattakosn at yahoo dot com
@ 2008-06-08 14:13 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-08 14:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2008-06-08 14:12 -------
fipa-pta is known to be broken, don't use it.

*** This bug has been marked as a duplicate of 29212 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36465


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-06-08 14:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-08 11:53 [Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report pattakosn at yahoo dot com
2008-06-08 12:05 ` [Bug fortran/36465] " pattakosn at yahoo dot com
2008-06-08 13:11 ` [Bug middle-end/36465] " pinskia at gcc dot gnu dot org
2008-06-08 13:50 ` pattakosn at yahoo dot com
2008-06-08 14:07 ` pattakosn at yahoo dot com
2008-06-08 14:11 ` pattakosn at yahoo dot com
2008-06-08 14:13 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).