* simplify-rtx.c (simplify_unary_operation,
[official-gcc.git] / gcc / cppdefault.c
blob40d8d908f8bcaf1510ba1a7575b972738b4eea81
1 /* CPP Library.
2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000 Free Software Foundation, Inc.
4 Contributed by Per Bothner, 1994-95.
5 Based on CCCP program by Paul Rubin, June 1986
6 Adapted to ANSI C, Richard Stallman, Jan 1987
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
11 later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 /* This file contains data definitions shared between cpplib and
23 tradcpp. */
25 #include "config.h"
26 #include "system.h"
27 #include "coretypes.h"
28 #include "tm.h"
29 #include "cppdefault.h"
31 const struct default_include cpp_include_defaults[]
32 #ifdef INCLUDE_DEFAULTS
33 = INCLUDE_DEFAULTS;
34 #else
35 = {
36 #ifdef GPLUSPLUS_INCLUDE_DIR
37 /* Pick up GNU C++ generic include files. */
38 { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },
39 #endif
40 #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR
41 /* Pick up GNU C++ target-dependent include files. */
42 { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1 },
43 #endif
44 #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR
45 /* Pick up GNU C++ backward and deprecated include files. */
46 { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1 },
47 #endif
48 #ifdef LOCAL_INCLUDE_DIR
49 /* /usr/local/include comes before the fixincluded header files. */
50 { LOCAL_INCLUDE_DIR, 0, 0, 1 },
51 #endif
52 #ifdef PREFIX_INCLUDE_DIR
53 { PREFIX_INCLUDE_DIR, 0, 0, 1 },
54 #endif
55 #ifdef GCC_INCLUDE_DIR
56 /* This is the dir for fixincludes and for gcc's private headers. */
57 { GCC_INCLUDE_DIR, "GCC", 0, 0 },
58 #endif
59 #ifdef CROSS_INCLUDE_DIR
60 /* One place the target system's headers might be. */
61 { CROSS_INCLUDE_DIR, "GCC", 0, 0 },
62 #endif
63 #ifdef TOOL_INCLUDE_DIR
64 /* Another place the target system's headers might be. */
65 { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1 },
66 #endif
67 #ifdef SYSTEM_INCLUDE_DIR
68 /* Some systems have an extra dir of include files. */
69 { SYSTEM_INCLUDE_DIR, 0, 0, 0 },
70 #endif
71 #ifdef STANDARD_INCLUDE_DIR
72 /* /usr/include comes dead last. */
73 { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0 },
74 #endif
75 { 0, 0, 0, 0 }
77 #endif /* no INCLUDE_DEFAULTS */
79 #ifdef GCC_INCLUDE_DIR
80 const char cpp_GCC_INCLUDE_DIR[] = GCC_INCLUDE_DIR;
81 const size_t cpp_GCC_INCLUDE_DIR_len = sizeof GCC_INCLUDE_DIR - 8;
82 #else
83 const char cpp_GCC_INCLUDE_DIR[] = "";
84 const size_t cpp_GCC_INCLUDE_DIR_len = 0;
85 #endif