From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E342C3858404; Wed, 19 Jan 2022 15:56:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E342C3858404 From: "sebastian.huber@embedded-brains.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104121] New: [12 Regression] v850: Infinite loop in find_reload_regno_insns() Date: Wed, 19 Jan 2022 15:56:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sebastian.huber@embedded-brains.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2022 15:56:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104121 Bug ID: 104121 Summary: [12 Regression] v850: Infinite loop in find_reload_regno_insns() Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sebastian.huber@embedded-brains.de Target Milestone: --- Building the current master branch for the v850-rtems target results in an infinite loop in find_reload_regno_insns() while building libgcc: /tmp/sh/b-gcc-v850-rtems6/v850-rtems6/v850e2v3/libgcc > /tmp/sh/b-gcc-v850-rtems6/./gcc/xgcc -B/tmp/sh/b-gcc-v850-rtems6/./gcc/ -nostdinc -B/tmp/sh/b-gcc-v850-rtems6/v850-rtems6/newlib/ -isystem /tmp/sh/b-gcc-v850-rtems6/v850-rtems6/newlib/targ-include -isystem /home/EB/sebastian_h/src/gcc/newlib/libc/include -B/tmp/sh/i-v850-rtems6/v850-rtems6/bin/ -B/tmp/sh/i-v850-rtems6/v850-rtems6/lib/ -isystem /tmp/sh/i-v850-rtems6/v850-rtems6/include -isystem /tmp/sh/i-v850-rtems6/v850-rtems6/sys-include -g -O2 -mv850e2v3 -O2 -I/home/EB/sebastian_h/src/gcc/libgcc/../newlib/libc/sys/rtems/include -g -= O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-stri= ngs -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition= =20 -isystem ./include -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I/home/EB/sebastian_h/src/gcc/libgcc -I/home/EB/sebastian_h/src/gcc/libgcc= /. -I/home/EB/sebastian_h/src/gcc/libgcc/../gcc -I/home/EB/sebastian_h/src/gcc/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTL= S=20 -o _muldc3.o -MT _muldc3.o -MD -MP -MF _muldc3.dep -DL_muldc3 -c /home/EB/sebastian_h/src/gcc/libgcc/libgcc2.c -fvisibility=3Dhidden -DHIDE_EXPORTS -wrapper gdb,--args GNU gdb (GDB; openSUSE Leap 15.2) 11.1 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "x86_64-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /tmp/sh/b-gcc-v850-rtems6/./gcc/cc1... (gdb) r Starting program: /tmp/sh/b-gcc-v850-rtems6/gcc/cc1 -quiet -nostdinc -I /home/EB/sebastian_h/src/gcc/libgcc/../newlib/libc/sys/rtems/include -I . -= I . -I ../../.././gcc -I /home/EB/sebastian_h/src/gcc/libgcc -I /home/EB/sebastian_h/src/gcc/libgcc/. -I /home/EB/sebastian_h/src/gcc/libgcc/../gcc -I /home/EB/sebastian_h/src/gcc/libgcc/../include -imultilib v850e2v3 -iprefix /tmp/sh/b-gcc-v850-rtems6/gcc/../lib64/gcc/v850-rtems6/12.0.1/ -isystem /tmp/sh/b-gcc-v850-rtems6/./gcc/include -isystem /tmp/sh/b-gcc-v850-rtems6/./gcc/include-fixed -MD _muldc3.d -MF _muldc3.dep= -MP -MT _muldc3.o -D__v850e2v3__ -D IN_GCC -D CROSS_DIRECTORY_STRUCTURE -D IN_LIBGCC2 -D inhibit_libc -D HAVE_CC_TLS -D USE_EMUTLS -D L_muldc3 -D HIDE_EXPORTS -isystem /tmp/sh/b-gcc-v850-rtems6/v850-rtems6/newlib/targ-inc= lude -isystem /home/EB/sebastian_h/src/gcc/newlib/libc/include -isystem /tmp/sh/i-v850-rtems6/v850-rtems6/include -isystem /tmp/sh/i-v850-rtems6/v850-rtems6/sys-include -isystem ./include /home/EB/sebastian_h/src/gcc/libgcc/libgcc2.c -quiet -dumpbase _muldc3.c -dumpbase-ext .c -mv850e2v3 -mno-app-regs -msmall-sld -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -fbuilding-libgcc -fno-stack-protector -fvisibility=3Dhidden -o /tmp/ccXJQ7zz.s Missing separate debuginfos, use: zypper install glibc-debuginfo-2.26-lp152.26.12.1.x86_64 ^C Program received signal SIGINT, Interrupt. 0x0000000000982526 in find_reload_regno_insns (finish=3D: , start=3D: , regno=3D410)= at /home/EB/sebastian_h/src/gcc/gcc/lra-assigns.cc:1740 1740 if (next_insn !=3D NULL && second_insn =3D=3D NULL) (gdb) n 1727 n !=3D 1 && (prev_insn !=3D NULL || next_insn !=3D NULL)= ; ) (gdb)=20 1729 if (prev_insn !=3D NULL && first_insn =3D=3D NULL) (gdb)=20 1740 if (next_insn !=3D NULL && second_insn =3D=3D NULL) (gdb)=20 1727 n !=3D 1 && (prev_insn !=3D NULL || next_insn !=3D NULL)= ; ) (gdb)=20 1729 if (prev_insn !=3D NULL && first_insn =3D=3D NULL) (gdb)=20 1740 if (next_insn !=3D NULL && second_insn =3D=3D NULL) (gdb)=20 1727 n !=3D 1 && (prev_insn !=3D NULL || next_insn !=3D NULL)= ; ) (gdb)=20 1729 if (prev_insn !=3D NULL && first_insn =3D=3D NULL) (gdb)=20 1740 if (next_insn !=3D NULL && second_insn =3D=3D NULL) (gdb)=20 1727 n !=3D 1 && (prev_insn !=3D NULL || next_insn !=3D NULL)= ; ) (gdb)=20 1729 if (prev_insn !=3D NULL && first_insn =3D=3D NULL) (gdb) bt #0 find_reload_regno_insns (finish=3D: , start=3D: , regno=3D410) at /home/EB/sebastian_h/src/gcc/gcc/lra-assigns.cc:1729 #1 lra_split_hard_reg_for () at /home/EB/sebastian_h/src/gcc/gcc/lra-assigns.cc:1794 #2 0x000000000097cbac in lra (f=3D) at /home/EB/sebastian_h/src/gcc/gcc/lra.cc:2412 #3 0x000000000092d422 in do_reload () at /home/EB/sebastian_h/src/gcc/gcc/ira.cc:5934 #4 (anonymous namespace)::pass_reload::execute (this=3D) at /home/EB/sebastian_h/src/gcc/gcc/ira.cc:6120 #5 0x0000000000a564d9 in execute_one_pass (pass=3Dpass@entry=3D0x1ef3d40) = at /home/EB/sebastian_h/src/gcc/gcc/passes.cc:2637 #6 0x0000000000a56df1 in execute_pass_list_1 (pass=3D0x1ef3d40) at /home/EB/sebastian_h/src/gcc/gcc/passes.cc:2737 #7 0x0000000000a56e03 in execute_pass_list_1 (pass=3D0x1ef2ba0) at /home/EB/sebastian_h/src/gcc/gcc/passes.cc:2738 #8 0x0000000000a56e45 in execute_pass_list (fn=3D, pass=3D) at /home/EB/sebastian_h/src/gcc/gcc/passes.cc:2748 #9 0x0000000000658fd9 in cgraph_node::expand (this=3D0x7ffff75d2330) at /home/EB/sebastian_h/src/gcc/gcc/cgraphunit.cc:1834 #10 0x000000000065a887 in expand_all_functions () at /home/EB/sebastian_h/src/gcc/gcc/cgraphunit.cc:1998 #11 symbol_table::compile (this=3Dthis@entry=3D0x7ffff74ea000) at /home/EB/sebastian_h/src/gcc/gcc/cgraphunit.cc:2348 #12 0x000000000065df70 in symbol_table::compile (this=3D0x7ffff74ea000) at /home/EB/sebastian_h/src/gcc/gcc/cgraphunit.cc:2532 #13 symbol_table::finalize_compilation_unit (this=3D0x7ffff74ea000) at /home/EB/sebastian_h/src/gcc/gcc/cgraphunit.cc:2529 #14 0x0000000000b4edde in compile_file () at /home/EB/sebastian_h/src/gcc/gcc/toplev.cc:479 #15 0x000000000045e2ce in do_compile (no_backend=3Dfalse) at /home/EB/sebastian_h/src/gcc/gcc/toplev.cc:2158 #16 toplev::main (this=3Dthis@entry=3D0x7fffffffd11e, argc=3D, argc@entry=3D89, argv=3D, argv@entry=3D0x7fffffffd218) at /home/EB/sebastian_h/src/gcc/gcc/toplev.cc:2310 #17 0x00000000004606bb in main (argc=3D89, argv=3D0x7fffffffd218) at /home/EB/sebastian_h/src/gcc/gcc/main.cc:39=