OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [common/] [config/] [mips/] [mips-common.c] - Blame information for rev 708

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 708 jeremybenn
/* Common hooks for MIPS.
2
   Copyright (C) 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998,
3
   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4
   2011
5
   Free Software Foundation, Inc.
6
 
7
This file is part of GCC.
8
 
9
GCC is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3, or (at your option)
12
any later version.
13
 
14
GCC is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
GNU General Public License for more details.
18
 
19
You should have received a copy of the GNU General Public License
20
along with GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
#include "config.h"
24
#include "system.h"
25
#include "coretypes.h"
26
#include "tm.h"
27
#include "common/common-target.h"
28
#include "common/common-target-def.h"
29
#include "opts.h"
30
#include "flags.h"
31
 
32
/* Implement TARGET_HANDLE_OPTION.  */
33
 
34
static bool
35
mips_handle_option (struct gcc_options *opts,
36
                    struct gcc_options *opts_set ATTRIBUTE_UNUSED,
37
                    const struct cl_decoded_option *decoded,
38
                    location_t loc ATTRIBUTE_UNUSED)
39
{
40
  size_t code = decoded->opt_index;
41
 
42
  switch (code)
43
    {
44
    case OPT_mno_flush_func:
45
      opts->x_mips_cache_flush_func = NULL;
46
      return true;
47
 
48
    default:
49
      return true;
50
    }
51
}
52
 
53
/* Implement TARGET_OPTION_OPTIMIZATION_TABLE.  */
54
static const struct default_options mips_option_optimization_table[] =
55
  {
56
    { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
57
    { OPT_LEVELS_NONE, 0, NULL, 0 }
58
  };
59
 
60
#undef TARGET_OPTION_OPTIMIZATION_TABLE
61
#define TARGET_OPTION_OPTIMIZATION_TABLE mips_option_optimization_table
62
 
63
#undef TARGET_DEFAULT_TARGET_FLAGS
64
#define TARGET_DEFAULT_TARGET_FLAGS             \
65
  (TARGET_DEFAULT                               \
66
   | TARGET_CPU_DEFAULT                         \
67
   | TARGET_ENDIAN_DEFAULT                      \
68
   | TARGET_FP_EXCEPTIONS_DEFAULT               \
69
   | MASK_CHECK_ZERO_DIV                        \
70
   | MASK_FUSED_MADD)
71
#undef TARGET_HANDLE_OPTION
72
#define TARGET_HANDLE_OPTION mips_handle_option
73
 
74
struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.