projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a95876
)
(finclude): Clean error msf if file_size_and_mode fails.
author
Richard Stallman
<rms@gnu.org>
Sat, 11 Jul 1992 21:09:48 +0000
(21:09 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 11 Jul 1992 21:09:48 +0000
(21:09 +0000)
From-SVN: r1558
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 76feed7f7d18298b42d5ba4a96be5037b897fd12..c84e62094cf9ed7b086d22830dcef2bbeaba634f 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-3972,7
+3972,11
@@
finclude (f, fname, op, system_header_p, dirptr)
CHECK_DEPTH (return;);
if (file_size_and_mode (f, &st_mode, &st_size) < 0)
- goto nope; /* Impossible? */
+ {
+ perror_with_name (fname);
+ close (f);
+ return;
+ }
fp = &instack[indepth + 1];
bzero (fp, sizeof (FILE_BUF));