This is an archive of the discontinued LLVM Phabricator instance.

Add -linker (and -linker=) alias for -fuse-ld=
AbandonedPublic

Authored by filcab on Aug 3 2015, 3:23 PM.

Details

Reviewers
echristo
Summary

This implements one of the changes in the initial PS4 toolchain
definition.

http://reviews.llvm.org/D11279#inline-92724

Diff Detail

Event Timeline

filcab updated this revision to Diff 31275.Aug 3 2015, 3:23 PM
filcab retitled this revision from to Add -linker (and -linker=) alias for -fuse-ld=.
filcab updated this object.
filcab added a reviewer: echristo.
filcab added a subscriber: cfe-commits.
filcab updated this revision to Diff 31693.Aug 10 2015, 11:16 AM

Update to latest trunk. Ping.

echristo added inline comments.Aug 24 2015, 4:22 PM
include/clang/Driver/Options.td
1853–1854

Any reason to have both options?

filcab updated this revision to Diff 33030.Aug 24 2015, 5:44 PM
filcab marked an inline comment as done.

Addressed Eric's comment.

echristo accepted this revision.Aug 24 2015, 5:49 PM
echristo edited edge metadata.

One inline comment and then OK.

-eric

test/Driver/fuse-ld.c
27–33

Bet this doesn't work :)

This revision is now accepted and ready to land.Aug 24 2015, 5:49 PM
thakis added a subscriber: thakis.Aug 24 2015, 5:49 PM
thakis added inline comments.
include/clang/Driver/Options.td
1853

Any reason to have another alias for this at all? Does gcc understand this spelling? If not, could you limit this flag to PS4 targets? (I'm guessing you need it for PS4 targets for some reason.)

This revision is now accepted and ready to land.Aug 24 2015, 5:49 PM
pcc added a subscriber: pcc.Aug 24 2015, 5:49 PM
pcc added inline comments.
test/Driver/fuse-ld.c
32–33

Prefix mismatch here.

39–40

Same here.

echristo added inline comments.Aug 24 2015, 5:50 PM
include/clang/Driver/Options.td
1853

Any reason? (And I'm not sure how to limit it btw on target).

filcab updated this revision to Diff 33085.Aug 25 2015, 10:14 AM
filcab marked 3 inline comments as done.
filcab edited edge metadata.

Addressed comments.

kromanova added inline comments.Sep 2 2015, 4:29 PM
include/clang/Driver/Options.td
1853–1854

We will remove -linker alias. We had to confirm with the interested parties that they are OK with this option being removed.

filcab abandoned this revision.Sep 10 2015, 6:14 PM

We don't need this anymore, since we're making some internal changes.
Thank you for the feedback!

include/clang/Driver/Options.td
1853

Same here, no idea how to limit the flag to a specific target.

1853–1854

I went and double-checked our docs. We should only need one.

test/Driver/fuse-ld.c
27–33

Derp. Sorry.

32–33

Ah yes. Thanks!