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
c6469b46
Commit
c6469b46
authored
Mar 16, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Report errors in output to pcp_outfile.
(write_output): Use pfatal_with_name for errors. From-SVN: r3755
parent
af2cc4dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/cccp.c
+7
-3
No files found.
gcc/cccp.c
View file @
c6469b46
...
@@ -1905,6 +1905,10 @@ main (argc, argv)
...
@@ -1905,6 +1905,10 @@ main (argc, argv)
}
}
}
}
if
(
pcp_outfile
&&
pcp_outfile
!=
stdout
&&
(
ferror
(
pcp_outfile
)
||
fclose
(
pcp_outfile
)
!=
0
))
fatal
(
"I/O error on `-pcp' output"
);
if
(
ferror
(
stdout
)
||
fclose
(
stdout
)
!=
0
)
if
(
ferror
(
stdout
)
||
fclose
(
stdout
)
!=
0
)
fatal
(
"I/O error on output"
);
fatal
(
"I/O error on output"
);
...
@@ -4687,9 +4691,9 @@ write_output ()
...
@@ -4687,9 +4691,9 @@ write_output ()
sprintf
(
line_command
,
"
\n
# %d
\"
%s
\"\n
"
,
sprintf
(
line_command
,
"
\n
# %d
\"
%s
\"\n
"
,
next_string
->
lineno
,
next_string
->
filename
);
next_string
->
lineno
,
next_string
->
filename
);
if
(
write
(
fileno
(
stdout
),
line_command
,
strlen
(
line_command
))
<
0
)
if
(
write
(
fileno
(
stdout
),
line_command
,
strlen
(
line_command
))
<
0
)
p
error
_with_name
(
out_fname
);
p
fatal
_with_name
(
out_fname
);
if
(
write
(
fileno
(
stdout
),
next_string
->
contents
,
next_string
->
len
)
<
0
)
if
(
write
(
fileno
(
stdout
),
next_string
->
contents
,
next_string
->
len
)
<
0
)
p
error
_with_name
(
out_fname
);
p
fatal
_with_name
(
out_fname
);
}
}
next_string
=
next_string
->
chain
;
next_string
=
next_string
->
chain
;
}
}
...
@@ -4700,7 +4704,7 @@ write_output ()
...
@@ -4700,7 +4704,7 @@ write_output ()
:
outbuf
.
bufp
-
cur_buf_loc
);
:
outbuf
.
bufp
-
cur_buf_loc
);
if
(
write
(
fileno
(
stdout
),
cur_buf_loc
,
len
)
<
len
)
if
(
write
(
fileno
(
stdout
),
cur_buf_loc
,
len
)
<
len
)
p
error
_with_name
(
out_fname
);
p
fatal
_with_name
(
out_fname
);
cur_buf_loc
+=
len
;
cur_buf_loc
+=
len
;
}
}
}
}
...
...
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