This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Honor "-gdwarf-N" at any position for assembler sources
ClosedPublic

Authored by ikudrin on Feb 17 2021, 6:53 AM.

Details

Summary

This fixes an issue when -gdwarf-N switch was ignored if it was given before another debug option.

Diff Detail

Event Timeline

ikudrin requested review of this revision.Feb 17 2021, 6:53 AM
ikudrin created this revision.
MaskRay accepted this revision.Feb 17 2021, 10:37 AM
MaskRay added inline comments.
clang/test/Driver/debug-options-as.c
65

Nit: use the more common spelling -fintegrated-as

-triple %itanium_abi_triple

msvc windows triples ideally don't need -dwarf-version=, but that can be a separate clean-up.

This revision is now accepted and ready to land.Feb 17 2021, 10:37 AM

Thanks!

clang/test/Driver/debug-options-as.c
65

Nit: use the more common spelling -fintegrated-as

-integrated-as is what other tests in this file use. Is it OK if these lines will not follow the common template?

MaskRay added inline comments.Feb 17 2021, 4:38 PM
clang/test/Driver/debug-options-as.c
65

I think it should be fine...

gregmiller added a subscriber: gregmiller.EditedFeb 19 2021, 1:07 PM

Hello, we are seeing failures like below:


Note: Google Test filter = ParameterizedCovMapTest/CoverageMappingTest.skip_duplicate_function_record/0
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ParameterizedCovMapTest/CoverageMappingTest
[ RUN ] ParameterizedCovMapTest/CoverageMappingTest.skip_duplicate_function_record/0
/scratch/build_jenkins/workspace/Downstream_Changes/llvm_cgt/llvm-project/llvm/unittests/ProfileData/CoverageMappingTest.cpp:889: Failure
Expected: 3U
Which is: 3
To be equal to: NumFuncs
Which is: 5
[ FAILED ] ParameterizedCovMapTest/CoverageMappingTest.skip_duplicate_function_record/0, where GetParam() = (false, false) (0 ms)

Do you have any suggestions on why we would start seeing above failures after you commit? Was passing before.

Thanks
Greg

Do you have any suggestions on why we would start seeing above failures after you commit? Was passing before.

From my understanding, the areas seem to be perfectly unrelated.