https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69494
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Note since 'dev' is an automatic variable which address doesn't escape there's no way to observe the access thus GCC is correct in eliding it. We could behave the same as we do for a volatile automatic variable which we seem to instantinate on the stack quite easily though when we compute forced_stack_vars in cfgexpand.c