This is an archive of the discontinued LLVM Phabricator instance.

[flang] Disable -Wmaybe-uninitialized for GCC
ClosedPublic

Authored by tskeith on Aug 10 2020, 3:58 PM.

Details

Summary

According to llvm/cmake/config-ix.cmake, gcc's potentially uninitialized
use analysis has lots of false positives. We are encountering one in
flang/lib/Lower/CharacterExpr.cpp.

That warning is disabled for gcc in in-tree builds; this does the same
thing for out-of-tree builds.

Diff Detail

Event Timeline

tskeith created this revision.Aug 10 2020, 3:58 PM
Herald added a project: Restricted Project. · View Herald Transcript
tskeith requested review of this revision.Aug 10 2020, 3:58 PM
PeteSteinfeld accepted this revision.Aug 10 2020, 4:44 PM

Everything built and tested successfully in GCC both in-tree and out-of-tree.

This revision is now accepted and ready to land.Aug 10 2020, 4:44 PM
sscalpone accepted this revision.Aug 10 2020, 5:52 PM
This revision was automatically updated to reflect the committed changes.