This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2447: g++ don't handle execption when using with -fomit-frame-pointer



>Number:         2447
>Category:       c++
>Synopsis:       g++ don't handle execption when using with -fomit-frame-pointer
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 31 17:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     g++
>Release:        3.1 20010331
>Organization:
>Environment:
i686-pc-linux
>Description:
When compiling the attached code with fomi-frame-pointer it does segfault when it should catch the error :

[t.cc is the example file]

[gc@bi ~/tmp] g++ t.cc
[gc@bi ~/tmp] ./a.out 
step #1
step #2
step #3
catched!
[gc@bi ~/tmp] g++ -fomit-frame-pointer t.cc
[gc@bi ~/tmp] ./a.out 
step #1
step #2
step #3
Aborted (core dumped)
[gc@bi ~/tmp]
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="t.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t.cc"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IFBTTUVPRiB7fQo7CgoKdm9pZCBzZWNvbmRfbGV2
ZWwodm9pZCkgewogIGNvdXQgPDwgInN0ZXAgIzMiIDw8IGVuZGw7CiAgdGhyb3cgUFNNRU9GKCk7
CiAgY291dCA8PCAic3RlcCAjNCIgPDwgZW5kbDsKfQoKdm9pZCBmaXJzdF9sZXZlbCh2b2lkKSB7
CiAgdHJ5IHsKICAgIGNvdXQgPDwgInN0ZXAgIzEiIDw8IGVuZGw7CiAgICAvL3Rocm93IFBTTUVP
RigpOwogICAgY291dCA8PCAic3RlcCAjMiIgPDwgZW5kbDsKICAgIHNlY29uZF9sZXZlbCgpOwog
IH0KICBjYXRjaCAoUFNNRU9GKSB7CiAgICBjb3V0IDw8ICJjYXRjaGVkISIgPDwgZW5kbDsKICB9
Cn0KCgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKQp7CiAgZmlyc3RfbGV2ZWwoKTsK
ICByZXR1cm4gMDsKCn0K


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]