As there are no guarantees as to the relative placement of auto/stack variables relative to each other, that is perfectly fine.
Finding a different layout for auto variable in the stack frame at different optimization levels is perfectly fine.
As there are no guarantees as to the relative placement of auto/stack variables relative to each other, that is perfectly fine.