From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CAC983858C5E; Thu, 23 Feb 2023 15:46:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAC983858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677167177; bh=dJ6iM4y2kEjgd2XDtEGOcB3n4S8Gz44uwQIMMiU3tcI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hYOhUUGGvSc6kv5Mxr/kkDSNKjJrCgCYUQCa6gwga+vtViOp0k8FAXiJf37l8R0lu F84cS7jtLd9cwzeAMDuSOBuJ5rEov2zX+6BnNTJ87Dzskq3O3trGulAf4lAyaXlSzw m+uKNzatY469KpjONdxN5DQVzs9kkMNi+cVJ9TT8= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a Date: Thu, 23 Feb 2023 15:46:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108843 --- Comment #4 from Martin Li=C5=A1ka --- Reduced test-case where adding -g takes 20x longer to compile: $ typedef uint16_t; typedef uint32_t; typedef uint64_t; (safe_rshift_func_int8_t_s_s)() {} struct S0 { signed f0 : 5 }; union U1 { short f0; }; static int g_2 =3D 0xE60F951FL; static signed char g_30 =3D 0x6EL; static signed char g_61 =3D 0x39L; static unsigned char g_69 =3D 0xA9L; static signed char g_113 =3D 7L; static short g_136 =3D 0; static uint64_t g_138 =3D 0x3DAD6103D800CEE5LL; static int g_257 =3D 1L; static struct S0 g_513; static int g_1457 =3D 0xA3396F68L; static union U1 func_17(int p_19, uint16_t p_20); static uint32_t func_1(void) { int l_332 =3D 0L; for (g_2; (g_2 <=3D 29); g_2) { struct S0 l_333 =3D {2, 9}; union U1 l_1264[7]; int *l_1463 =3D &g_1457; (*l_1463) ^=3D func_5(0, (+func_14(func_17(l_332, g_113), g_513)), l_12= 64[3], l_333.f0); } } static union U1 func_17(int p_19, uint16_t p_20) { p_20 =3D 1; for (p_20; (p_20 <=3D 8); p_20 +=3D 1) { union U1 l_346 =3D {4, 15}; for (g_138 =3D 0; (g_138 <=3D 8); g_138 +=3D 1) for (g_61 =3D 0; (g_61 <=3D 8); g_61 +=3D 1) for (g_69 =3D 1; (g_69 <=3D 8); g_69 +=3D 1) { short *l_347[6][6][6] =3D { {{&l_346.f0, &g_136, &l_346.f0, 00, &l_346.f0, &l_346.f0}, {&g_136, &l_346.f0, 00, &g_136, 00, &l_346.f0}}}; int l_348 =3D 0x02A82EBAL; signed char *l_349 =3D &g_30; g_257 &=3D (((*l_349) ^=3D (safe_rshift_func_int8_t_s_s(0, 2))), = (-8L)); } } } int main(int argc, char *argv[]) { func_1(); }=