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

Luca Bonissi <gcc at scarsita dot it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at scarsita dot it

--- Comment #4 from Luca Bonissi <gcc at scarsita dot it> ---
Similar behavior when compiling openjdk 1.8 with gcc 9.1 or 9.2 (tried on
x86_64, armv5te, armv7hl, aarch64):

CACHE_COMPRESS=1  CCACHE_SLOPPINESS=time_macros /usr/bin/ccache /usr/bin/g++
-DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/root/tmp/jdk-build
/openjdk-boot/hotspot/src/share/vm/prims
-I/root/tmp/jdk-build/openjdk-boot/hotspot/src/share/vm
-I/root/tmp/jdk-build/openjdk-boot/hotspot/sr
c/share/vm/precompiled
-I/root/tmp/jdk-build/openjdk-boot/hotspot/src/cpu/x86/vm
-I/root/tmp/jdk-build/openjdk-boot/hotspot/src/os_cpu/linux_x
86/vm -I/root/tmp/jdk-build/openjdk-boot/hotspot/src/os/linux/vm
-I/root/tmp/jdk-build/openjdk-boot/hotspot/src/os/posix/vm -I../generated -DH
OTSPOT_RELEASE_VERSION="\"25.222-b10\"" -DHOTSPOT_BUILD_TARGET="\"product\""
-DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHO
TSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea 3.13.0\""
-DDISTRIBUTION_ID="\"Custom build (Tue Aug 20 15:45:08 CEST 2019)\""  -DTAR
GET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64
-DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPI
LER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT
-fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing
 -g -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1  -Wpointer-arith
-Wsign-compare -Wundef -Wunused-function -Wunused-value -Wretur
n-type   -fstack-protector -g -O2 -fno-delete-null-pointer-checks
-fno-lifetime-dse -std=gnu++98  -c -MMD -MP -MF ../generated/dependencies/ac
cessFlags.o.d -fpch-deps -o accessFlags.o
/root/tmp/jdk-build/openjdk-boot/hotspot/src/share/vm/utilities/accessFlags.cpp
/root/tmp/jdk-build/openjdk-boot/hotspot/src/share/vm/precompiled/precompiled.hpp:1:
internal compiler error: Segmentation fault
    1 | /*
      |
0xb83cef crash_signal
        ../../gcc-9.2.0/gcc/toplev.c:326
0x13c23fd apply_vpath
        ../../gcc-9.2.0/libcpp/mkdeps.c:127
0x13c285d deps_add_dep(deps*, char const*)
        ../../gcc-9.2.0/libcpp/mkdeps.c:258
0x13c2e8d deps_restore(deps*, _IO_FILE*, char const*)
        ../../gcc-9.2.0/libcpp/mkdeps.c:432
0x13c3f3c cpp_read_state(cpp_reader*, char const*, _IO_FILE*, save_macro_data*)
        ../../gcc-9.2.0/libcpp/pch.c:859
0x78eacb c_common_read_pch(cpp_reader*, char const*, int, char const*)
        ../../gcc-9.2.0/gcc/c-family/c-pch.c:365
0x13b469f should_stack_file
        ../../gcc-9.2.0/libcpp/files.c:814
0x13b469f _cpp_stack_file
        ../../gcc-9.2.0/libcpp/files.c:900
0x13abc4b do_include_common
        ../../gcc-9.2.0/libcpp/directives.c:846
0x13ac760 _cpp_handle_directive
        ../../gcc-9.2.0/libcpp/directives.c:541
0x13bae54 _cpp_lex_token
        ../../gcc-9.2.0/libcpp/lex.c:2609
0x13c1c37 cpp_get_token_1
        ../../gcc-9.2.0/libcpp/macro.c:2703
0x787c7e c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../../gcc-9.2.0/gcc/c-family/c-lex.c:405
0x69ba3e cp_lexer_get_preprocessor_token
        ../../gcc-9.2.0/gcc/cp/parser.c:790
0x6d3437 cp_parser_initial_pragma
        ../../gcc-9.2.0/gcc/cp/parser.c:40747
0x6d3437 cp_lexer_new_main
        ../../gcc-9.2.0/gcc/cp/parser.c:644
0x6d3437 cp_parser_new
        ../../gcc-9.2.0/gcc/cp/parser.c:3936
0x6d3437 c_parse_file()
        ../../gcc-9.2.0/gcc/cp/parser.c:41188
0x78e1db c_common_parse_file()
        ../../gcc-9.2.0/gcc/c-family/c-opts.c:1160

Always reproducible with ccache >= 3.3.2; all works fine with ccache <= 3.2.9
or without ccache.

Reply via email to