This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

problems with gfortran in 64-bit mode


source code:

     double precision d
     integer i
     d=0.
     i=0
     write(0,*) i
     write(0,*) d
     end

Platrofrm: Powerpc G5 running darwin 10.4.3.

Runtime error: "Illegal instuction" after writing the integer.

Compilation command:
/usr/local/usr/bin/gfortran-4.0 -v -save-temps -m64 -L/usr/local/usr/lib pmain2.f

Driving: /usr/local/usr/bin/gfortran-4.0 -v -save-temps -m64 -L/usr/local/usr/lib pmain2.f -lgfortranbegin -lgfortran -shared-libgcc
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /Build/apple/gcc/build/obj/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++,f95 --program-transform-name=/^[cg][^.-]
*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5224)
/usr/local/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/f951 pmain2.f -ffixed-form -mconstant-cfstrings -fPIC -quiet -dumpbase pmain2.f -m64 -auxbase pmain2 -version -o pmain2.s
GNU F95 version 4.0.1 (Apple Computer, Inc. build 5224) (powerpc-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5224).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
as -arch ppc64 -o pmain2.o pmain2.s
/usr/local/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/collect2 -dynamic -arch ppc64 -weak_reference_mismatches non-weak -o a.out -lcrt1.o -L/usr/local/usr/lib -L/usr/local/usr/bin/../lib/gcc/powerpc-
apple-darwin8/4.0.1/ppc64 -L/usr/local/usr/bin/../lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/local/usr/bin/../lib/gcc -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/local/usr/bin/../lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. pmain2.o -lgfortranbegin -lgfortran -lgcc_s_ppc64 -lgcc -lSystemStubs -lmx -lSystem




Roger Ghanem
254C Kaprielian Hall
University of Southern California
Los Angeles, CA 90089
Tel:  213 740 9528
Fax: 213 740 2037


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]