Home | History | Annotate | Line # | Download | only in epiphany
      1  1.1  mrg /* Common hooks for Adapteva Epiphany
      2  1.1  mrg    Copyright (C) 1994-2022 Free Software Foundation, Inc.
      3  1.1  mrg    Contributed by Embecosm on behalf of Adapteva, Inc.
      4  1.1  mrg 
      5  1.1  mrg This file is part of GCC.
      6  1.1  mrg 
      7  1.1  mrg GCC is free software; you can redistribute it and/or modify
      8  1.1  mrg it under the terms of the GNU General Public License as published by
      9  1.1  mrg the Free Software Foundation; either version 3, or (at your option)
     10  1.1  mrg any later version.
     11  1.1  mrg 
     12  1.1  mrg GCC is distributed in the hope that it will be useful,
     13  1.1  mrg but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  1.1  mrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15  1.1  mrg GNU General Public License for more details.
     16  1.1  mrg 
     17  1.1  mrg You should have received a copy of the GNU General Public License
     18  1.1  mrg along with GCC; see the file COPYING3.  If not see
     19  1.1  mrg <http://www.gnu.org/licenses/>.  */
     20  1.1  mrg 
     21  1.1  mrg #include "config.h"
     22  1.1  mrg #include "system.h"
     23  1.1  mrg #include "coretypes.h"
     24  1.1  mrg #include "common/common-target.h"
     25  1.1  mrg #include "opts.h"
     26  1.1  mrg #include "options.h"
     27  1.1  mrg 
     28  1.1  mrg #define TARGET_OPTION_OPTIMIZATION_TABLE epiphany_option_optimization_table
     29  1.1  mrg 
     30  1.1  mrg #define TARGET_DEFAULT_TARGET_FLAGS \
     31  1.1  mrg   (MASK_CMOVE | MASK_SOFT_CMPSF | MASK_SPLIT_LOHI | MASK_ROUND_NEAREST \
     32  1.1  mrg    | MASK_VECT_DOUBLE | MASK_POST_INC | MASK_POST_MODIFY)
     33  1.1  mrg 
     34  1.1  mrg #define TARGET_HAVE_NAMED_SECTIONS true
     35  1.1  mrg 
     36  1.1  mrg #include "common/common-target-def.h"
     37  1.1  mrg 
     38  1.1  mrg /* Implement TARGET_OPTION_OPTIMIZATION_TABLE.  */
     40  1.1  mrg static const struct default_options epiphany_option_optimization_table[] =
     41  1.1  mrg   {
     42  1.1  mrg     /* Enable section anchors by default at -O1 or higher.  */
     43  1.1  mrg     { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 },
     44  1.1  mrg     { OPT_LEVELS_NONE, 0, NULL, 0 }
     45  1.1  mrg   };
     46  1.1  mrg 
     47           struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
     48