Change default for -msave-toc-indirect
[official-gcc.git] / gcc / gcse.h
blobb4ed7f22fa12b1e79000241c66e56d9882de8ba6
1 /* Global common subexpression elimination/Partial redundancy elimination
2 and global constant/copy propagation for GNU compiler.
3 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
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/>. */
22 #ifndef GCC_GCSE_H
23 #define GCC_GCSE_H
25 /* Target-dependent globals. */
26 struct target_gcse {
27 /* Nonzero for each mode that supports (set (reg) (reg)).
28 This is trivially true for integer and floating point values.
29 It may or may not be true for condition codes. */
30 char x_can_copy[(int) NUM_MACHINE_MODES];
32 /* True if the previous field has been initialized. */
33 bool x_can_copy_init_p;
36 extern GTY(()) struct target_gcse default_target_gcse;
37 #if SWITCHABLE_TARGET
38 extern struct target_gcse *this_target_gcse;
39 #else
40 #define this_target_gcse (&default_target_gcse)
41 #endif
43 #endif