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/23369] [4.0/4.1 regression] build_range_test generates wrong code for funcptr comparison


------- 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


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