public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build
@ 2023-08-26  9:00 zsojka at seznam dot cz
  2023-08-28  7:20 ` [Bug target/111161] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2023-08-26  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111161
           Summary: [13 Regression] ICE: RTL check: expected code
                    'const_int', have 'reg' in riscv_print_operand, at
                    config/riscv/riscv.cc:4394 during build
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Keywords: build, ice-checking, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: riscv64-unknown-linux-gnu
             Build: x86_64-pc-linux-gnu

I am currently failing to build the riscv64-unknown-linux-gnu cross-compiler on
the gcc-13-branch with RTL checking enabled:

Configure command line:

/repo/gcc-13-branch//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --with-isa-spec=2.2
--with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu
--with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld
--with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib
--disable-libstdcxx-pch
--prefix=/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64

Results in:

...
checking whether ln -s works... yes
checking for riscv64-unknown-linux-gnu-gcc...
/repo/build-gcc-riscv64/./gcc/xgcc -B/repo/build-gcc-riscv64/./gcc/
-B/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/bin/
-B/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/lib/
-isystem
/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/include
-isystem
/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/sys-include 
checking for suffix of object files... configure: error: in
`/repo/build-gcc-riscv64/riscv64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[1]: *** [Makefile:14265: configure-target-libgcc] Error 1
make[1]: Leaving directory '/repo/build-gcc-riscv64'
make: *** [Makefile:1041: all] Error 2

And config.log shows:

configure:3576: /repo/build-gcc-riscv64/./gcc/xgcc
-B/repo/build-gcc-riscv64/./gcc/
-B/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/risc
v64-unknown-linux-gnu/bin/
-B/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/lib/
-isystem /repo/gcc-13-branch//
binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/include
-isystem
/repo/gcc-13-branch//binary-13-branch-20230826002206-gc1732638180-checking-yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/sys-include
   -o conftest -g -O2   conftest.c  >&5
during RTL pass: final
conftest.c: In function 'main':
conftest.c:16:1: internal compiler error: RTL check: expected code 'const_int',
have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394
   16 | }
      | ^
0x7a2fcb rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, int,
char const*)
        /repo/gcc-13-branch/gcc/rtl.cc:916
0x847f34 riscv_print_operand
        /repo/gcc-13-branch/gcc/config/riscv/riscv.cc:4394
0xcd3fd8 output_operand(rtx_def*, int)
        /repo/gcc-13-branch/gcc/final.cc:3632
0xcd4a38 output_asm_insn(char const*, rtx_def**)
        /repo/gcc-13-branch/gcc/final.cc:3544
0xcd8e12 output_asm_insn(char const*, rtx_def**)
        /repo/gcc-13-branch/gcc/final.cc:3421
0xcd8e12 final_scan_insn_1
        /repo/gcc-13-branch/gcc/final.cc:2841
0xcd91ab final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /repo/gcc-13-branch/gcc/final.cc:2887
0xcd93e4 final_1
        /repo/gcc-13-branch/gcc/final.cc:1979
0xcda028 rest_of_handle_final
        /repo/gcc-13-branch/gcc/final.cc:4240
0xcda028 execute
        /repo/gcc-13-branch/gcc/final.cc:4318
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


This only affects gcc-13-branch, probably only with RTL checking enabled.

I can't find the conftest.c file that is failing to build.

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

* [Bug target/111161] [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build
  2023-08-26  9:00 [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build zsojka at seznam dot cz
@ 2023-08-28  7:20 ` rguenth at gcc dot gnu.org
  2023-08-30  5:32 ` xuli1 at eswincomputing dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-08-28  7:20 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.3

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

* [Bug target/111161] [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build
  2023-08-26  9:00 [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build zsojka at seznam dot cz
  2023-08-28  7:20 ` [Bug target/111161] " rguenth at gcc dot gnu.org
@ 2023-08-30  5:32 ` xuli1 at eswincomputing dot com
  2023-09-01 14:23 ` zsojka at seznam dot cz
  2023-12-06 19:08 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: xuli1 at eswincomputing dot com @ 2023-08-30  5:32 UTC (permalink / raw)
  To: gcc-bugs

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

xuli1 at eswincomputing dot com <xuli1 at eswincomputing dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xuli1 at eswincomputing dot com

--- Comment #1 from xuli1 at eswincomputing dot com <xuli1 at eswincomputing dot com> ---
backport 
https://github.com/gcc-mirror/gcc/commit/7f26e76c9848aeea9ec10ea701a6168464a4a9c2
to gcc-13, should be fixed now.

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

* [Bug target/111161] [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build
  2023-08-26  9:00 [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build zsojka at seznam dot cz
  2023-08-28  7:20 ` [Bug target/111161] " rguenth at gcc dot gnu.org
  2023-08-30  5:32 ` xuli1 at eswincomputing dot com
@ 2023-09-01 14:23 ` zsojka at seznam dot cz
  2023-12-06 19:08 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2023-09-01 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> ---
(In reply to xuli1@eswincomputing.com from comment #1)
> backport 
> https://github.com/gcc-mirror/gcc/commit/
> 7f26e76c9848aeea9ec10ea701a6168464a4a9c2
> to gcc-13, should be fixed now.

I can confirm this fixed the build for me. Thank you!

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

* [Bug target/111161] [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build
  2023-08-26  9:00 [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2023-09-01 14:23 ` zsojka at seznam dot cz
@ 2023-12-06 19:08 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-12-06 19:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed by r14-1621-g7f26e76c9848aeea9ec10ea701a6168464a4a9c2
and r13-7766-gb81d476756a1f17617f0837761785c4b5d1d195d

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

end of thread, other threads:[~2023-12-06 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-26  9:00 [Bug target/111161] New: [13 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4394 during build zsojka at seznam dot cz
2023-08-28  7:20 ` [Bug target/111161] " rguenth at gcc dot gnu.org
2023-08-30  5:32 ` xuli1 at eswincomputing dot com
2023-09-01 14:23 ` zsojka at seznam dot cz
2023-12-06 19:08 ` jakub 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).