PR tree-optimization/84480 - bogus -Wstringop-truncation despite assignment with...
[official-gcc.git] / gcc / config / nds32 / nds32-fp-as-gp.c
blob95c9586c3b60127406e2aec7e069d30e44ca6699
1 /* The fp-as-gp pass of Andes NDS32 cpu for GNU compiler
2 Copyright (C) 2012-2018 Free Software Foundation, Inc.
3 Contributed by Andes Technology Corporation.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* ------------------------------------------------------------------------ */
23 #define IN_TARGET_CODE 1
25 #include "config.h"
26 #include "system.h"
27 #include "coretypes.h"
28 #include "backend.h"
30 /* ------------------------------------------------------------------------ */
32 /* Function to determine whether it is worth to do fp_as_gp optimization.
33 Return 0: It is NOT worth to do fp_as_gp optimization.
34 Return 1: It is APPROXIMATELY worth to do fp_as_gp optimization.
35 Note that if it is worth to do fp_as_gp optimization,
36 we MUST set FP_REGNUM ever live in this function. */
37 int
38 nds32_fp_as_gp_check_available (void)
40 /* By default we return 0. */
41 return 0;
44 /* ------------------------------------------------------------------------ */