https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77713
Bug ID: 77713
Summary: gcc.dg/tree-ssa/builtin-sprintf.c compilation failed
to produce executable
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: thopre01 at gcc dot gnu.org
CC: msebor at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: arm-none-eabi
Hi,
gcc.dg/tree-ssa/builtin-sprintf.c fails to build on arm-none-eabi target with
the following error:
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function
'test_e_long_double':^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:423:16: warning: may write a
terminating nul past the end of the destination [-Wformat-length=]^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:111:44: note: in definition of
macro 'EQL'^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:111:11: note: format output
between 13 and 14 bytes into a destination of size 13^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:423:3: note: in expansion of
macro 'EQL'^M
/tmp/ccCIniJQ.o: In function `test_e_long_double':^M
builtin-sprintf.c:(.text+0x16fc): undefined reference to
`failure_on_line_423'^M
collect2: error: ld returned 1 exit status^M
compiler exited with status 1
output is:
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c: In function
'test_e_long_double':^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:423:16: warning: may write a
terminating nul past the end of the destination [-Wformat-length=]^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:111:44: note: in definition of
macro 'EQL'^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:111:11: note: format output
between 13 and 14 bytes into a destination of size 13^M
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c:423:3: note: in expansion of
macro 'EQL'^M
/tmp/ccCIniJQ.o: In function `test_e_long_double':^M
builtin-sprintf.c:(.text+0x16fc): undefined reference to
`failure_on_line_423'^M
collect2: error: ld returned 1 exit status^M
Please let me know of any other information you would need to reproduce this
problem.
Best regards.