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

            Bug ID: 64409
           Summary: ICE building Mesa 10.4.0 for x32 ABI
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steven at uplinklabs dot net

Created attachment 34335
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34335&action=edit
Preprocessed source

Trying to build Mesa 10.4.0 for the X32 ABI on an x86_64 host, encountered an
ICE in the process. Preprocessed source attached.

Invocation was:

$ gcc -mx32 -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\"
-DPACKAGE_VERSION=\"10.4.0\" "-DPACKAGE_STRING=\"Mesa 10.4.0\""
"-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"";
-DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"10.4.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
-DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1
-DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1
-DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
-DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1
-DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1
-DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_DLADDR=1
-DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -I. -DNINE_TARGET
-DGALLIUM_STATIC_TARGETS=1 -DGALLIUM_NOUVEAU -DGALLIUM_R300 -DGALLIUM_R600
-DGALLIUM_RADEONSI -DGALLIUM_SOFTPIPE -DGALLIUM_LLVMPIPE
-I../../../../include/D3D9 -I../../../../src/loader -I../../../../src/mapi/
-I../../../../src/mesa/ -I../../../../src/mesa/drivers/dri/common/
-I../../../../src/mesa/drivers/dri/common/ -I../../../../src/gallium/winsys
-I../../../../src/gallium/state_trackers/nine -I../../../../include
-I../../../../src/loader -I../../../../src/gallium/include
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers
-I../../../../src/gallium/winsys -DUSE_EXTERNAL_DXTN_LIB=1 -D_GNU_SOURCE
-DUSE_SSE41 -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_STRTOF
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DHAVE_LIBUDEV
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_ALIAS
-DHAVE_DRI3 -DHAVE_MINCORE -DHAVE_LLVM=0x0305 -DLLVM_VERSION_PATCH=0 -pthread
-I/usr/include/libdrm -fvisibility=hidden -fvisibility=hidden -g -O2 -Wall
-std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-strict-aliasing -fno-builtin-memcmp -MT d3dadapter9_la-getproc.lo -MD -MP
-MF .deps/d3dadapter9_la-getproc.Tpo -c getproc.c  -fPIC -DPIC -o
.libs/d3dadapter9_la-getproc.o
getproc.c: In function ‘D3DAdapter9GetProc’:
getproc.c:38:1: internal compiler error: in emit_move_insn, at expr.c:3609
 D3DAdapter9GetProc( const char *name )
 ^
0x7014c2 emit_move_insn(rtx_def*, rtx_def*)
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/expr.c:3608
0x647d64 expand_value_return
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:3055
0x64e3b6 expand_return
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:3127
0x64e3b6 expand_gimple_stmt_1
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:3200
0x64e3b6 expand_gimple_stmt
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:3322
0x64eefb expand_gimple_basic_block
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:5162
0x6511b6 gimple_expand_cfg
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:5741
0x6511b6 execute
    /build/gcc-multilib/src/gcc-4.9-20141210/gcc/cfgexpand.c:5961
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.


Using 20141210 snapshot version of GCC:

gcc version 4.9.2 20141210 (prerelease) (GCC)

Reply via email to