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] | |
$ gfortran --version GNU Fortran (GCC) 4.4.0 20081021 (experimental) [trunk revision 141258] Copyright (C) 2008 Free Software Foundation, Inc.
! -----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----- FIRST TEST. This is does not crash:
$ export A1="-Wall -std=f2003 -fPIC -O3 -fargument-alias" $ export A2="-fno-second-underscore -mmmx -msse2 -msse" $ export A3="-funroll-loops -ftree-vectorize -foptimize-sibling-calls" $ export A4="-march=pentium4 -fomit-frame-pointer -malign-double"
$ gfortran $A1 $A2 $A3 $A4 -c m1.f90 $ gfortran $A1 $A2 $A3 $A4 -c m2.f90 $ gfortran $A1 $A2 $A3 $A4 -c test.f90 $ gfortran $A1 $A2 $A3 $A4 -o test.exe *.o
! -----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----- SECOND TEST. Here there is a run crashing
$ make $ test.exe e0012 0 yes $ Segmentation fault (crash)
! -----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----- THIRD TEST. Makefile without the "-malign-double" flag.
$ make $ test.exe e0012 0 yes (it is OK again)
! -----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----- The Makefile has the following definitions (BTW, are OK?):
A1 := -Wall -std=f2003 -fPIC -O3 -fargument-alias A2 := -fno-second-underscore -mmmx -msse2 -msse A3 := -funroll-loops -ftree-vectorize -foptimize-sibling-calls A4 := -march=pentium4 -fomit-frame-pointer -malign-double AA := $(A1) $(A2) $(A3) $(A4) ! #executable all: m1.o \ m2.o \ test.o gfor $(AA) -o test.exe *.o #module 1 m1.o: m1.f90 gfor -v -c $(AA) m1.mod: | m1.f90 gfor -v -c $(AA) m1.f90 #module 2 m2.o: m2.f90 m2.mod gfor -v -c $(AA) $< m2.mod: | m2.f90 m1.mod gfor -v -c $(AA) m2.f90 #main code test.o: test.f90 m1.mod m2.mod gfor -v -c $(AA) $< test.mod: | test.f90 m1.mod m2.mod gfor -v -c $(AA) test.f90 #end
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Attachment:
error.tgz
Description: application/compressed-tar
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |