aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-07-07 10:40:32 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-07-07 10:40:32 -0700
commitcf0c751a4f80ac96a204b1e09213eedf222aa92f (patch)
tree26bad1d83ef6876028e754d153c237b04f56f746
parent26902ae0728c9eb202fb719450e1387aace3c0b1 (diff)
downloadgcc-cf0c751a4f80ac96a204b1e09213eedf222aa92f.zip
gcc-cf0c751a4f80ac96a204b1e09213eedf222aa92f.tar.gz
gcc-cf0c751a4f80ac96a204b1e09213eedf222aa92f.tar.bz2
(fork_execute, scan_prog_file): Use "fork" in error
messages instead of "vfork" when vfork is defined to fork. From-SVN: r4871
-rw-r--r--gcc/collect2.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index fcf9ecd..46410d8 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1193,7 +1193,13 @@ fork_execute (prog, argv)
pid = vfork ();
if (pid == -1)
- fatal_perror ("vfork");
+ {
+#ifdef vfork
+ fatal_perror ("fork");
+#else
+ fatal_perror ("vfork");
+#endif
+ }
if (pid == 0) /* child context */
{
@@ -1363,7 +1369,13 @@ scan_prog_file (prog_name, which_pass)
/* Spawn child nm on pipe */
pid = vfork ();
if (pid == -1)
- fatal_perror ("vfork");
+ {
+#ifdef vfork
+ fatal_perror ("fork");
+#else
+ fatal_perror ("vfork");
+#endif
+ }
if (pid == 0) /* child context */
{