comparison gcc/incpath.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 77e2b8dfacca
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Set up combined include path chain for the preprocessor. 1 /* Set up combined include path chain for the preprocessor.
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, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6 Broken out of cppinit.c and cppfiles.c and rewritten Mar 2003. 6 Broken out of cppinit.c and cppfiles.c and rewritten Mar 2003.
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
98 static void 98 static void
99 add_env_var_paths (const char *env_var, int chain) 99 add_env_var_paths (const char *env_var, int chain)
100 { 100 {
101 char *p, *q, *path; 101 char *p, *q, *path;
102 102
103 GET_ENVIRONMENT (q, env_var); 103 q = getenv (env_var);
104 104
105 if (!q) 105 if (!q)
106 return; 106 return;
107 107
108 for (p = q; *q; p = q + 1) 108 for (p = q; *q; p = q + 1)
237 cpp_errno (pfile, CPP_DL_WARNING, cur->name); 237 cpp_errno (pfile, CPP_DL_WARNING, cur->name);
238 reason = REASON_NOENT; 238 reason = REASON_NOENT;
239 } 239 }
240 } 240 }
241 else if (!S_ISDIR (st.st_mode)) 241 else if (!S_ISDIR (st.st_mode))
242 cpp_error_with_line (pfile, CPP_DL_ERROR, 0, 0, 242 cpp_error_with_line (pfile, CPP_DL_WARNING, 0, 0,
243 "%s: not a directory", cur->name); 243 "%s: not a directory", cur->name);
244 else 244 else
245 { 245 {
246 #if defined (INO_T_COPY) 246 #if defined (INO_T_COPY)
247 INO_T_COPY (cur->ino, st.st_ino); 247 INO_T_COPY (cur->ino, st.st_ino);