public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug debug/108843] New: timeout with -g -O3 ? @ 2023-02-18 9:11 dcb314 at hotmail dot com 2023-02-18 9:18 ` [Bug debug/108843] " dcb314 at hotmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2023-02-18 9:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 Bug ID: 108843 Summary: timeout with -g -O3 ? Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 54485 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54485&action=edit C source code The attached code does this: $ (ulimit -t 60; time /home/dcb36/gcc/results/bin/gcc -c -w -O3 bug886.c) real 0m0.637s user 0m0.608s sys 0m0.018s $ (ulimit -t 60; time /home/dcb36/gcc/results/bin/gcc -c -w -g -O3 bug886.c) gcc: fatal error: Killed signal terminated program cc1 compilation terminated. real 1m0.732s user 0m59.485s sys 0m0.629s $ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/108843] timeout with -g -O3 ? 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com @ 2023-02-18 9:18 ` dcb314 at hotmail dot com 2023-02-20 8:24 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2023-02-18 9:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 --- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Problem seems to start sometime before 20220306. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/108843] timeout with -g -O3 ? 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com 2023-02-18 9:18 ` [Bug debug/108843] " dcb314 at hotmail dot com @ 2023-02-20 8:24 ` rguenth at gcc dot gnu.org 2023-02-23 15:37 ` marxin at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2023-02-20 8:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-02-20 Ever confirmed|0 |1 Keywords| |compile-time-hog, | |needs-bisection --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Seems to be var-tracking, -fno-var-tracking is fast here. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/108843] timeout with -g -O3 ? 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com 2023-02-18 9:18 ` [Bug debug/108843] " dcb314 at hotmail dot com 2023-02-20 8:24 ` rguenth at gcc dot gnu.org @ 2023-02-23 15:37 ` marxin at gcc dot gnu.org 2023-02-23 15:46 ` [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a marxin at gcc dot gnu.org 2024-03-15 11:28 ` dcb314 at hotmail dot com 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2023-02-23 15:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 54517 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54517&action=edit Partially reduced test-case Started with r9-2635-g78ea9abc2018243a. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com ` (2 preceding siblings ...) 2023-02-23 15:37 ` marxin at gcc dot gnu.org @ 2023-02-23 15:46 ` marxin at gcc dot gnu.org 2024-03-15 11:28 ` dcb314 at hotmail dot com 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2023-02-23 15:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- 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 = 0xE60F951FL; static signed char g_30 = 0x6EL; static signed char g_61 = 0x39L; static unsigned char g_69 = 0xA9L; static signed char g_113 = 7L; static short g_136 = 0; static uint64_t g_138 = 0x3DAD6103D800CEE5LL; static int g_257 = 1L; static struct S0 g_513; static int g_1457 = 0xA3396F68L; static union U1 func_17(int p_19, uint16_t p_20); static uint32_t func_1(void) { int l_332 = 0L; for (g_2; (g_2 <= 29); g_2) { struct S0 l_333 = {2, 9}; union U1 l_1264[7]; int *l_1463 = &g_1457; (*l_1463) ^= func_5(0, (+func_14(func_17(l_332, g_113), g_513)), l_1264[3], l_333.f0); } } static union U1 func_17(int p_19, uint16_t p_20) { p_20 = 1; for (p_20; (p_20 <= 8); p_20 += 1) { union U1 l_346 = {4, 15}; for (g_138 = 0; (g_138 <= 8); g_138 += 1) for (g_61 = 0; (g_61 <= 8); g_61 += 1) for (g_69 = 1; (g_69 <= 8); g_69 += 1) { short *l_347[6][6][6] = { {{&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 = 0x02A82EBAL; signed char *l_349 = &g_30; g_257 &= (((*l_349) ^= (safe_rshift_func_int8_t_s_s(0, 2))), (-8L)); } } } int main(int argc, char *argv[]) { func_1(); } ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com ` (3 preceding siblings ...) 2023-02-23 15:46 ` [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a marxin at gcc dot gnu.org @ 2024-03-15 11:28 ` dcb314 at hotmail dot com 4 siblings, 0 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2024-03-15 11:28 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108843 --- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- Created attachment 57711 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57711&action=edit C source code Another test case. foundBugs $ (ulimit -t 60; time ~/gcc/results/bin/gcc -c -w -O3 bug1023.c) real 0m0.456s user 0m0.435s sys 0m0.019s foundBugs $ (ulimit -t 60; time ~/gcc/results/bin/gcc -c -w -g -O3 bug1023.c) gcc: fatal error: Killed signal terminated program cc1 compilation terminated. real 1m0.363s user 0m59.555s sys 0m0.524s foundBugs $ (ulimit -t 60; time ~/gcc/results/bin/gcc -c -w -g -O3 -fno-var-tracking bug1023.c) real 0m6.269s user 0m5.620s sys 0m0.502s foundBugs $ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-03-15 11:28 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-02-18 9:11 [Bug debug/108843] New: timeout with -g -O3 ? dcb314 at hotmail dot com 2023-02-18 9:18 ` [Bug debug/108843] " dcb314 at hotmail dot com 2023-02-20 8:24 ` rguenth at gcc dot gnu.org 2023-02-23 15:37 ` marxin at gcc dot gnu.org 2023-02-23 15:46 ` [Bug debug/108843] timeout with -g -O3 since r9-2635-g78ea9abc2018243a marxin at gcc dot gnu.org 2024-03-15 11:28 ` dcb314 at hotmail dot com
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).