[Bug middle-end/85880] Different code generation for uninitialized variables

fredrik.hederstierna@securitas-direct.com gcc-bugzilla@gcc.gnu.org
Tue May 22 19:49:00 GMT 2018


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

--- Comment #4 from Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com> ---
Ok, you are probably right. I just was surprised that all GCC 4,5,6,7 gave same
result, but something changed with 8. But you are right, its unpredictable
results since its undefined. I practice it gave me some issues though to some
benchmarking suites have code that have undefined variabled, but thats an issue
for benchmarks, not GCC itself.
So you are right, me can close it, just wanted it to be confirmed as
unimportant.
Thanks, Fredrik


More information about the Gcc-bugs mailing list