This is an archive of the discontinued LLVM Phabricator instance.

[mips] Show warning in case of mixing -mlong-calls and -mabicalls options
ClosedPublic

Authored by atanasyan on Aug 9 2017, 2:09 PM.

Details

Summary

While we do not support -mshared / -mno-shared properly, show warning and ignore -mlong-calls option in case of implicitly or explicitly provided -mabicalls option.

The patch depends on D36550.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Aug 9 2017, 2:09 PM
sdardis added inline comments.Aug 10 2017, 2:26 AM
include/clang/Basic/DiagnosticDriverKinds.td
296–297 ↗(On Diff #110478)

"as it is not currently supported with "

I think is better, as we currently don't support mixing the options but could do in the future.

atanasyan updated this revision to Diff 110562.Aug 10 2017, 5:42 AM
  • Addressed review comments.
sdardis added inline comments.Aug 10 2017, 6:01 AM
test/Driver/mips-longcalls-warning.c
1 ↗(On Diff #110478)

Can you put this in test/Driver/mips-abicalls-warning.c from the other patch? I'd prefer to keep all the abicalls warnings together rather than separate tests based on the feature the conflict with.

atanasyan added inline comments.Aug 10 2017, 6:07 AM
test/Driver/mips-longcalls-warning.c
1 ↗(On Diff #110478)

Can you put this in test/Driver/mips-abicalls-warning.c from the other patch?

I can, but in that case it's probably better to join both patches because that patch loses its test.

sdardis accepted this revision.Aug 10 2017, 6:18 AM

LGTM.

test/Driver/mips-longcalls-warning.c
1 ↗(On Diff #110478)

You can do it as an NFC change afterward both commits in that case.

This revision is now accepted and ready to land.Aug 10 2017, 6:18 AM
atanasyan added inline comments.Aug 10 2017, 6:19 AM
test/Driver/mips-longcalls-warning.c
1 ↗(On Diff #110478)

OK. Thanks for review.

This revision was automatically updated to reflect the committed changes.