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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 708 jeremybenn
/* Common hooks for TILEPro.
2
   Copyright (C) 2011, 2012
3
   Free Software Foundation, Inc.
4
   Contributed by Walter Lee (walt@tilera.com)
5
 
6
   This file is part of GCC.
7
 
8
   GCC is free software; you can redistribute it and/or modify it
9
   under the terms of the GNU General Public License as published
10
   by the Free Software Foundation; either version 3, or (at your
11
   option) any later version.
12
 
13
   GCC is distributed in the hope that it will be useful, but WITHOUT
14
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16
   License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GCC; see the file COPYING3.  If not see
20
   <http://www.gnu.org/licenses/>.  */
21
 
22
#include "config.h"
23
#include "system.h"
24
#include "coretypes.h"
25
#include "diagnostic-core.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
static const struct default_options tilepro_option_optimization_table[] = {
33
  {OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1},
34
  /* Scheduling and bundling are super important for our architecture, so
35
     enable them at -O1. */
36
  {OPT_LEVELS_1_PLUS, OPT_fschedule_insns, NULL, 1},
37
  {OPT_LEVELS_1_PLUS, OPT_fschedule_insns2, NULL, 1},
38
  {OPT_LEVELS_NONE, 0, NULL, 0}
39
};
40
 
41
 
42
static void
43
tilepro_option_init_struct (struct gcc_options *opts)
44
{
45
  opts->x_flag_asynchronous_unwind_tables = 1;
46
}
47
 
48
 
49
 
50
#undef  TARGET_OPTION_OPTIMIZATION_TABLE
51
#define TARGET_OPTION_OPTIMIZATION_TABLE tilepro_option_optimization_table
52
 
53
#undef  TARGET_OPTION_INIT_STRUCT
54
#define TARGET_OPTION_INIT_STRUCT tilepro_option_init_struct
55
 
56
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.