This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4351
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Re: c++/4351
- From: "Jessica Han" <jessica at cup dot hp dot com>
- Date: Wed, 10 Oct 2001 15:33:01 -0700
- Reply-To: <jessica at cup dot hp dot com>
The compiler core dumps in sjlj_emit_dispatch_table(gcc/except.c:2310)
when it is trying to access cfun->eh->region_array[0], which should
always be a NULL pointer. The function being compiled " void
PortableServer::POA::AdapterAlreadyExists::_raise() {throw *this;} "
has only one exception handling region, and it is marked as
"ERT_MUST_NOT_THROW". It doesn't have any directly reachable region.
I made the following change, and the testcase compiled ok. Is it a valid
change? Thanks.
2310,2311c2310,2311
< if (first_reachable)
< emit_insns_before (seq, (cfun->eh->region_array[first_reachable]
---
>
> emit_insns_before (seq, (cfun->eh->region_array[first_reachable]
2313,2314d2312
< else
< emit_insns(seq);
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4351&database=gcc
--
Jessica Han
Open Source Tools, Hewlett-Packard
jessica@cup.hp.com
(408) 447-6154
--------------005228B633970643515FFA46
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
The compiler core dumps in sjlj_emit_dispatch_table(gcc/except.c:2310)
<br>when it is trying to access cfun->eh->region_array[0], which should
always be a NULL pointer. The function being compiled " void
PortableServer::POA::AdapterAlreadyExists::_raise()
{throw *this;} " has only one exception handling region, and it is
marked as "ERT_MUST_NOT_THROW". It doesn't have any directly reachable
region.
<br>I made the following change, and the testcase compiled ok. Is it a
valid change? Thanks.
<br>2310,2311c2310,2311
<br>< if (first_reachable)
<br>< emit_insns_before (seq,
(cfun->eh->region_array[first_reachable]
<br>---
<br>>
<br>> emit_insns_before (seq,
(cfun->eh->region_array[first_reachable]
<br>2313,2314d2312
<br>< else
<br>< emit_insns(seq);
<br>
<p><A
HREF="http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4351&amp;databa
se=gcc">http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4351&amp;
database=gcc</A>
<pre>--
Jessica Han
Open Source Tools, Hewlett-Packard
jessica@cup.hp.com
(408) 447-6154</pre>
</html>
--------------005228B633970643515FFA46--