This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gen-num-limits runs forever on GNU/Linux/sparc (Red Hat Linux 6.2)
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: gen-num-limits runs forever on GNU/Linux/sparc (Red Hat Linux 6.2)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 31 Jan 2001 10:30:31 +0100
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <ord7d4chbz.fsf@guarana.lsd.ic.unicamp.br>
Alexandre Oliva <aoliva@redhat.com> writes:
| [1 <text/plain>]
| The problem is that longjmp shouldn't generally be used to return from
| a signal, because it doesn't necessarily restore the blocked-signals
| mask. So, after the first trap longjmp()s out of the signal handler,
| SIGFPE is blocked, and the second trap is never delivered. This patch
| arranges for us to use sigsetjmp if available, falling back to
| setjmp/longjmp otherwise.
Hmm, I'm sure Mark Ketthenis posted a patch on the same subject and I
tought I approved it. I need to back to read why it isn't
already... Just hold on, please.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com