This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17564] [4.0 Regression] New treatment of function pointers when used with equality operators, when casts are involved
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2004 22:43:38 -0000
- Subject: [Bug middle-end/17564] [4.0 Regression] New treatment of function pointers when used with equality operators, when casts are involved
- References: <20040919231932.17564.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2004-12-05 22:43 -------
Subject: Re: [4.0 Regression] New treatment of function
Nathanael,
> 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.
I seem to have used a version of gcc without your patch when
I checked it with the PR testcase. Would you please submit it
to gcc-patches as a fix for the PR? The patch has a parenthesis
typo that needs fixing.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17564