diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-02-06 21:30:45 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-02-06 21:30:45 +0000 |
commit | 69bfe91813c6f876ca758806a0eaa4a26e8e5965 (patch) | |
tree | a237db00ae5c58ae6db70b62c26231ca3ce4e611 /gcc/mips-tfile.c | |
parent | c4677f913ff2a4efdf2fd17f4c9b2a3364de51b3 (diff) | |
download | gcc-69bfe91813c6f876ca758806a0eaa4a26e8e5965.tar.gz |
(sys_siglist): Don't declare if NO_SYS_SIGLIST or
DONT_DECLARE_SYS_SIGLIST are defined.
(catch_signal): Add code for NO_SYS_SIGLIST case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index b6acbf530fc..7258e92b16e 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -1748,7 +1748,11 @@ extern char *optarg; extern int optind; extern int opterr; extern char *version_string; +#ifndef NO_SYS_SIGLIST +#ifndef DONT_DECLARE_SYS_SIGLIST extern char *sys_siglist[NSIG + 1]; +#endif +#endif #ifndef SEEK_SET /* Symbolic constants for the "fseek" function: */ #define SEEK_SET 0 /* Set file pointer to offset */ @@ -5000,7 +5004,11 @@ catch_signal (signum) int signum; { (void) signal (signum, SIG_DFL); /* just in case... */ +#ifdef NO_SYS_SIGLIST + fatal ("caught signal"); +#else fatal (sys_siglist[signum]); +#endif } /* Print a fatal error message. NAME is the text. |