llvm-2.4 prerelease gfortran results

Anton,
   With regard to the gfortran test cases which don't fail
on x86_64 Linux, these are the exact gfortran.log entries for them
under i686 Darwin9...

FAIL: gfortran.dg/array_constructor_12.f90 -O0 (internal compiler error)
FAIL: gfortran.dg/array_constructor_12.f90 -O0 (test for excess errors)

Executing on host: /sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/gcc/testsuite/gfortran/../../ /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90 -O0 -pedantic-errors -L/sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/i686-apple-darwin9/./libgfortran/.libs -L/sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/i686-apple-darwin9/./libgfortran/.libs -L/sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/i686-apple-darwin9/./libiberty -lm -o ./array_constructor_12.exe (timeout = 300)
Unhandled expression!
TREE_CODE: 68
<floor_div_expr 0x41765f60
    type <integer_type 0x4170a4d0 int8 public DI
        size <integer_cst 0x41704930 constant invariant 64>
        unit size <integer_cst 0x41704960 constant invariant 8>
        align 64 symtab 12 alias set -1 precision 64 min <integer_cst 0x417048a0 -9223372036854775808> max <integer_cst 0x417048d0 9223372036854775807>
        LLVM: i64
        pointer_to_this <pointer_type 0x41731070> reference_to_this <reference_type 0x4175f310>>
   
    arg 0 <var_decl 0x417742a0 D.926 type <integer_type 0x4170a4d0 int8>
        used ignored asm-frame-size 0 DI file /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90 line 11 size <integer_cst 0x41704930 64> unit size <integer_cst 0x41704960 8>
        align 64 context <function_decl 0x4175d400 MAIN__>
        LLVM: i64 %67
        chain <var_decl 0x41774310 D.927 type <integer_type 0x4170a4d0 int8>
            used ignored asm-frame-size 0 DI file /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90 line 11 size <integer_cst 0x41704930 64> unit size <integer_cst 0x41704960 8>
            align 64 context <function_decl 0x4175d400 MAIN__> chain <var_decl 0x41774380 D.928>>>
    arg 1 <var_decl 0x41763d90 D.849 type <integer_type 0x4170a4d0 int8>
        used ignored asm-frame-size 0 DI file /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90 line 10 size <integer_cst 0x41704930 64> unit size <integer_cst 0x41704960 8>
        align 64 context <function_decl 0x4175d400 MAIN__>
        LLVM: i64* %30
        chain <var_decl 0x41763d20 D.848 type <integer_type 0x4170a4d0 int8>
            used ignored asm-frame-size 0 DI file /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90 line 10 size <integer_cst 0x41704930 64> unit size <integer_cst 0x41704960 8>
            align 64 context <function_decl 0x4175d400 MAIN__>
            LLVM: i64* %29 chain <var_decl 0x41763cb0 loopvar.8>>>>
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90: In function 'MAIN__':
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/array_constructor_12.f90:3: internal compiler error: in Emit, at llvm-convert.cpp:926
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter&gt; for instructions.

FAIL: gfortran.dg/assumed_charlen_function_3.f90 -O (internal compiler error)
FAIL: gfortran.dg/assumed_charlen_function_3.f90 -O (test for excess errors)
FAIL: gfortran.dg/assumed_charlen_function_5.f90 -O (internal compiler error)
FAIL: gfortran.dg/assumed_charlen_function_5.f90 -O (test for excess errors)

Executing on host: /sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/llvm-gcc42-2.4-1/llvm_gcc42_objdir/gcc/testsuite/gfortran/../../ /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90 -O -pedantic-errors -S -o assumed_charlen_function_3.s (timeout = 300)
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90:8.14:

function is_OK (ch) ! { dg-warning "is obsolescent in fortran 95
             1
Warning: CHARACTER(*) function 'is_ok' at (1) is obsolescent in fortran 95
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90:14.16:

function more_OK (ch, fcn) ! { dg-warning "is obsolescent in fortran 95
               1
Warning: CHARACTER(*) function 'more_ok' at (1) is obsolescent in fortran 95
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90:14.25:

function more_OK (ch, fcn) ! { dg-warning "is obsolescent in fortran 95
                        1
Warning: CHARACTER(*) function 'fcn' at (1) is obsolescent in fortran 95
Assertion failed: ((NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FTy->getNumParams())) && "Calling a function with bad signature!"), function init, file /sw/src/fink.build/llvm-gcc42-2.4-1/llvm-2.4/lib/VMCore/Instructions.cpp, line 289.
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90: In function 'more_ok':
/sw/src/fink.build/llvm-gcc42-2.4-1/llvm-gcc4.2-2.4.source/gcc/testsuite/gfortran.dg/assumed_charlen_function_3.f90:14: internal :
compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter&gt; for instructions.

FYI,
         Jack

Hi,

Unhandled expression!
TREE_CODE: 68
<floor_div_expr 0x41765f60

I think there's already a PR for this one.

Ciao,

Duncan.