This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26530] New: -Os size optimization causes segfault for exception thrown
- From: "M dot Schouten at phys dot uu dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2006 16:29:06 -0000
- Subject: [Bug c++/26530] New: -Os size optimization causes segfault for exception thrown
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code will segfault when saying:
g++ -Os test.cpp -o test && ./test
but not with any other -O? options such as
g++ -O3 test.cpp -o test && ./test
preprocessed source:
# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.cpp"
int main()
{
try{
throw 8;
}catch(...){}
}
--
Summary: -Os size optimization causes segfault for exception
thrown
Product: gcc
Version: 3.4.5
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: M dot Schouten at phys dot uu dot nl
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26530