This is an archive of the discontinued LLVM Phabricator instance.

[clang][WebAssembly] Pass `-Wl,-no-type-check` through to the MC layer
ClosedPublic

Authored by sbc100 on Aug 4 2022, 4:07 PM.

Details

Summary

I took as an example the -Wa,--noexecstack clang flag that maps down
to -cc1 -mnoexecstack.

See https://github.com/llvm/llvm-project/issues/56935

Diff Detail

Event Timeline

sbc100 created this revision.Aug 4 2022, 4:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 4:07 PM
sbc100 requested review of this revision.Aug 4 2022, 4:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 4:07 PM

Work in progress -- still needs a test.

sbc100 edited the summary of this revision. (Show Details)

Test?

And we should not have llvm::dbgs() << "Main " << Opts.NoTypeCheck << "\n"; by default.

sbc100 added a comment.Aug 4 2022, 5:24 PM

Test?

And we should not have llvm::dbgs() << "Main " << Opts.NoTypeCheck << "\n"; by default.

Sorry, as as said above "Work in progress -- still needs a test."

sbc100 retitled this revision from [clang][WebAssembly] Pass `-Wl,-no-type-check` through to the MC layer to [WIP][clang][WebAssembly] Pass `-Wl,-no-type-check` through to the MC layer.Aug 4 2022, 5:25 PM
sbc100 updated this revision to Diff 450196.Aug 4 2022, 5:44 PM
  • remove debugging
sbc100 edited the summary of this revision. (Show Details)Aug 19 2022, 3:24 PM

ptal

sbc100 retitled this revision from [WIP][clang][WebAssembly] Pass `-Wl,-no-type-check` through to the MC layer to [clang][WebAssembly] Pass `-Wl,-no-type-check` through to the MC layer.Aug 19 2022, 3:24 PM
sbc100 updated this revision to Diff 454122.Aug 19 2022, 3:27 PM

add test

sbc100 updated this revision to Diff 454128.Aug 19 2022, 3:40 PM

improve test

dschuff accepted this revision.Aug 22 2022, 12:59 PM

This looks good to me from the wasm perspective

This revision is now accepted and ready to land.Aug 22 2022, 12:59 PM