This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

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


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 (éå)


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