https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82051
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- On Thu, 31 Aug 2017, zwzhangwen.zhang at huawei dot com wrote: > volatile long long f1; > printf ("g_121.f1=%x\n",g_121.f1); In addition to the other points people have made about active union members, %x is not the correct format for long long; use %llx.