diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2000-07-13 04:43:47 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-07-13 04:43:47 +0000 |
commit | c334349bda917012f51f629988006f9c72b7288a (patch) | |
tree | 6de36bf7b8f48857cc3e90312c8d4589da6c3f6f /gcc/tradcpp.c | |
parent | dcacfa04fe67a4f0c957d0b37e0c750d2036d34d (diff) | |
download | gcc-c334349bda917012f51f629988006f9c72b7288a.zip gcc-c334349bda917012f51f629988006f9c72b7288a.tar.gz gcc-c334349bda917012f51f629988006f9c72b7288a.tar.bz2 |
gcc.c (execute): If a subprocess gets a fatal signal...
* gcc.c (execute): If a subprocess gets a fatal signal, report
strsignal() of the signal number, and ask for a bug report.
Do not do this for SIGPIPE if there's already been an error.
* tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
Delete pipe_closed.
From-SVN: r35006
Diffstat (limited to 'gcc/tradcpp.c')
-rw-r--r-- | gcc/tradcpp.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index 2afb550..971dfef 100644 --- a/gcc/tradcpp.c +++ b/gcc/tradcpp.c @@ -28,8 +28,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. #include "version.h" #include "cppdefault.h" -#include <signal.h> - typedef unsigned char U_CHAR; /* Name under which this program was invoked. */ @@ -387,7 +385,6 @@ U_CHAR *skip_to_end_of_comment PARAMS ((FILE_BUF *, int *)); U_CHAR *skip_quoted_string PARAMS ((U_CHAR *, U_CHAR *, int, int *, int *, int *)); -void pipe_closed PARAMS ((int)); int main PARAMS ((int, char **)); /* Convenience. Write U"string" to get an unsigned string constant. */ @@ -457,15 +454,6 @@ int deps_column; /* Nonzero means -I- has been seen, so don't look for #include "foo" the source-file directory. */ int ignore_srcdir; - -/* Handler for SIGPIPE. */ - -void -pipe_closed (dummy) - int dummy ATTRIBUTE_UNUSED; -{ - exit (FATAL_EXIT_CODE); -} int main (argc, argv) @@ -515,8 +503,6 @@ main (argc, argv) dump_macros = 0; no_output = 0; - signal (SIGPIPE, pipe_closed); - max_include_len = cpp_GCC_INCLUDE_DIR_len + 7; /* ??? */ memset (pend_files, 0, argc * sizeof (char *)); |