aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-13 17:17:19 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-13 17:17:19 -0400
commit2a353d3a5e138357bbe3728e44deb66f853a7caf (patch)
tree0150cd777524f9b7eec5d7aed33bdf6260728ebb /gcc
parentaa830baff1650a2f56fafd0f0be869217120aa3c (diff)
downloadgcc-2a353d3a5e138357bbe3728e44deb66f853a7caf.zip
gcc-2a353d3a5e138357bbe3728e44deb66f853a7caf.tar.gz
gcc-2a353d3a5e138357bbe3728e44deb66f853a7caf.tar.bz2
(putenv): Make result type void.
(main): Don't call signal for undefined signal names. From-SVN: r4139
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 75e3403..37957a6 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1371,6 +1371,7 @@ choose_temp_base ()
#ifndef HAVE_PUTENV
+void
putenv (str)
char *str;
{
@@ -2971,8 +2972,6 @@ do_spec_1 (spec, inswitch, soft_matched_part)
break;
/* Here are digits and numbers that just process
- a certain constant string as a spec.
- /* Here are digits and numbers that just process
a certain constant string as a spec. */
case '1':
@@ -3578,8 +3577,10 @@ main (argc, argv)
if (signal (SIGINT, SIG_IGN) != SIG_IGN)
signal (SIGINT, fatal_error);
+#ifdef SIGHUP
if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
signal (SIGHUP, fatal_error);
+#endif
if (signal (SIGTERM, SIG_IGN) != SIG_IGN)
signal (SIGTERM, fatal_error);
#ifdef SIGPIPE