https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61759

            Bug ID: 61759
           Summary: internal compiler error: in objc_eh_runtime_type, at
                    objc/objc-next-runtime-abi-01.c:2792
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dougmencken at gmail dot com

I cannot compile some LibreOffice .mm files using gcc-4.8.3 on OS X 10.5. Many
of them fails with ICE when -O2 is used, but with -O(1) they compiles.

I cannot also compile .cxx files when -x objective-c++ is used on gcc line.

All of them ICE at the same spot: "in objc_eh_runtime_type, at
objc/objc-next-runtime-abi-01.c:2792"

This one (vcl/osx/a11yselectionwrapper.mm) ICEs even with -O:

S=/lo-build && I=$S/instdir && W=$S/workdir &&  mkdir -p
$W/ObjCxxObject/vcl/osx/ $W/Dep/ObjCxxObject/vcl/osx/ && cd /lo-build &&  
/usr/bin/ccache g++ -save-temps -mmacosx-version-min=10.5 -DCPPU_ENV=gcc3
-DLIBO_INTERNAL_ONLY -DMACOSX -DMACOSX_SDK_VERSION=1050
-DMAC_OS_X_VERSION_MAX_ALLOWED=1050 -DMAC_OS_X_VERSION_MIN_REQUIRED=1050
-DNDEBUG -DNO_PTHREAD_PRIORITY -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DPOWERPC -DPPC
-DSUPD=440 -DUNIX -DUNX -D_PTHREADS -D_REENTRANT  -DRTL_USING  
-DVCL_DLLIMPLEMENTATION -DCUI_DLL_NAME=\"libcuilo.dylib\"
-DDESKTOP_DETECTOR_DLL_NAME=\"\" -DTK_DLL_NAME=\"libtklo.dylib\"
-DVCLPLUG_SVP_DLL_NAME=\"\" 
-DMACOSX_BUNDLE_IDENTIFIER=\"org.libreoffice.script\"  
-DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wendif-labels
-Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe 
-fno-threadsafe-statics -fPIC -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-fno-strict-aliasing -fsigned-char -std=gnu++11  -O   -c
$S/vcl/osx/a11yselectionwrapper.mm -o
$W/ObjCxxObject/vcl/osx/a11yselectionwrapper.o -MMD -MT
$W/ObjCxxObject/vcl/osx/a11yselectionwrapper.o -MP -MF
$W/Dep/ObjCxxObject/vcl/osx/a11yselectionwrapper.d_ -I$S/vcl/osx/
-I$W/UnpackedTarball/lcms2/include -I$W/UnpackedTarball/icu/source
-I$W/UnpackedTarball/icu/source/i18n -I$W/UnpackedTarball/icu/source/common
-I$W/UnpackedTarball/boost -I$W/UnpackedTarball/jpeg  -I$S/include  -isystem
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-I$S/config_host  -I$W/CustomTarget/officecfg/registry
-I$W/CustomTarget/vcl/generic/fontmanager -I$S/vcl/inc  
-I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal
-I$W/CustomTarget/officecfg/registry  -I$W/UnpackedTarball/nss/dist/public/nss
-I$W/UnpackedTarball/nss/dist/out/include      && mv
$W/Dep/ObjCxxObject/vcl/osx/a11yselectionwrapper.d_
$W/Dep/ObjCxxObject/vcl/osx/a11yselectionwrapper.d

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-darwin/4.8.3/lto-wrapper
Target: powerpc-unknown-darwin
Configured with: ../gcc-4.8.3/configure --build=powerpc-unknown-darwin
--host=powerpc-unknown-darwin --target=powerpc-unknown-darwin --prefix=/usr
--sysconfdir=/etc --mandir=/usr/share/man --with-slibdir=/usr/lib
--program-prefix= --enable-languages=c,c++,objc,obj-c++
--enable-checking=release --enable-stage1-checking --enable-shared
--enable-static --enable-threads=posix --with-__thread --with-system-zlib
--disable-werror
Thread model: posix
gcc version 4.8.3 (GCC)

Reply via email to