[Bug ada/37038] Bogus warning from GCC

sam at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 6 15:40:00 GMT 2008



------- Comment #2 from sam at gcc dot gnu dot org  2008-08-06 15:39 -------
The warning comes from a range check which is emitted by Gigi. The backend
knows that this check is useless, and warns about it. As far as I can tell,
there is no way to suppress the warning in shorten_compare (c-common.c), except
by setting a global option (OPT_Wtype_limits) to false.


-- 


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



More information about the Gcc-bugs mailing list