convert.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Definition of functions in convert.c.
  2. Copyright (C) 1993-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_CONVERT_H
  16. #define GCC_CONVERT_H
  17. extern tree convert_to_integer (tree, tree);
  18. extern tree convert_to_integer_maybe_fold (tree, tree, bool);
  19. extern tree convert_to_pointer (tree, tree);
  20. extern tree convert_to_pointer_maybe_fold (tree, tree, bool);
  21. extern tree convert_to_real (tree, tree);
  22. extern tree convert_to_real_maybe_fold (tree, tree, bool);
  23. extern tree convert_to_fixed (tree, tree);
  24. extern tree convert_to_complex (tree, tree);
  25. extern tree convert_to_complex_maybe_fold (tree, tree, bool);
  26. extern tree convert_to_vector (tree, tree);
  27. extern inline tree convert_to_integer_nofold (tree t, tree x)
  28. { return convert_to_integer_maybe_fold (t, x, false); }
  29. extern inline tree convert_to_pointer_nofold (tree t, tree x)
  30. { return convert_to_pointer_maybe_fold (t, x, false); }
  31. extern inline tree convert_to_real_nofold (tree t, tree x)
  32. { return convert_to_real_maybe_fold (t, x, false); }
  33. extern inline tree convert_to_complex_nofold (tree t, tree x)
  34. { return convert_to_complex_maybe_fold (t, x, false); }
  35. extern tree preserve_any_location_wrapper (tree result, tree orig_expr);
  36. #endif /* GCC_CONVERT_H */