This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2200: -finstrument-functions doesn't work with exceptions?
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2200: -finstrument-functions doesn't work with exceptions?
- From: bjorn_hellander at altavista dot com
- Date: 7 Mar 2001 10:21:45 -0000
- Reply-To: bjorn_hellander at altavista dot com
>Number: 2200
>Category: c++
>Synopsis: -finstrument-functions doesn't work with exceptions?
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 07 02:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Bjorn Hellander
>Release: gcc 2.95.2
>Organization:
>Environment:
Linux 2.2.5-22, i686
>Description:
I'm using the -finstrument-functions option to create
a simple profiling library. If the instrumented program
throws an exception, then __cyg_profile_func_exit doesn't
get called when the exception propagates up the call stack.
I don't know if it's supposed to be that way,
but I think it makes the option much less useful.
>How-To-Repeat:
g++ -ansi -Wall -c -o instrument1.o instrument1.cc
g++ -ansi -Wall -finstrument-functions -c -o instrument2.o instrument2.cc
g++ -o instrument instrument1.o instrument2.o
./instrument
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="instrument.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="instrument.tgz"