Re: Division by ZERO on GIMPLE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Dec 7, 2013 at 1:48 AM, Bin.Cheng <amker.cheng@xxxxxxxxx> wrote:
>
> I just found some GIMPLE like below is generated during boostrap gcc
> for x86, tree-vect-loop.c
>
>
>   <bb 637>:
>   # group_size_1432 = PHI <1(497), group_size_1017(660)>
>   # scalar_dest_1287 = PHI <scalar_dest_1228(497), scalar_dest_1012(660)>
>   ratio_1497 = group_size_1432 / 0;
>   goto <bb 501>;
>
> The compilation ends fine, but what is the division by 0?

Pretty hard to say without more information.  I just tried, and I
don't see it myself.  I would guess that some optimization split out
the ratio == 0 case for some reason.

Ian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux