Jakub Jelinek <jakub at gcc dot> changed:

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot,
                   |                            |law at gcc dot

--- Comment #1 from Jakub Jelinek <jakub at gcc dot> ---
I see the same behavior with 4.9, as well as older (e.g. 4.8 or 4.4).
The thing is that __builtin_constant_p is (at -O1 and above) a check whether
some expression is constant after optimizations, and here FRE or DOM passes
figure out (due to jump threading?) that it is constant.
Abusing __builtin_constant_p this way is always going to be risky.

Reply via email to