[PATCH] fortran: Testsuite, fix different type naming across compilers.

Yao Qi qiyaoltc@gmail.com
Thu Apr 14 09:22:00 GMT 2016


Bernhard Heckel <bernhard.heckel@intel.com> writes:

> +
> +if ![info exists int4] then {
> +    set int4 "(int4|integer\\(kind=4\\)|INTEGER\\(4\\))"
> +}

I'd like to define a processing for each type, and return the right
thing according to the compiler info, like

proc fortran_int { } {
  if {[test_compiler_info {gcc-4-1-*}]} {
     return "int4"
  } elseif {[test_compiler_info {gcc-4-[3-5]-*}]} {
     return "integer\\(kind=4\\)"
  } elseif { TEST_COMPILER_FOR_IFORT } {
     return "INTEGER\\(4\\)"
  } else {
    ....
  }
}

however, I don't know how to do TEST_COMPILER_FOR_IFORT.

> \ No newline at end of file

Add a newline.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list