2025-02-09 12:30:31 +01:00
|
|
|
/* Data type conversion routines.
|
2025-02-08 23:02:27 +01:00
|
|
|
Copyright (C) 2025 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
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/>. */
|
|
|
|
|
2024-12-27 23:38:25 +01:00
|
|
|
#include "config.h"
|
|
|
|
#include "system.h"
|
|
|
|
#include "coretypes.h"
|
|
|
|
#include "tree.h"
|
|
|
|
#include "fold-const.h"
|
|
|
|
#include "convert.h"
|
|
|
|
|
|
|
|
/* Creates an expression whose value is that of EXPR, converted to type TYPE.
|
|
|
|
This function implements all reasonable scalar conversions. */
|
|
|
|
|
2025-01-05 00:06:51 +01:00
|
|
|
tree convert(tree /* type */, tree expr)
|
2024-12-27 23:38:25 +01:00
|
|
|
{
|
2025-01-20 21:46:03 +01:00
|
|
|
return expr;
|
2024-12-27 23:38:25 +01:00
|
|
|
}
|