public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64
@ 2004-09-02  3:21 masahiro at kasahara dot ws
  2004-09-02  5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: masahiro at kasahara dot ws @ 2004-09-02  3:21 UTC (permalink / raw)
  To: gcc-bugs

Exception handling seems completely broken when -maix64 option is specified.
I have tried with g++ version 3.4.0, 3.4.1, 3.4.2 20040829 (prerelease) 
respectively and got the same result. Following is a small test case.

  cleo% cat throw.cc
  #include <stdio.h>

  int main()
  {
    try{
      throw 1;
    } catch( int i ) {
      printf("catch\n");
    }
    return 0;
  }
  cleo% g++ -maix32 throw.cc -o throw; ./throw
  catch
  cleo% g++ -maix64 throw.cc -o throw; ./throw
  zsh: segmentation fault (core dumped)  ./throw

It works fine under -maix32 option, but when we want to compile in 64-bit mode
the compiled binary crushes just after throw. I used native ld and as (which
are the latest versions). The configure command line is

  ./configure --enable-languages=c,c++ --disable-nls

-- 
           Summary: [AIX] could not catch an exception when specified -
                    maix64
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: masahiro at kasahara dot ws
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-ibm-aix5.2.0.0
  GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-17277-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-06-28 16:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02  3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
2004-09-02  5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
2004-09-09 17:09 ` dje at gcc dot gnu dot org
2004-09-09 17:10 ` dje at gcc dot gnu dot org
2004-09-11 17:10 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` dje at gcc dot gnu dot org
     [not found] <bug-17277-4@http.gcc.gnu.org/bugzilla/>
2014-06-28 16:51 ` chandrakm at hotmail dot com

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).