[Bug middle-end/23369] [4.0/4.1 regression] build_range_check generates wrong code for funcptr comparison

tausq at debian dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 15 05:31:00 GMT 2005


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



More information about the Gcc-bugs mailing list