[U-Boot] warnings from gcc-4.4 build

Wolfgang Denk wd at denx.de
Sun Jul 5 01:33:16 CEST 2009


Dear Kumar Gala,

In message <9B5E5AE1-2907-49C2-870F-2D7B2F2DE598 at kernel.crashing.org> you wrote:
> When building the MPC8572DS_config w/gcc-4.4 I get:
>
> sys_eeprom.c: In function ‘do_mac’:
> sys_eeprom.c:323: warning: dereferencing type-punned pointer will  >
> break strict-aliasing rules
...
> Should would be turning on -fno-strict-aliasing.  The linux kernel has  >
> been doing this for some time.

Should we not rather fix the code that causes these warnings? Usually
the required changes are just minimal (which does not mean that it is
a trivial task).

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
I think it's a new feature. Don't tell anyone it was an accident. :-)
  -- Larry Wall on s/foo/bar/eieio in <10911 at jpl-devvax.JPL.NASA.GOV>


More information about the U-Boot mailing list