[LLVMdev] Build Failure

dag at cray.com dag at cray.com
Thu Jan 3 11:16:41 PST 2013

David Blaikie <dblaikie at gmail.com> writes:

> Selfhost clang. Whenever we get a warning from Clang we either fix
> Clang or fix the build quite quickly.

Not possible,

> If you want to fix the build such that LLVM can be built -Werror clean
> with GCC the right solution is going to be to turn off -Wuninitialized
> when the LLVM build system detects that it is using GCC rather than
> Clang (we have the inverse, where we turn on certain Clang warning
> flags when we detect that we're using Clang).

I would like to keep -Wuninitialized if at all possible because it does
in fact detect bugs.

> Pragmas: maybe, but it would probably muddy the waters a fair bit.
> Depends how noisy any given warning is - I suspect -Wuninitialized
> wouldn't meet the bar for pragma suppressions (there would be too many
> suppressions) & should just be disabled in the build system when using
> GCC. We can rely on Clang's warnings to catch things that can be
> caught reliably.

I really dislike disabling warnings if we can suppress them in specific
cases.  I can't use clang to catch things, gcc is my only option.


More information about the llvm-dev mailing list