libffi patch RFA: Pass -Qunused-arguments for asm files

Ian Lance Taylor iant@google.com
Tue Sep 30 00:12:00 GMT 2014


Similar to a recent patch to libgo, this patch to the libffi configure
script checks whether the compiler support -Qunused-arguments.  If it
does, it passes -Qunused-arguments when invoking the compiler on .s
files.  This is because the clang driver complains by default when given
useless arguments, such as -I options when compiling a .s file.  This
somewhat annoying behaviour works poorly with configure scripts.  The
-Qunused-arguments option disables it.  Bootstrapped and ran libffi and
libgo tests on x86_64-unknown-linux-gnu.

OK for mainline?

Ian


2014-09-29  Ian Lance Taylor  <iant@google.com>

	* configure.ac: If the compiler supports -Qunused-arguments, use
	it when running the compiler on .s files.
	* configure: Regenerated.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1780 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140930/74e66969/attachment.bin>


More information about the Gcc-patches mailing list