NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/49434: gcc can not compile libasan with -O2 on vax

>Number:         49434
>Category:       toolchain
>Synopsis:       gcc can not compile libasan with -O2 on vax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 09:55:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.2
The NetBSD Foundation, Inc.
System: NetBSD 7.99.2 NetBSD 7.99.2 (DEAD) #63: Sun Nov 30 08:17:33 CET 2014 vax
Architecture: vax
Machine: vax

When trying to compile the VAX world with -O2 (note: current in-tree default
is -O1), the build fails in gcc's libasan.

The following files do compile fine with -O1 but cause internal compiler
errors with -O2:

An example for the internal error is:

#   compile  libasan/asan_allocator2.o
/usr/tools/bin/vax--netbsdelf-c++ -frandom-seed=5fba94ba -O2 -pipe -Werror  --sysroot=/hosts/vax -I/usr/src/external/gpl3/gcc/dist/libsanitizer/include -I/usr/src/external/gpl3/gcc/dist/libsanitizer  -c    /usr/src/external/gpl3/gcc/dist/libsanitizer/asan/ -o asan_allocator2.o
In file included from /usr/src/external/gpl3/gcc/dist/libsanitizer/asan/asan_thread_registry.h:19:0,
                 from /usr/src/external/gpl3/gcc/dist/libsanitizer/asan/
/usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h: In member function 'void __sanitizer::StaticSpinMutex::LockSlow()':
/usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h:54:3: error: unable to generate reloads for:
(jump_insn 30 28 54 7 (parallel [
            (set (pc)
                (if_then_else (ne (zero_extract:SI (mem/v:QI (reg/f:SI 7 %r7 [orig:26 this ] [26]) [-1  S1 A8])
                            (const_int 1 [0x1])
                            (const_int 0 [0]))
                        (const_int 0 [0]))
                    (label_ref:SI 39)
            (set (zero_extract:SI (mem/v:QI (reg/f:SI 8 %r8 [orig:23 D.9476 ] [23]) [-1  S1 A8])
                    (const_int 1 [0x1])
                    (const_int 0 [0]))
                (const_int 1 [0x1]))
        ]) /usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_atomic_clang.h:92 158 {jbbssiqi}
     (expr_list:REG_BR_PROB (const_int 5000 [0x1388])
 -> 39)
/usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h:54:3: internal compiler error: in find_reloads, at reload.c:3891
Please submit a full bug report,
with preprocessed source if appropriate.

cd /usr/src/external/gpl3/gcc/lib/libasan
nbmake-vax DBG=-O2


Home | Main Index | Thread Index | Old Index