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

Sebastian Huber <sebastian.hu...@embedded-brains.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-rtems5              |powerpc64le-unknown-linux-g
                   |                            |nu
            Summary|PowerPC64 + Ada + RTEMS:    |PowerPC64: Infinite loops
                   |Infinite loops in           |in do_reload() with
                   |do_reload()                 |-msoft-float

--- Comment #7 from Sebastian Huber <sebastian.hu...@embedded-brains.de> ---
It seems to be a general problem with -msoft-float on PowerPC64. I built a
native GCC on gcc112:

[sh@gcc2-power8 ~]$ cd /home/sh/b-gcc-git/gcc/ada/rts
[sh@gcc2-power8 rts]$ gdb --args /home/sh/b-gcc-git/gcc/gnat1 -gnatwa -quiet
-nostdinc -nostdinc -dumpbase a-coteio.ads -auxbase-strip a-coteio.o -O2
-Wextra -Wall -g -gnatpg -msoft-float -gnatO a-coteio.o a-coteio.ads -o -
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc64le-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Warning: /home/sh/gcc-7-20161030/gcc: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/ada: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/c: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/cp: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/fortran: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/go: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/jit: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/lto: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/objc: No such file or directory.
Warning: /home/sh/gcc-7-20161030/gcc/objcp: No such file or directory.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gdbhooks
/home/sh/.gdbinit:13: Error in sourced command file:
Error while executing Python code.
Reading symbols from /home/sh/b-gcc-git/gcc/gnat1...done.
(gdb) r
Starting program: /home/sh/b-gcc-git/gcc/gnat1 -gnatwa -quiet -nostdinc
-nostdinc -dumpbase a-coteio.ads -auxbase-strip a-coteio.o -O2 -Wextra -Wall -g
-gnatpg -msoft-float -gnatO a-coteio.o a-coteio.ads -o -
        .file   "a-coteio.ads"
        .machine power7
        .abiversion 2
        .section        ".text"
.Ltext0:
        .globl __truncdfsf2
^C
Program received signal SIGINT, Interrupt.
0x00000000108158a0 in bitmap_and_compl_into (a=0x12c7a0b0, b=<optimized out>)
at /home/sh/gcc-git/gcc/bitmap.c:1181
1181      gcc_checking_assert (!a->current == !a->first
Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7.ppc64le
(gdb) bt
#0  0x00000000108158a0 in bitmap_and_compl_into (a=0x12c7a0b0, b=<optimized
out>) at /home/sh/gcc-git/gcc/bitmap.c:1181
#1  0x0000000010c83208 in spill_pseudos () at /home/sh/gcc-git/gcc/bitmap.h:806
#2  lra_spill () at /home/sh/gcc-git/gcc/lra-spills.c:595
#3  0x0000000010c56998 in lra (f=<optimized out>) at
/home/sh/gcc-git/gcc/lra.c:2514
#4  0x0000000010bf216c in do_reload () at /home/sh/gcc-git/gcc/ira.c:5443
#5  (anonymous namespace)::pass_reload::execute (this=<optimized out>) at
/home/sh/gcc-git/gcc/ira.c:5627
#6  0x0000000010d36f20 in execute_one_pass (pass=0x12a04650) at
/home/sh/gcc-git/gcc/passes.c:2497
#7  0x0000000010d38114 in execute_pass_list_1 (pass=0x12a04650) at
/home/sh/gcc-git/gcc/passes.c:2586
#8  0x0000000010d3812c in execute_pass_list_1 (pass=0x12a03570) at
/home/sh/gcc-git/gcc/passes.c:2587
#9  0x0000000010d381b8 in execute_pass_list (fn=<optimized out>,
pass=<optimized out>) at /home/sh/gcc-git/gcc/passes.c:2597
#10 0x00000000108cb178 in cgraph_node::expand (this=0x3fffaf680000) at
/home/sh/gcc-git/gcc/context.h:48
#11 0x00000000108ccf44 in expand_all_functions () at
/home/sh/gcc-git/gcc/cgraphunit.c:2275
#12 symbol_table::compile (this=0x3fffaf420000) at
/home/sh/gcc-git/gcc/cgraphunit.c:2623
#13 0x00000000108d084c in compile (this=0x3fffaf420000) at
/home/sh/gcc-git/gcc/cgraphunit.c:2716
#14 symbol_table::finalize_compilation_unit (this=0x3fffaf420000) at
/home/sh/gcc-git/gcc/cgraphunit.c:2716
#15 0x0000000010e564b4 in compile_file () at /home/sh/gcc-git/gcc/toplev.c:480
#16 0x0000000010277938 in do_compile () at /home/sh/gcc-git/gcc/toplev.c:2063
#17 toplev::main (this=0x3fffffffef50, argc=<optimized out>, argv=<optimized
out>) at /home/sh/gcc-git/gcc/toplev.c:2198
#18 0x00000000102798a8 in main (argc=<optimized out>, argv=0x3ffffffff378) at
/home/sh/gcc-git/gcc/main.c:39

Reply via email to