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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 708 jeremybenn
/* Common hooks for Tensilica's Xtensa architecture.
2
   Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
3
   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 it under
8
the terms of the GNU General Public License as published by the Free
9
Software Foundation; either version 3, or (at your option) any later
10
version.
11
 
12
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13
WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15
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
 
28
/* Implement TARGET_OPTION_OPTIMIZATION_TABLE.  */
29
 
30
static const struct default_options xtensa_option_optimization_table[] =
31
  {
32
    { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
33
    /* Reordering blocks for Xtensa is not a good idea unless the
34
       compiler understands the range of conditional branches.
35
       Currently all branch relaxation for Xtensa is handled in the
36
       assembler, so GCC cannot do a good job of reordering blocks.
37
       Do not enable reordering unless it is explicitly requested.  */
38
    { OPT_LEVELS_ALL, OPT_freorder_blocks, NULL, 0 },
39
    { OPT_LEVELS_NONE, 0, NULL, 0 }
40
  };
41
 
42
#undef TARGET_DEFAULT_TARGET_FLAGS
43
#define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)
44
#undef TARGET_OPTION_OPTIMIZATION_TABLE
45
#define TARGET_OPTION_OPTIMIZATION_TABLE xtensa_option_optimization_table
46
 
47
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.