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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 708 jeremybenn
/* Common hooks for pdp11.
2
   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2004, 2005,
3
   2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
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/>.  */
20
 
21
#include "config.h"
22
#include "system.h"
23
#include "coretypes.h"
24
#include "tm.h"
25
#include "common/common-target.h"
26
#include "common/common-target-def.h"
27
#include "opts.h"
28
#include "flags.h"
29
 
30
/* Implement TARGET_OPTION_OPTIMIZATION_TABLE.  */
31
 
32
static const struct default_options pdp11_option_optimization_table[] =
33
  {
34
    { OPT_LEVELS_3_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
35
    { OPT_LEVELS_NONE, 0, NULL, 0 }
36
  };
37
 
38
/* Implement TARGET_HANDLE_OPTION.  */
39
 
40
static bool
41
pdp11_handle_option (struct gcc_options *opts,
42
                     struct gcc_options *opts_set ATTRIBUTE_UNUSED,
43
                     const struct cl_decoded_option *decoded,
44
                     location_t loc ATTRIBUTE_UNUSED)
45
{
46
  size_t code = decoded->opt_index;
47
 
48
  switch (code)
49
    {
50
    case OPT_m10:
51
      opts->x_target_flags &= ~(MASK_40 | MASK_45);
52
      return true;
53
 
54
    default:
55
      return true;
56
    }
57
}
58
 
59
/* Implement TARGET_OPTION_INIT_STRUCT.  */
60
 
61
static void
62
pdp11_option_init_struct (struct gcc_options *opts)
63
{
64
  opts->x_flag_finite_math_only = 0;
65
  opts->x_flag_trapping_math = 0;
66
  opts->x_flag_signaling_nans = 0;
67
}
68
 
69
#undef TARGET_DEFAULT_TARGET_FLAGS
70
#define TARGET_DEFAULT_TARGET_FLAGS \
71
  (MASK_FPU | MASK_45 | TARGET_UNIX_ASM_DEFAULT)
72
#undef TARGET_HANDLE_OPTION
73
#define TARGET_HANDLE_OPTION pdp11_handle_option
74
#undef TARGET_OPTION_OPTIMIZATION_TABLE
75
#define TARGET_OPTION_OPTIMIZATION_TABLE pdp11_option_optimization_table
76
#undef TARGET_OPTION_INIT_STRUCT
77
#define TARGET_OPTION_INIT_STRUCT pdp11_option_init_struct
78
 
79
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.