* tree-pass.h (TODO_update_smt_usage): Remove.
[official-gcc.git] / libgfortran / m4 / specific2.m4
blobd05e8db1435a621858ab393d41735a525a91b98c
1 include(head.m4)
2 define(atype_code,regexp(file,`_\([ircl][0-9]+\).[fF]90',`\1'))dnl
3 define(atype_letter,substr(atype_code, 0, 1))dnl
4 define(atype_kind,substr(atype_code, 1))dnl
5 define(get_typename2, `$1 (kind=$2)')dnl
6 define(get_typename, `get_typename2(ifelse($1,i,integer,ifelse($1,r,real,ifelse($1,l,logical,ifelse($1,c,complex,unknown)))),`$2')')dnl
7 define(atype_name, get_typename(atype_letter,atype_kind))dnl
8 define(name, regexp(regexp(file, `[^/]*$', `\&'), `^_\([^_]*\)_', `\1'))dnl
9 define(function_name,`_gfortran_specific__'name`_'atype_code)dnl
11 define(Q,ifelse(atype_kind,4,F,ifelse(atype_kind,8,`',ifelse(atype_kind,10,L,ifelse(atype_kind,16,L,`_'atype_kind)))))dnl
13 #include "config.h"
14 #include "kinds.inc"
15 #include "c99_protos.inc"
17 `#if defined (HAVE_GFC_'ifelse(atype_letter,l,LOGICAL,ifelse(atype_letter,i,INTEGER,ifelse(atype_letter,r,REAL,ifelse(atype_letter,c,COMPLEX,UNKNOW))))`_'atype_kind`)'
19 ifelse(name,atan2,`#ifdef HAVE_ATAN2'Q,)
21 elemental function function_name (p1, p2)
22    atype_name, intent (in) :: p1, p2
23    atype_name :: function_name
25    function_name = name (p1, p2)
26 end function
28 ifelse(name,atan2,`#endif',)
30 #endif