This is an archive of the discontinued LLVM Phabricator instance.

[clang][LTO] Setting Desired Default AIX Debugging Options
ClosedPublic

Authored by qiongsiwu1 on Oct 13 2022, 12:26 PM.

Details

Summary

On AIX, strict-dwarf defaults to true. This patch implement this default behaviour. Additionally, it adds debug tuning tests.

Diff Detail

Event Timeline

qiongsiwu1 created this revision.Oct 13 2022, 12:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 12:26 PM
qiongsiwu1 requested review of this revision.Oct 13 2022, 12:26 PM
shchenz added inline comments.Oct 13 2022, 6:50 PM
clang/lib/Driver/ToolChains/CommonArgs.cpp
589

Typo: presense -> absence?

590

Could you also post another patch to fix the no-lto path to remove the redundant -debugger-tuning=dbx on AIX? We should make the lto mode and non-lto mode be consistent.

clang/test/Driver/lto-aix.c
8

Can we add case that by default, no -debugger-tune is emitted?

This comment was removed by qiongsiwu1.
qiongsiwu1 edited the summary of this revision. (Show Details)

Address code review.

qiongsiwu1 marked 3 inline comments as done.Oct 17 2022, 1:58 PM
qiongsiwu1 added inline comments.
clang/lib/Driver/ToolChains/CommonArgs.cpp
589

Thanks for the catch! I realized the original code was confusing (probably incorrect). The logic is rewritten and the comment is eliminated.

590

Yes will do!

qiongsiwu1 marked 2 inline comments as done.Oct 17 2022, 1:59 PM
qiongsiwu1 updated this revision to Diff 468341.EditedOct 17 2022, 2:59 PM

Clean up test cases.

shchenz accepted this revision.Oct 17 2022, 7:39 PM

LGTM. Thanks.

clang/lib/Driver/ToolChains/CommonArgs.cpp
588

nit: maybe we don't need to change this. OPT_gTune_Group will check the four debugger types.

This revision is now accepted and ready to land.Oct 17 2022, 7:39 PM

Address a review comment.

qiongsiwu1 marked an inline comment as done.Oct 18 2022, 6:51 AM
This revision was landed with ongoing or failed builds.Oct 18 2022, 7:49 AM
This revision was automatically updated to reflect the committed changes.