This is the mail archive of the gcc-bugs@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]

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


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-11-28 23:16 -------
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?

That seems correct to me.  Similarly, we wouldn't want canonicalization
when comparing a function pointer with an integer.

> Tentative, untested patch attached.

I'll give it a try.

Dave


-- 


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


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