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
77f99bc7
Commit
77f99bc7
authored
32 years ago
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1225
parent
9ac73056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
31 deletions
+53
-31
gcc/protoize.c
+53
-31
No files found.
gcc/protoize.c
View file @
77f99bc7
...
...
@@ -2083,6 +2083,7 @@ process_aux_info_file (base_source_filename, keep_it, is_syscalls)
const
char
*
aux_info_second_line
;
time_t
aux_info_mtime
;
size_t
aux_info_size
;
int
must_create
;
/* Construct the aux_info filename from the base source filename. */
...
...
@@ -2094,38 +2095,59 @@ process_aux_info_file (base_source_filename, keep_it, is_syscalls)
start_over
:
;
{
int
retries
=
0
;
/* If file doesn't exist, set must_create.
Likewise if it exists and we can read it but it is obsolete.
Otherwise, report an error. */
must_create
=
0
;
if
(
my_access
(
aux_info_filename
,
R_OK
)
==
-
1
)
{
if
(
errno
==
ENOENT
)
{
if
(
is_syscalls
)
{
fprintf
(
stderr
,
"%s: warning: missing SYSCALLS file `%s'
\n
"
,
pname
,
aux_info_filename
);
return
;
}
must_create
=
1
;
}
else
{
fprintf
(
stderr
,
"%s: error: can't read aux info file `%s': %s
\n
"
,
pname
,
shortpath
(
NULL
,
aux_info_filename
),
sys_errlist
[
errno
]);
errors
++
;
return
;
}
}
#if 0 /* There is code farther down to take care of this. */
else
{
struct stat s1, s2;
stat (aux_info_file_name, &s1);
stat (base_source_file_name, &s2);
if (s2.st_mtime > s1.st_mtime)
must_create = 1;
}
#endif /* 0 */
retry
:
if
(
my_access
(
aux_info_filename
,
R_OK
)
==
-
1
)
{
if
(
errno
==
ENOENT
&&
retries
==
0
)
{
if
(
is_syscalls
)
{
fprintf
(
stderr
,
"%s: warning: missing SYSCALLS file `%s'
\n
"
,
pname
,
aux_info_filename
);
return
;
}
if
(
!
gen_aux_info_file
(
base_source_filename
))
{
errors
++
;
return
;
}
retries
++
;
goto
retry
;
}
else
{
fprintf
(
stderr
,
"%s: error: can't read aux info file `%s': %s
\n
"
,
pname
,
shortpath
(
NULL
,
aux_info_filename
),
sys_errlist
[
errno
]);
errors
++
;
return
;
}
}
}
/* If we need a .X file, create it, and verify we can read it. */
if
(
must_create
)
{
if
(
!
gen_aux_info_file
(
base_source_filename
))
{
errors
++
;
return
;
}
if
(
my_access
(
aux_info_filename
,
R_OK
)
==
-
1
)
{
fprintf
(
stderr
,
"%s: error: can't read aux info file `%s': %s
\n
"
,
pname
,
shortpath
(
NULL
,
aux_info_filename
),
sys_errlist
[
errno
]);
errors
++
;
return
;
}
}
{
struct
stat
stat_buf
;
...
...
This diff is collapsed.
Click to expand it.
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