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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Can I reproduce it on a normal GCC (no target compiler) on my
> x86_64-linux-gnu target?
> 
> After setting the macro, following works for me:
> ./gcc/xgcc -B gcc 
> /home/marxin/Programming/gcc/libgomp/testsuite/libgomp.fortran/declare-simd-4.f90
>  -flto -c -mavx -fno-use-linker-plugin -fno-inline

Drop "-c", and "-fno-use-linker-plugin", and add "-fopenmp" (and
"-Bx86_64-pc-linux-gnu/libgomp/{,.libs/}", or similar):

    $ build-gcc/gcc/xgcc -Bbuild-gcc/gcc/
-Bbuild-gcc/x86_64-pc-linux-gnu/libgomp/{,.libs/}
source-gcc/libgomp/testsuite/libgomp.fortran/declare-simd-4.f90 -flto -fopenmp 
    lto1: internal compiler error: in lto_orig_address_remove, at
lto-streamer.c:369
    0x901fbd lto_orig_address_remove(tree_node*)
            [...]/source-gcc/gcc/lto-streamer.c:369
    0x902f77 lto_read_tree
            [...]/source-gcc/gcc/lto-streamer-in.c:1363
    0x902f77 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned
int)
            [...]/source-gcc/gcc/lto-streamer-in.c:1475
    0x903192 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned
int*)
            [...]/source-gcc/gcc/lto-streamer-in.c:1387
    0x5c02a6 lto_read_decls
            [...]/source-gcc/gcc/lto/lto.c:1694
    0x5c2f5d lto_file_finalize
            [...]/source-gcc/gcc/lto/lto.c:2038
    0x5c2f5d lto_create_files_from_ids
            [...]/source-gcc/gcc/lto/lto.c:2048
    0x5c2f5d lto_file_read
            [...]/source-gcc/gcc/lto/lto.c:2089
    0x5c2f5d read_cgraph_and_symbols
            [...]/source-gcc/gcc/lto/lto.c:2801
    0x5c2f5d lto_main()
            [...]/source-gcc/gcc/lto/lto.c:3306
    Please submit a full bug report,
    with preprocessed source if appropriate.
    Please include the complete backtrace with any bug report.
    See <https://gcc.gnu.org/bugs/> for instructions.
    lto-wrapper: fatal error: build-gcc/gcc/xgcc returned 1 exit status
    compilation terminated.
    /usr/bin/ld: lto-wrapper failed
    collect2: error: ld returned 1 exit status

Reply via email to