https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79293
Bug ID: 79293 Summary: [7 regression] gcc.dg/tree-ssa/builtin-sprintf.c fails starting with r244953 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- At least I think it is 244753. There were a bunch of updates for that revision which left the compiler unable to build but after those were cleared up builtin-sprintf was failing. pawn /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c -fno-diagnostics-show-caret -fdiagnostics-color=never -ansi -pedantic-errors -O2 -Wall -Wno-pedantic -fprintf-return-value -lm -o ./builtin-sprintf.exe /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_d_i': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:307:20: warning: '0' flag ignored with precision and '%i' gnu_printf format [-Wformat=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:128:44: note: in definition of macro 'RNG' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_percent': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:791:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:792:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:793:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /tmp/ccg3ni4S.o: In function `test_g_long_double': builtin-sprintf.c:(.text+0x5600): undefined reference to `failure_on_line_724' collect2: error: ld returned 1 exit status compiler exited with status 1 output is: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_d_i': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:307:20: warning: '0' flag ignored with precision and '%i' gnu_printf format [-Wformat=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:128:44: note: in definition of macro 'RNG' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function 'test_percent': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:791:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:792:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:793:18: warning: too many arguments for format [-Wformat-extra-args] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:114:44: note: in definition of macro 'EQL' /tmp/ccg3ni4S.o: In function `test_g_long_double': builtin-sprintf.c:(.text+0x5600): undefined reference to `failure_on_line_724' collect2: error: ld returned 1 exit status PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for warnings, line 307) PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for warnings, line 791) PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for warnings, line 792) PASS: gcc.dg/tree-ssa/builtin-sprintf.c (test for warnings, line 793) FAIL: gcc.dg/tree-ssa/builtin-sprintf.c (test for excess errors) Excess errors: builtin-sprintf.c:(.text+0x5600): undefined reference to `failure_on_line_724' UNRESOLVED: gcc.dg/tree-ssa/builtin-sprintf.c compilation failed to produce executable