This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR47566
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: rth at redhat dot com (Richard Henderson)
- Cc: rguenther at suse dot de (Richard Guenther), gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Jul 2011 19:19:58 +0200 (CEST)
- Subject: Re: [PATCH] Fix PR47566
Richard Henderson wrote:
> On 07/22/2011 07:42 AM, Ulrich Weigand wrote:
> > Well, it works for me with just adding -lm to the dg-extra-ld-options.
> > This still folds cabs to sqrt in the LTO step, and then satisfies that
> > call via the libm routine ... If I understood your intent correctly,
> > this should still test the same thing, shouldn't it?
>
> Not quite, since -lm also provides cabs.
Well, yes (mine does as well). But the -O2 LTO step will still fold cabs
to sqrt instead of pulling in the cabs from the library, at least it does
for me. Thus the test still verifies this folding doesn't crash, which
is what I understood it should do. Am I missing something?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com