public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
@ 2020-12-17 14:33 jakub at gcc dot gnu.org
  2020-12-17 14:44 ` [Bug rtl-optimization/98347] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-17 14:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98347
           Summary: [11 Regression] gcc.dg/long_branch.c ICEs on
                    i686-linux
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

during RTL pass: fwprop1
/home/jakub/src/gcc/gcc/testsuite/gcc.dg/long_branch.c: In function
'test_and_branch':
/home/jakub/src/gcc/gcc/testsuite/gcc.dg/long_branch.c:185:1: internal compiler
error: Segmentation fault
0x8b940ba crash_signal
        ../../gcc/toplev.c:327
0x97490e1 rtl_ssa::full_register(unsigned int)
        ../../gcc/rtl-ssa/access-utils.h:26
0x97490e1
rtl_ssa::function_info::add_entry_block_defs(rtl_ssa::function_info::build_info&)
        ../../gcc/rtl-ssa/blocks.cc:508
0x974bbfe rtl_ssa::function_info::process_all_blocks()
        ../../gcc/rtl-ssa/blocks.cc:1058
0x96cc708 rtl_ssa::function_info::function_info(function*)
        ../../gcc/rtl-ssa/functions.cc:49
0x95a834a fwprop_init
        ../../gcc/fwprop.c:881
0x95a834a fwprop
        ../../gcc/fwprop.c:951
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.
compiler exited with status 1
FAIL: gcc.dg/long_branch.c (internal compiler error)
FAIL: gcc.dg/long_branch.c (test for excess errors)

It didn't fail 2 days ago, I suspect the RTL SSA changes.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
  2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
@ 2020-12-17 14:44 ` jakub at gcc dot gnu.org
  2020-12-17 14:52 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-17 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Strangely, it doesn't reproduce under gdb, nor when cc1 is 64-bit binary with
-m32 -mno-sse -march=pentiumpro -mtune=pentiumpro on top of the normal test
flags.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
  2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
  2020-12-17 14:44 ` [Bug rtl-optimization/98347] " jakub at gcc dot gnu.org
@ 2020-12-17 14:52 ` rsandifo at gcc dot gnu.org
  2020-12-17 18:20 ` rsandifo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-12-17 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-12-17
           Assignee|unassigned at gcc dot gnu.org      |rsandifo at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Mine.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
  2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
  2020-12-17 14:44 ` [Bug rtl-optimization/98347] " jakub at gcc dot gnu.org
  2020-12-17 14:52 ` rsandifo at gcc dot gnu.org
@ 2020-12-17 18:20 ` rsandifo at gcc dot gnu.org
  2020-12-17 19:31 ` cvs-commit at gcc dot gnu.org
  2020-12-17 19:34 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-12-17 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Bah, stupid thinko: using regno_raw_mode[regno] instead of
GET_MODE (regno_reg_rtx[regno]) for general registers :-(
Testing a fix.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
  2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-12-17 18:20 ` rsandifo at gcc dot gnu.org
@ 2020-12-17 19:31 ` cvs-commit at gcc dot gnu.org
  2020-12-17 19:34 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-17 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Sandiford <rsandifo@gcc.gnu.org>:

https://gcc.gnu.org/g:00bad763dcb903103d62e1ef77c542dacf31fc0a

commit r11-6241-g00bad763dcb903103d62e1ef77c542dacf31fc0a
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Thu Dec 17 19:31:02 2020 +0000

    rtl-ssa: Fix reg_raw_mode thinko [PR98347]

    I'd used reg_raw_mode[regno] for general registers, even though
    the array is only valid for hard registers.  This patch uses
    regno_reg_rtx instead.

    gcc/
            PR rtl-optimization/98347
            * rtl-ssa/access-utils.h (full_register): Use regno_reg_rtx
            instead of reg_raw_mode.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux
  2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-12-17 19:31 ` cvs-commit at gcc dot gnu.org
@ 2020-12-17 19:34 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-12-17 19:34 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Fixed on trunk.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-17 19:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 14:33 [Bug rtl-optimization/98347] New: [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux jakub at gcc dot gnu.org
2020-12-17 14:44 ` [Bug rtl-optimization/98347] " jakub at gcc dot gnu.org
2020-12-17 14:52 ` rsandifo at gcc dot gnu.org
2020-12-17 18:20 ` rsandifo at gcc dot gnu.org
2020-12-17 19:31 ` cvs-commit at gcc dot gnu.org
2020-12-17 19:34 ` rsandifo at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).