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

           Summary: AIX: c++ -static-libgcc cores on throw/catch
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: cvolkm...@orga-systems.com


Created attachment 21986
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21986
Script with code to show the error.

A c++ program with -static-libgcc crashes on AIX (only) after throw.

> terminate called after throwing an instance of 'DoException'
> ./static-gcc-aix-no-catch.sh[52]: 226008 IOT/Abort trap(coredump)

It works fine without "-static-libgcc" on AIX. GNU/Linux x86 does
not have this problem.

A sample script is attached.

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/4.5.1/lto-wrapper
Target: powerpc-ibm-aix6.1.0.0
Configured with: ./configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--enable-languages=c,c++ --prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd
--host=powerpc-ibm-aix6.1.0.0
Thread model: aix
gcc version 4.5.1 (GCC)

Reply via email to