[Bug c++/26530] New: -Os size optimization causes segfault for exception thrown

M dot Schouten at phys dot uu dot nl gcc-bugzilla@gcc.gnu.org
Thu Mar 2 16:29:00 GMT 2006


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



More information about the Gcc-bugs mailing list