[U-Boot] warnings from gcc-4.4 build
Kumar Gala
galak at kernel.crashing.org
Tue Jun 30 17:28:25 CEST 2009
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
sys_eeprom.c: In function ‘mac_read_from_eeprom’:
sys_eeprom.c:395: warning: dereferencing type-punned pointer will
break strict-aliasing rules
ahci.c: In function ‘ata_scsiop_read_capacity10’:
ahci.c:616: warning: dereferencing type-punned pointer will break
strict-aliasing rules
biosemu.c: In function ‘BE_setVGA’:
biosemu.c:147: warning: dereferencing type-punned pointer will break
strict-aliasing rules
tsec.c: In function ‘tsec_init’:
tsec.c:200: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dlmalloc.c: In function ‘malloc_bin_reloc’:
dlmalloc.c:1502: warning: dereferencing pointer ‘p’ does break strict-
aliasing rules
dlmalloc.c:1502: warning: dereferencing pointer ‘p’ does break strict-
aliasing rules
dlmalloc.c:1499: note: initialized from here
dlmalloc.c:1502: note: initialized from here
dlmalloc.c: In function ‘free’:
dlmalloc.c:2474: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2474: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2474: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2474: note: initialized from here
dlmalloc.c: In function ‘malloc’:
dlmalloc.c:2219: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2219: note: initialized from here
dlmalloc.c:2228: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2228: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2228: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2228: note: initialized from here
dlmalloc.c:2235: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2235: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2235: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2235: note: initialized from here
dlmalloc.c:2292: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2292: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2292: warning: dereferencing pointer ‘({anonymous})’ does
break strict-aliasing rules
dlmalloc.c:2292: note: initialized from here
xyzModem.c: In function ‘xyzModem_stream_open’:
xyzModem.c:564: warning: ‘dummy’ is used uninitialized in this function
xyzModem.c:547: note: ‘dummy’ was declared here
Should would be turning on -fno-strict-aliasing. The linux kernel has
been doing this for some time.
- k
More information about the U-Boot
mailing list