This is an archive of the discontinued LLVM Phabricator instance.

[flang] Do not print backtrace for most TODOs.
ClosedPublic

Authored by vzakhari on Feb 10 2023, 9:43 AM.

Details

Summary

There are two ways to interrupt flang when a TODO is hit: abort or
exit with non-zero exit code. Abort implies printing the backtrace
and "PLEASE submit a bug report" message. We used to use abort
only in debug compiler build. Since the TODOs are already known
problems it may be counterproductive to ask debug compiler users
to submit bug reports. In addition, the TODO messages are pretty
self-explanatory, so the backtrace printing seems to be redundant.

This change makes all TODOs non-aborting. I added TODO_.*TRACE macros
for TODOs that may benefit from the backtrace and the "bug report"
message in the debug compiler. These macros are currently unused.

Diff Detail

Event Timeline

vzakhari created this revision.Feb 10 2023, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 9:43 AM
vzakhari requested review of this revision.Feb 10 2023, 9:43 AM
klausler accepted this revision.Feb 10 2023, 9:45 AM
This revision is now accepted and ready to land.Feb 10 2023, 9:45 AM
This revision was automatically updated to reflect the committed changes.