Commit: Running the linker testsuite with clang

Nick Clifton nickc@redhat.com
Fri Apr 17 12:03:37 GMT 2020


Hi Guys,

  We have been able to build the binutils with clang for a while now,
  but there are still problems with using it to run the testsuites.
  So I am applying the patch below to add the use of clang's magic
  CCC_OVERRIDE_OPTIONS environment variable.  This alters the command
  line passed to clang, allowing unsupported options to be dropped, 
  unwanted warnings to be disabled and so on.

  The patch also makes a couple of minor changes to the tests as well,
  in order to fix a couple of problems when using clang.

  Tested with clang and with a lot of gcc-built toolchains.
  
Cheers
  Nick

ld/ChangeLog
2020-04-17  Nick Clifton  <nickc@redhat.com>

	* testsuite/config/default.exp: If not already set then create the
	CCC_OVERRIDE_OPTIONS environment variable to help when running the
	testsuite with clang.
	* testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
	* testsuite/ld-elfvers/vers.exp: Add checks to detect if files
	were built before attempting to copy them.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ld-testsuite.patch
Type: text/x-patch
Size: 3994 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200417/543f909c/attachment.bin>


More information about the Binutils mailing list