[Bug middle-end/17564] [4.0 Regression] New treatment of function pointers when used with equality operators, when casts are involved

dave at hiauly1 dot hia dot nrc dot ca gcc-bugzilla@gcc.gnu.org
Tue Nov 30 03:42:00 GMT 2004


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-11-30 03:42 -------
Subject: Re:  [4.0 Regression] New treatment of function

> Do you think we could canonicalize only when
> we compare a function pointer to a function pointer
> (rather than when comparing a function pointer to a void pointer)?  Would
> that
> do the trick, or would it lead to further trouble?
> 
> Tentative, untested patch attached.

This provides some improvement (i.e., it fixes the testsuite fail
that prompted the PR) but the testcase that I submitted with the PR
still fails.  I need to investigate why the function pointer in the
comparison is still getting canonicalized.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17564



More information about the Gcc-bugs mailing list