comparison gcc/cppdefault.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* CPP Library. 1 /* CPP Library.
2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. 3 1999, 2000, 2003, 2004, 2006, 2007, 2010 Free Software Foundation, Inc.
4 Contributed by Per Bothner, 1994-95. 4 Contributed by Per Bothner, 1994-95.
5 Based on CCCP program by Paul Rubin, June 1986 5 Based on CCCP program by Paul Rubin, June 1986
6 Adapted to ANSI C, Richard Stallman, Jan 1987 6 Adapted to ANSI C, Richard Stallman, Jan 1987
7 7
8 This program is free software; you can redistribute it and/or modify it 8 This program is free software; you can redistribute it and/or modify it
56 #endif 56 #endif
57 #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR 57 #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR
58 /* Pick up GNU C++ backward and deprecated include files. */ 58 /* Pick up GNU C++ backward and deprecated include files. */
59 { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 0, 0 }, 59 { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 0, 0 },
60 #endif 60 #endif
61 #ifdef GCC_INCLUDE_DIR
62 /* This is the dir for gcc's private headers. */
63 { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 },
64 #endif
61 #ifdef LOCAL_INCLUDE_DIR 65 #ifdef LOCAL_INCLUDE_DIR
62 /* /usr/local/include comes before the fixincluded header files. */ 66 /* /usr/local/include comes before the fixincluded header files. */
63 { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 }, 67 { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 },
64 #endif 68 #endif
65 #ifdef PREFIX_INCLUDE_DIR 69 #ifdef PREFIX_INCLUDE_DIR
66 { PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0 }, 70 { PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0 },
67 #endif
68 #ifdef GCC_INCLUDE_DIR
69 /* This is the dir for gcc's private headers. */
70 { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 },
71 #endif 71 #endif
72 #ifdef FIXED_INCLUDE_DIR 72 #ifdef FIXED_INCLUDE_DIR
73 /* This is the dir for fixincludes. */ 73 /* This is the dir for fixincludes. */
74 { FIXED_INCLUDE_DIR, "GCC", 0, 0, 0, 74 { FIXED_INCLUDE_DIR, "GCC", 0, 0, 0,
75 /* A multilib suffix needs adding if different multilibs use 75 /* A multilib suffix needs adding if different multilibs use
125 125
126 /* A relocated toolchain ignores standard include directories. */ 126 /* A relocated toolchain ignores standard include directories. */
127 if (relocated == -1) 127 if (relocated == -1)
128 { 128 {
129 /* Check if the toolchain was relocated? */ 129 /* Check if the toolchain was relocated? */
130 GET_ENVIRONMENT (gcc_exec_prefix, "GCC_EXEC_PREFIX"); 130 gcc_exec_prefix = getenv ("GCC_EXEC_PREFIX");
131 if (gcc_exec_prefix) 131 if (gcc_exec_prefix)
132 relocated = 1; 132 relocated = 1;
133 else 133 else
134 relocated = 0; 134 relocated = 0;
135 } 135 }