diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-11 13:43:36 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-11 13:43:36 +0000 |
commit | 4a3ce7dbb037038951bfd1930d7757cad529be55 (patch) | |
tree | 7cab977994e83b118651dd8ede9739970a4c0152 /gcc/cppfiles.c | |
parent | 25fe8c76c8c8102925d5de01e5cc56ad75f90ac4 (diff) | |
download | ppe42-gcc-4a3ce7dbb037038951bfd1930d7757cad529be55.tar.gz ppe42-gcc-4a3ce7dbb037038951bfd1930d7757cad529be55.zip |
* c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
cpplib as it's a Standard Predefined Macro.
* c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
* cppinit.c (_cpp_init_builtins): Take HOSTED. Define
__STDC_HOSTED__ appropriately.
* cpplib.h (_cpp_init_builtins): Update.
* fix-header.c (read_scan_file): Update.
* doc/cpp.texi, doc/cppopts.texi: Update documentation.
* cppfiles.c (find_or_create_entry): Preserve errno.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index c7a4f9c87dc..66865af2651 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -174,8 +174,10 @@ find_or_create_entry (pfile, fname) splay_tree_node node; struct include_file *file; char *name = xstrdup (fname); + int saved_errno; cpp_simplify_path (name); + saved_errno = errno; node = splay_tree_lookup (pfile->all_include_files, (splay_tree_key) name); if (node) free (name); @@ -184,7 +186,7 @@ find_or_create_entry (pfile, fname) file = xcnew (struct include_file); file->name = name; file->header_name = name; - file->err_no = errno; + file->err_no = saved_errno; node = splay_tree_insert (pfile->all_include_files, (splay_tree_key) file->name, (splay_tree_value) file); |