diff options
author | Neil Booth <neil@gcc.gnu.org> | 2003-05-11 13:43:36 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-05-11 13:43:36 +0000 |
commit | 6e2701797a3dc551e6216c5febe182d771922ba5 (patch) | |
tree | 7cab977994e83b118651dd8ede9739970a4c0152 /gcc/cppfiles.c | |
parent | 8af992ea30b76cc71f3d57f90c005ed2d3671ff3 (diff) | |
download | gcc-6e2701797a3dc551e6216c5febe182d771922ba5.zip gcc-6e2701797a3dc551e6216c5febe182d771922ba5.tar.gz gcc-6e2701797a3dc551e6216c5febe182d771922ba5.tar.bz2 |
c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into cpplib as it's a Standard Predefined Macro.
* 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.
From-SVN: r66688
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 c7a4f9c..66865af 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); |