public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure
@ 2024-01-17 14:46 slyfox at gcc dot gnu.org
2024-01-17 15:12 ` [Bug bootstrap/113445] " jakub at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: slyfox at gcc dot gnu.org @ 2024-01-17 14:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Bug ID: 113445
Summary: [14 Regression] bootstrap failure on f95-lang.cc:
‘-fcompare-debug’ failure
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
Noticed bootstrap failure on today's gcc-master from r14-8179-g97089a54f7529a:
$ ~/dev/git/gcc/configure --disable-multilib CFLAGS='-O1 -g0' CXXFLAGS='-O1
-g0' LDFLAGS='-O1 -g0'
Comparing stages 2 and 3
Bootstrap comparison failure!
Minimized example:
// $ cat f95-lang.cc.cc
int global_options_3, gfc_init_builtin_functions_builtin_types_0,
gfc_init_builtin_functions_builtin_types_26,
gfc_init_builtin_functions_builtin_types_3,
gfc_init_builtin_functions_builtin_types_17,
gfc_init_builtin_functions_builtin_types_12,
gfc_init_builtin_functions_builtin_types_2;
int *global_trees_7, *global_trees_0, *integer_types_1, *integer_types_0;
int *build_pointer_type(int *);
int *build_function_type_list(...);
int *gfc_type_for_size(unsigned, int);
void gfc_define_builtin(int *, int);
void gfc_init_builtin_functions() {
int *__trans_tmp_4, *__trans_tmp_3, *__trans_tmp_2, *builtin_types_45,
*builtin_types_39, *builtin_types_34, *builtin_types_19,
*builtin_types_11, *builtin_types_6, *builtin_types_5, *builtin_types_4 =
integer_types_0;
int builtin_types_16, builtin_types_15, builtin_types_1;
builtin_types_5 = integer_types_1;
builtin_types_6 = global_trees_7;
int *type = gfc_type_for_size(0, 1);
__trans_tmp_2 = __trans_tmp_3 = type ?: global_trees_0;
__trans_tmp_4 = global_trees_0;
builtin_types_11 = build_function_type_list();
builtin_types_19 =
build_pointer_type(&gfc_init_builtin_functions_builtin_types_17);
build_function_type_list(builtin_types_15);
build_function_type_list(builtin_types_16);
build_function_type_list();
build_function_type_list(gfc_init_builtin_functions_builtin_types_12,
__trans_tmp_4, __null);
build_function_type_list();
build_function_type_list();
build_function_type_list();
build_function_type_list(__trans_tmp_3);
build_function_type_list(__trans_tmp_4);
build_function_type_list();
build_pointer_type(&gfc_init_builtin_functions_builtin_types_26);
build_function_type_list();
build_function_type_list(builtin_types_1,
gfc_init_builtin_functions_builtin_types_12,
__trans_tmp_3, __null);
builtin_types_34 = build_function_type_list(
gfc_init_builtin_functions_builtin_types_12, __trans_tmp_4, __null);
build_function_type_list(gfc_init_builtin_functions_builtin_types_12,
__trans_tmp_2, __null);
build_function_type_list(__trans_tmp_3, __null);
build_function_type_list(__null);
build_function_type_list(__null);
builtin_types_39 = build_function_type_list();
build_function_type_list(__null);
build_function_type_list(gfc_init_builtin_functions_builtin_types_0,
builtin_types_19, builtin_types_11,
gfc_init_builtin_functions_builtin_types_3,
gfc_init_builtin_functions_builtin_types_3,
gfc_init_builtin_functions_builtin_types_3, __null);
builtin_types_45 = build_function_type_list( builtin_types_1,
builtin_types_4, builtin_types_4, builtin_types_4, builtin_types_15,
builtin_types_15, __null);
build_function_type_list(
gfc_init_builtin_functions_builtin_types_0, builtin_types_6,
gfc_init_builtin_functions_builtin_types_12, builtin_types_11,
builtin_types_11, gfc_init_builtin_functions_builtin_types_2, __null);
build_function_type_list(gfc_init_builtin_functions_builtin_types_0,
gfc_init_builtin_functions_builtin_types_2,
builtin_types_6, builtin_types_11, builtin_types_11,
builtin_types_11, __null);
build_function_type_list(builtin_types_1,
gfc_init_builtin_functions_builtin_types_3,
builtin_types_15, builtin_types_4, builtin_types_15,
builtin_types_15, __null);
build_function_type_list( builtin_types_1,
gfc_init_builtin_functions_builtin_types_3, builtin_types_16,
builtin_types_5, builtin_types_16, builtin_types_4, builtin_types_4,
builtin_types_15, builtin_types_1, builtin_types_1, builtin_types_5,
builtin_types_5, builtin_types_5, builtin_types_16, builtin_types_16);
gfc_define_builtin(builtin_types_34, 0);
gfc_define_builtin(builtin_types_39, 6);
if (global_options_3) gfc_define_builtin(builtin_types_45, 0);
}
Triggering:
$ stage3-gcc/xg++ -Bstage3-gcc -O2 -c f95-lang.cc.cc -o bug.o -fcompare-debug
xg++: error: f95-lang.cc.cc: ‘-fcompare-debug’ failure
$ stage3-gcc/xg++ -Bstage3-gcc -v
Reading specs from stage3-gcc/specs
COLLECT_GCC=stage3-gcc/xg++
COLLECT_LTO_WRAPPER=stage3-gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib
CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0' LDFLAGS='-O1 -g0'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.1 20240117 (experimental) (GCC)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
@ 2024-01-17 15:12 ` jakub at gcc dot gnu.org
2024-01-17 15:13 ` [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174 jakub at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-17 15:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |mkuvyrkov at gcc dot gnu.org
Target Milestone|--- |14.0
Priority|P3 |P1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
2024-01-17 15:12 ` [Bug bootstrap/113445] " jakub at gcc dot gnu.org
@ 2024-01-17 15:13 ` jakub at gcc dot gnu.org
2024-01-17 15:13 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-17 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[14 Regression] bootstrap |[14 Regression] bootstrap
|failure on f95-lang.cc: |failure on f95-lang.cc:
|‘-fcompare-debug’ failure |‘-fcompare-debug’ failure
| |since r14-8174
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r14-8174-g0c42d1782e48d8ad578ace2065cce9b3615f97c0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
2024-01-17 15:12 ` [Bug bootstrap/113445] " jakub at gcc dot gnu.org
2024-01-17 15:13 ` [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174 jakub at gcc dot gnu.org
@ 2024-01-17 15:13 ` jakub at gcc dot gnu.org
2024-01-17 15:15 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-17 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 113449 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (2 preceding siblings ...)
2024-01-17 15:13 ` jakub at gcc dot gnu.org
@ 2024-01-17 15:15 ` rguenth at gcc dot gnu.org
2024-01-17 17:02 ` mkuvyrkov at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-17 15:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compare-debug-failure
Last reconfirmed| |2024-01-17
Status|UNCONFIRMED |NEW
Target| |x86_64-*-*
Ever confirmed|0 |1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (3 preceding siblings ...)
2024-01-17 15:15 ` rguenth at gcc dot gnu.org
@ 2024-01-17 17:02 ` mkuvyrkov at gcc dot gnu.org
2024-01-17 17:04 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2024-01-17 17:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #4 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
Testing patch
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643267.html .
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (4 preceding siblings ...)
2024-01-17 17:02 ` mkuvyrkov at gcc dot gnu.org
@ 2024-01-17 17:04 ` jakub at gcc dot gnu.org
2024-01-17 18:53 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-17 17:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
My reduced testcase (C):
/* PR bootstrap/113445 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug -Wno-uninitialized" } */
enum E { F };
int *a, *b, *c, *d, e, f, g, h, i;
int *f1 (int *);
int *f2 (...);
int *f3 (int *, int);
int *f4 (unsigned, int);
int *f5 (enum E, int);
int *f6 (int, int);
enum E j;
void
f7 (void)
{
int *k, *l, *m, *n, *o, *p, *q, *r, *s, *t, *u, *v, w, x, y, z, aa;
v = f6 (0, 1);
u = d;
t = c;
s = a;
f4 (f, 1);
f4 (f, 1);
int *ab = f4 (f, 1);
k = b;
int ac = *f3 (&e, F);
r = f1 (&ac);
int ad = *f3 (&e, F);
f1 (&ad);
q = f5 (j, 0);
p = f1 (t);
f1 (o);
f2 ();
f2 ();
f2 ();
f2 ();
f2 ();
f2 ();
f2 (z, z);
f2 ();
f2 ();
f2 ();
f1 (&h);
f2 (z, k, ab, aa, r, g, (void *) 0);
f2 (aa, w, &aa, r, k, (void *) 0);
f2 (q, (void *) 0);
f2 ();
f2 (&aa, s, r, o, o, z, (void *) 0);
n = f2 (s, (void *) 0);
f2 (v, u, p, t, p, p, (void *) 0);
m = f2 (v, u, x, y, x, x, (void *) 0);
l = f2 (v);
f2 (v, s);
f2 (t, u);
f2 (&aa, i, o, t, t, t, t);
f2 (v, u, x, t, y, x, x, o, t, t, t, t, t);
f2 (t);
f2 (t, t, t, t, t, t, t, z, y);
f2 (t, l, m, n);
}
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (5 preceding siblings ...)
2024-01-17 17:04 ` jakub at gcc dot gnu.org
@ 2024-01-17 18:53 ` pinskia at gcc dot gnu.org
2024-01-18 13:47 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-17 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 113456 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (6 preceding siblings ...)
2024-01-17 18:53 ` pinskia at gcc dot gnu.org
@ 2024-01-18 13:47 ` cvs-commit at gcc dot gnu.org
2024-01-18 13:50 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-18 13:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:a6bf09f65aed44d36acaa511e552783bfb0e9a62
commit r14-8231-ga6bf09f65aed44d36acaa511e552783bfb0e9a62
Author: Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Date: Thu Jan 18 14:45:27 2024 +0100
Fix compare-debug bootstrap failure [PR113445]
... caused by scheduler fix for PR96388 and PR111554.
This patch adjusts decision sched-deps.cc:find_inc() to use
length of dependency lists sans any DEBUG_INSN instructions.
gcc/ChangeLog
2024-01-18 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
PR bootstrap/113445
* haifa-sched.cc (dep_list_size): Make global.
* sched-deps.cc (find_inc): Use instead of sd_lists_size().
* sched-int.h (dep_list_size): Declare.
gcc/testsuite/ChangeLog
2024-01-18 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/113445
* gcc.dg/pr113445.c: New test.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (7 preceding siblings ...)
2024-01-18 13:47 ` cvs-commit at gcc dot gnu.org
@ 2024-01-18 13:50 ` jakub at gcc dot gnu.org
2024-01-18 15:23 ` mkuvyrkov at gcc dot gnu.org
2024-01-18 16:11 ` slyfox at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-18 13:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Committed now.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (8 preceding siblings ...)
2024-01-18 13:50 ` jakub at gcc dot gnu.org
@ 2024-01-18 15:23 ` mkuvyrkov at gcc dot gnu.org
2024-01-18 16:11 ` slyfox at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2024-01-18 15:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #9 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #8)
> Committed now.
Thanks, Jakub.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
` (9 preceding siblings ...)
2024-01-18 15:23 ` mkuvyrkov at gcc dot gnu.org
@ 2024-01-18 16:11 ` slyfox at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: slyfox at gcc dot gnu.org @ 2024-01-18 16:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113445
--- Comment #10 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
The patch fixes bootstrap for me as well. Thank you!
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-01-18 16:11 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 14:46 [Bug bootstrap/113445] New: [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure slyfox at gcc dot gnu.org
2024-01-17 15:12 ` [Bug bootstrap/113445] " jakub at gcc dot gnu.org
2024-01-17 15:13 ` [Bug bootstrap/113445] [14 Regression] bootstrap failure on f95-lang.cc: ‘-fcompare-debug’ failure since r14-8174 jakub at gcc dot gnu.org
2024-01-17 15:13 ` jakub at gcc dot gnu.org
2024-01-17 15:15 ` rguenth at gcc dot gnu.org
2024-01-17 17:02 ` mkuvyrkov at gcc dot gnu.org
2024-01-17 17:04 ` jakub at gcc dot gnu.org
2024-01-17 18:53 ` pinskia at gcc dot gnu.org
2024-01-18 13:47 ` cvs-commit at gcc dot gnu.org
2024-01-18 13:50 ` jakub at gcc dot gnu.org
2024-01-18 15:23 ` mkuvyrkov at gcc dot gnu.org
2024-01-18 16:11 ` slyfox 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).