summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-13 21:17:19 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-13 21:17:19 +0000
commit294a029f9b179a07b708c5a8d6570bcbc1ad1928 (patch)
tree0150cd777524f9b7eec5d7aed33bdf6260728ebb /gcc/gcc.c
parent86814797c88fb70adae0265f1da36a02b587f6fc (diff)
downloadgcc-294a029f9b179a07b708c5a8d6570bcbc1ad1928.tar.gz
(putenv): Make result type void.
(main): Don't call signal for undefined signal names. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4139 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 75e340321c0..37957a6614e 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