diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2018-01-25 08:49:33 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2018-01-25 08:49:33 +0000 |
commit | 8bbc33baa40010c8f5ca1af9b8bfffd67ae654ad (patch) | |
tree | c5e2748190eff9453ae08b9117c4c546c48cc539 /gcc/convert.h | |
parent | 03ac50856c9fc8c96b7a17239ee40a10397750a7 (diff) | |
download | gcc-tarball-8bbc33baa40010c8f5ca1af9b8bfffd67ae654ad.tar.gz |
Diffstat (limited to 'gcc/convert.h')
-rw-r--r-- | gcc/convert.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gcc/convert.h b/gcc/convert.h new file mode 100644 index 0000000000..76ab2c73e0 --- /dev/null +++ b/gcc/convert.h @@ -0,0 +1,43 @@ +/* Definition of functions in convert.c. + Copyright (C) 1993-2017 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +<http://www.gnu.org/licenses/>. */ + +#ifndef GCC_CONVERT_H +#define GCC_CONVERT_H + +extern tree convert_to_integer (tree, tree); +extern tree convert_to_integer_maybe_fold (tree, tree, bool); +extern tree convert_to_pointer (tree, tree); +extern tree convert_to_pointer_maybe_fold (tree, tree, bool); +extern tree convert_to_real (tree, tree); +extern tree convert_to_real_maybe_fold (tree, tree, bool); +extern tree convert_to_fixed (tree, tree); +extern tree convert_to_complex (tree, tree); +extern tree convert_to_complex_maybe_fold (tree, tree, bool); +extern tree convert_to_vector (tree, tree); + +extern inline tree convert_to_integer_nofold (tree t, tree x) +{ return convert_to_integer_maybe_fold (t, x, false); } +extern inline tree convert_to_pointer_nofold (tree t, tree x) +{ return convert_to_pointer_maybe_fold (t, x, false); } +extern inline tree convert_to_real_nofold (tree t, tree x) +{ return convert_to_real_maybe_fold (t, x, false); } +extern inline tree convert_to_complex_nofold (tree t, tree x) +{ return convert_to_complex_maybe_fold (t, x, false); } + +#endif /* GCC_CONVERT_H */ |