------- Additional Comments From dberlin at gcc dot gnu dot org 2005-05-14 21:39 ------- Subject: Re: FRE does not eliminate a redundant builtin call.
On Sat, 2005-05-14 at 21:30 +0000, pinskia at gcc dot gnu dot org wrote: > ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-14 > 21:30 ------- > Confirmed, here is another testcase (for -ffast-math): > double cos (double); > void link_error(); > void f(double a) > { > double b = cos (a); > double c = cos (a); > if (b!=c) > link_error(); > } > Yes, we should make the result of a CONST call available, but don't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21576