This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64


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


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