public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26530]  New: -Os size optimization causes segfault for exception thrown
@ 2006-03-02 16:29 M dot Schouten at phys dot uu dot nl
  2006-03-02 16:32 ` [Bug target/26530] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: M dot Schouten at phys dot uu dot nl @ 2006-03-02 16:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/26530] -Os size optimization causes segfault for exception thrown
  2006-03-02 16:29 [Bug c++/26530] New: -Os size optimization causes segfault for exception thrown M dot Schouten at phys dot uu dot nl
@ 2006-03-02 16:32 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-02 16:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-02 16:32 -------
This works in 4.1.0 and above.  Closing as fixed since this is not a
regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to fail|                            |4.0.3 4.0.0 3.4.4 3.3.6
      Known to work|                            |4.1.0 4.2.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26530


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-02 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02 16:29 [Bug c++/26530] New: -Os size optimization causes segfault for exception thrown M dot Schouten at phys dot uu dot nl
2006-03-02 16:32 ` [Bug target/26530] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).