This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR testsuite/42001: LTO tests fail with non multilib targets


Hello!

> LTO tests may pass -r to linker. "-lm" is always added automatically.
> For non multilib targets, linker may be called with "-r -lm" without
> specifying library search paths and tests will fail. This patch sets
> and restores mathlib to avoid passing -lm to linker. Tested on
> Linux/ia32 and Linux/Intel64.  OK for trunk?

	PR testsuite/42001
	* gcc.dg/lto/lto.exp: Pass no-mathlib to lto_init.  Call
	lto_finish at the end.

The same change has to be applied to be applied to g++.dg/lto/lto.exp
and gfortran.dg/lto/lto.exp as well.

2009-11-13  Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/42001
	* g++.dg/lto/lto.exp: Pass no-mathlib to lto_init.  Call
	lto_finish at the end.
	* gfortran.dg/lto/lto.exp: Ditto.

Attached patch was tested on x86_64-pc-linux-gnu and
alphaev68-pc-linux-gnu, where it fixes several lto link failures.

Patch was committed to mainline as obvious.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]