public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/110695] New: RISC-V: compile gcc.dg/torture/pr105132.c crash
@ 2023-07-17 3:35 lehua.ding at rivai dot ai
2023-07-17 3:38 ` [Bug tree-optimization/110695] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: lehua.ding at rivai dot ai @ 2023-07-17 3:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110695
Bug ID: 110695
Summary: RISC-V: compile gcc.dg/torture/pr105132.c crash
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: lehua.ding at rivai dot ai
Target Milestone: ---
The trunk compiler will crash when compiling the testcase
gcc.dg/torture/pr105132.c with -O1 option and only -O1 option will crash.
13.1.0 is ok.
during GIMPLE pass: sccp
dump file: /app/output.c.156t.sccp
<source>: In function 'd':
<source>:4:6: internal compiler error: in gimple_phi_arg_def_from_edge, at
gimple.h:4699
4 | void d(long f[][5][5][17], int g[][5][5][17]) {
| ^
0x7ff51b931082 __libc_start_main
???:0
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.
Compiler returned: 1
Reproduce code:
short a;
extern int b[];
int c;
void d(long f[][5][5][17], int g[][5][5][17]) {
for (short e = 0; e < 17; e++) {
a = g[19][2][3][e];
b[e] = c & (f[3][2][3][e] && g[19][2][3][e]);
}
}
Compiler option: -O1
URL on compiler explorer: https://godbolt.org/z/xMKaxj898
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/110695] RISC-V: compile gcc.dg/torture/pr105132.c crash
2023-07-17 3:35 [Bug tree-optimization/110695] New: RISC-V: compile gcc.dg/torture/pr105132.c crash lehua.ding at rivai dot ai
@ 2023-07-17 3:38 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-17 3:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110695
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 110669 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-17 3:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 3:35 [Bug tree-optimization/110695] New: RISC-V: compile gcc.dg/torture/pr105132.c crash lehua.ding at rivai dot ai
2023-07-17 3:38 ` [Bug tree-optimization/110695] " pinskia 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).