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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 708 jeremybenn
/* Common hooks for SPU.
2
   Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
3
   Free Software Foundation, Inc.
4
 
5
   This file is free software; you can redistribute it and/or modify it under
6
   the terms of the GNU General Public License as published by the Free
7
   Software Foundation; either version 3 of the License, or (at your option)
8
   any later version.
9
 
10
   This file is distributed in the hope that it will be useful, but WITHOUT
11
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13
   for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with GCC; see the file COPYING3.  If not see
17
   <http://www.gnu.org/licenses/>.  */
18
 
19
#include "config.h"
20
#include "system.h"
21
#include "coretypes.h"
22
#include "tm.h"
23
#include "common/common-target.h"
24
#include "common/common-target-def.h"
25
#include "opts.h"
26
#include "flags.h"
27
#include "params.h"
28
 
29
static void
30
spu_option_init_struct (struct gcc_options *opts)
31
{
32
  /* With so many registers this is better on by default. */
33
  opts->x_flag_rename_registers = 1;
34
}
35
 
36
/* Implement TARGET_OPTION_DEFAULT_PARAMS.  */
37
static void
38
spu_option_default_params (void)
39
{
40
  /* Override some of the default param values.  With so many registers
41
     larger values are better for these params.  */
42
  set_default_param_value (PARAM_MAX_PENDING_LIST_LENGTH, 128);
43
}
44
 
45
#undef TARGET_DEFAULT_TARGET_FLAGS
46
#define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)
47
 
48
#undef TARGET_OPTION_INIT_STRUCT
49
#define TARGET_OPTION_INIT_STRUCT spu_option_init_struct
50
 
51
#undef TARGET_OPTION_DEFAULT_PARAMS
52
#define TARGET_OPTION_DEFAULT_PARAMS spu_option_default_params
53
 
54
#undef TARGET_EXCEPT_UNWIND_INFO
55
#define TARGET_EXCEPT_UNWIND_INFO  sjlj_except_unwind_info
56
 
57
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.