This is an archive of the discontinued LLVM Phabricator instance.

Remove -i command line option, add -imultilib
ClosedPublic

Authored by erichkeane on Mar 2 2018, 10:42 AM.

Details

Summary

I discovered that '-i' is a command line option for the driver,
however it actually does not do anything and is not supported by any
other compiler. In fact, it is completely undocumented for Clang.

I found a couple of instances of people confusing it with one of
the variety of other command line options that control the driver.
Because of this, we should delete this option so that it is clear
that it isn't valid.

HOWEVER, I found that GCC DOES support -imultilib, which the -i
was hiding our lack of support for. We currently only use imultilib
for the purpose of forwarding to gfortran (in a specific test written
by chandlerc for this purpose).

imultilib is a rarely used (if ever?) feature that I could find no
references to on the internet, and in fact, my company's massive test
suite has zero references to it ever being used.

SO, this patch removes the -i option so that we will now give an error
on its usage (so that it won't be confused with -I), and replaces it with
-imultilib, which is now specified as a gfortran_group option.

Diff Detail

Repository
rL LLVM

Event Timeline

erichkeane created this revision.Mar 2 2018, 10:42 AM
erichkeane updated this revision to Diff 136845.Mar 2 2018, 1:47 PM

Talked to Aaron and came up with a way of covering with a testcase.

This revision is now accepted and ready to land.Mar 2 2018, 1:53 PM
This revision was automatically updated to reflect the committed changes.