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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [common/] [common-target.h] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 708 jeremybenn
/* Data structure definitions for common hooks.
2
   Copyright (C) 2010, 2011
3
   Free Software Foundation, Inc.
4
 
5
   This program is free software; you can redistribute it and/or modify it
6
   under the terms of the GNU General Public License as published by the
7
   Free Software Foundation; either version 3, or (at your option) any
8
   later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program; see the file COPYING3.  If not see
17
   <http://www.gnu.org/licenses/>.
18
 
19
   In other words, you are welcome to use, share and improve this program.
20
   You are forbidden to forbid anyone else to use, share and improve
21
   what you give them.   Help stamp out software-hoarding!  */
22
 
23
#ifndef GCC_COMMON_TARGET_H
24
#define GCC_COMMON_TARGET_H
25
 
26
#include "input.h"
27
 
28
/* Sets of optimization levels at which an option may be enabled by
29
   default_options_optimization.  */
30
enum opt_levels
31
{
32
  OPT_LEVELS_NONE, /* No levels (mark end of array).  */
33
  OPT_LEVELS_ALL, /* All levels (used by targets to disable options
34
                     enabled in target-independent code).  */
35
  OPT_LEVELS_0_ONLY, /* -O0 only.  */
36
  OPT_LEVELS_1_PLUS, /* -O1 and above, including -Os.  */
37
  OPT_LEVELS_1_PLUS_SPEED_ONLY, /* -O1 and above, but not -Os.  */
38
  OPT_LEVELS_2_PLUS, /* -O2 and above, including -Os.  */
39
  OPT_LEVELS_2_PLUS_SPEED_ONLY, /* -O2 and above, but not -Os.  */
40
  OPT_LEVELS_3_PLUS, /* -O3 and above.  */
41
  OPT_LEVELS_3_PLUS_AND_SIZE, /* -O3 and above and -Os.  */
42
  OPT_LEVELS_SIZE, /* -Os only.  */
43
  OPT_LEVELS_FAST /* -Ofast only.  */
44
};
45
 
46
/* Description of options to enable by default at given levels.  */
47
struct default_options
48
{
49
  /* The levels at which to enable the option.  */
50
  enum opt_levels levels;
51
 
52
  /* The option index and argument or enabled/disabled sense of the
53
     option, as passed to handle_generated_option.  If ARG is NULL and
54
     the option allows a negative form, the option is considered to be
55
     passed in negative form when the optimization level is not one of
56
     those in LEVELS (in order to handle changes to the optimization
57
     level with the "optimize" attribute).  */
58
  size_t opt_index;
59
  const char *arg;
60
  int value;
61
};
62
 
63
#define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME;
64
#define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;
65
#define DEFHOOK_UNDOC DEFHOOK
66
#define HOOKSTRUCT(FRAGMENT) FRAGMENT
67
 
68
#include "common-target.def"
69
 
70
extern struct gcc_targetm_common targetm_common;
71
 
72
#endif /* GCC_C_TARGET_H */

powered by: WebSVN 2.1.0

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