set found_gxx [find_g++]
set found_gnatmake [find_gnatmake]
set found_f90 [find_gfortran]
-set found_f77 [find_g77]
set_board_info compiler "$found_gcc"
set contrib_dir [file normalize $srcdir/../contrib]
set F90_FOR_TARGET "$found_f90"
}
set F90_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh $CC_WITH_TWEAKS_FLAGS $F90_FOR_TARGET"
-if ![info exists F77_FOR_TARGET] {
- set F77_FOR_TARGET "$found_f77"
-}
-set F77_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh $CC_WITH_TWEAKS_FLAGS $F77_FOR_TARGET"
set env(GDB) \
[cached_file gdb.sh "$GDB $INTERNAL_GDBFLAGS $GDBFLAGS \"\$@\"" 1]
}
}
- if { $i == "f77" } {
- set compiler_type "f77"
- if {[board_info $dest exists f77flags]} {
- append add_flags " [target_info f77flags]"
- }
- if {[board_info $dest exists f77compiler]} {
- set compiler [target_info f77compiler]
- } else {
- set compiler [find_g77]
- }
- }
-
if { $i == "f90" } {
set compiler_type "f90"
if {[board_info $dest exists f90flags]} {
global CC_FOR_TARGET
global CXX_FOR_TARGET
global D_FOR_TARGET
- global F77_FOR_TARGET
global F90_FOR_TARGET
global GNATMAKE_FOR_TARGET
global GO_FOR_TARGET
}
}
- if {[info exists F77_FOR_TARGET]} {
- if { $compiler_type == "f77" } {
- set compiler $F77_FOR_TARGET
- }
- }
-
if {[info exists F90_FOR_TARGET]} {
if { $compiler_type == "f90" } {
set compiler $F90_FOR_TARGET
set need_local_lang 0
}
- if { $i == "f77" || $i == "f90" } {
+ if { $i == "f90" } {
set need_local_lang [info exists use_gdb_compile(fortran)]
}
# - ldflags=flag: Add FLAG to the linker flags.
# - incdir=path: Add PATH to the searched include directories.
# - libdir=path: Add PATH to the linker searched directories.
-# - ada, c++, f77, f90, go, rust: Compile the file as Ada, C++,
-# Fortran 77, Fortran 90, Go or Rust.
+# - ada, c++, f90, go, rust: Compile the file as Ada, C++,
+# Fortran 90, Go or Rust.
# - debug: Build with debug information.
# - optimize: Build with optimization.
if {[lsearch -exact $options getting_compiler_info] == -1
&& [lsearch -exact $options rust] == -1
&& [lsearch -exact $options ada] == -1
- && [lsearch -exact $options f77] == -1
&& [lsearch -exact $options f90] == -1
&& [lsearch -exact $options go] == -1
&& [test_compiler_info "clang-*"]} {
# Place (and look for) Fortran `.mod` files in the output
# directory for this specific test.
- if {[lsearch -exact $options f77] != -1 \
- || [lsearch -exact $options f90] != -1 } {
+ if { [lsearch -exact $options f90] != -1 } {
# Fortran compile.
set mod_path [standard_output_file ""]
if [test_compiler_info "gcc-*"] {
}
if {[lsearch $options quiet] < 0} {
- # We shall update this on a per language basis, to avoid
- # changing the entire testsuite in one go.
- if {[lsearch $options f77] >= 0} {
- gdb_compile_test $source $result
- } elseif { $result != "" } {
+ if { $result != "" } {
clone_output "gdb compile failed, $result"
}
}