Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
6d34466a
Commit
6d34466a
authored
Mar 02, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_include): Warn if find unreadable header file.
(errno.h): Move outside VMS specific section. From-SVN: r3611
parent
b3b1e8bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
gcc/cccp.c
+7
-1
No files found.
gcc/cccp.c
View file @
6d34466a
...
...
@@ -87,10 +87,12 @@ typedef unsigned char U_CHAR;
#endif
/* USG */
#endif
/* not VMS */
/* This defines "errno" properly for VMS, and gives us EACCES. */
#include <errno.h>
/* VMS-specific definitions */
#ifdef VMS
#include <time.h>
#include <errno.h>
/* This defines "errno" properly */
#include <perror.h>
/* This defines sys_errlist/sys_nerr properly */
#include <descrip.h>
#define O_RDONLY 0
/* Open arg for Read/Only */
...
...
@@ -3957,6 +3959,10 @@ get_filename:
f
=
open
(
fname
,
O_RDONLY
,
0666
);
if
(
f
==
-
2
)
return
0
;
/* Already included this file */
#ifdef EACCES
else
if
(
f
==
-
1
&&
errno
==
EACCES
)
warning
(
"Header file %s exists, but is not readable"
,
fname
);
#endif
if
(
redundant_include_p
(
fname
))
{
close
(
f
);
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment