[Bug c/107285] Incorrect code generation when we use __builtin_constant_p built-in function.

alex.curiou at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 17 07:40:54 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107285

--- Comment #2 from Alexey <alex.curiou at gmail dot com> ---
Well, currently
The code generation is just could be wrong.

If we use the example provided: we have to see or 13 or 60 in both cases.

We have to see same result from bar function and from the final result of the
program calculation.

But here the code is generated to calculate 60, but it returns 13 ???? !!!!


More information about the Gcc-bugs mailing list