This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23369] [4.0/4.1 regression] build_range_check generates wrong code for funcptr comparison
- From: "tausq at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2005 05:31:03 -0000
- Subject: [Bug middle-end/23369] [4.0/4.1 regression] build_range_check generates wrong code for funcptr comparison
- References: <20050813025029.23369.tausq@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tausq at debian dot org 2005-08-15 05:31 -------
Do I understand correctly that there are two distinct problems:
1) gcc should not be canonicalizing constants casted as function pointers
2) gcc should not generate relational comparisons against function pointers
?
it seems from my quick tests that #1 is not affected by build_range_test (i.e.
something else is wrong).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23369