[Bug c/18065] usual arithmetic conversion not applying correctly

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 20 19:29:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-20 19:29 -------
And the reason why we don't shoten back to signed char % signed char:

	  /* Although it would be tempting to shorten always here, that loses
	     on some targets, since the modulo instruction is undefined if the
	     quotient can't be represented in the computation mode.  We shorten
	     only if unsigned or if dividing by something we know != -1.  */

So maybe this is correct.

-- 


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



More information about the Gcc-bugs mailing list