BSD format-extensions break the gcc testsuite
Pedro F. Giffuni
giffunip at tutopia.com
Tue Feb 22 21:44:02 UTC 2011
Hello;
I have been trying to build kernels with llvm-gcc4 so
I took the code to add -fformat-extensions from our
system gcc and I added it to llvm-gcc4.
Unfortunately, even when format-extensions are not
set, it seems to alter gcc's behaviour.
The llvm committer reported this issue:
_______
...
I applied the three patches in PR9097, and ran the LLVM test suite and the GCC test suite. The news is generally positive, but this test case:
.../llvmgcc42.test/gcc/testsuite/gcc.dg/format/attr-3.c
now segfaults on this declaration:
extern void fe0 (const char *, ...) __attribute__((format(12345, 1, 2)));
Both the patched and unpatched compiler generate lots of diagnostics for this test case, but the unpatched compiler doesn't segfault.
...
_____
Anyone that can help? I suspect this issue may also be causing trouble in our base compiler.
cheers,
Pedro.
More information about the freebsd-toolchain
mailing list