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_test generates wrong code for funcptr comparison
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2005 21:52:19 -0000
- Subject: [Bug middle-end/23369] [4.0/4.1 regression] build_range_test 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 pinskia at gcc dot gnu dot org 2005-08-13 21:52 -------
Confirmed,
A small testcase:
typedef void(*func_type) (void);
void g(void);
void f(func_type a)
{
if (a == (func_type) 1 || a == (func_type)0 || a == (func_type) -1)
g();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail|4.0.1 |4.0.1 4.1.0
Last reconfirmed|0000-00-00 00:00:00 |2005-08-13 21:52:19
date| |
Summary|[4.0.x regression] Generates|[4.0/4.1 regression]
|wrong code for funcptr |build_range_test generates
|comparison |wrong code for funcptr
| |comparison
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23369