From: Wolfgang Denk Date: Wed, 22 May 2013 23:15:45 +0200 Subject: [U-Boot] [PATCH v2] powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 In-Reply-To: <20130518010154.GA28787@home.buserror.net> References: <20130518010154.GA28787@home.buserror.net> Message-ID: <20130522211545.BB18438047B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <20130518010154.GA28787@home.buserror.net> you wrote: > C99's strict aliasing rules are insane to use in low-level code such as a > bootloader, but as Wolfgang has rejected -fno-strict-aliasing in the > past, add a union so that 16-bit accesses can be performed. > > Compile-tested only. > > Signed-off-by: Scott Wood Thanks! Acked-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "'Tis true, 'tis pity, and pity 'tis 'tis true." - Poloniouius, in Willie the Shake's _Hamlet, Prince of Darkness_