[U-Boot] [U-Boot, v5] Makefile: add a new script to check -fstack-usage support

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Feb 24 01:45:24 CET 2014


Hello Tom,


> We still want this, and it's still applicable right?

Yes, it's still applicable and I really want it on the code base.

Without this patch,  log message would be sprinked with warnings
when using some cross tools.


$ make CROSS_COMPILE=m68k-linux-   M54418TWR_config all
 [ snip ]
  CC      arch/m68k/lib/cache.o
arch/m68k/lib/cache.c: In function 'flush_cache':
arch/m68k/lib/cache.c:18:1: warning: -fstack-usage not supported for this target [enabled by default]
  CC      arch/m68k/lib/interrupts.o
arch/m68k/lib/interrupts.c: In function 'irq_install_handler':
arch/m68k/lib/interrupts.c:56:1: warning: -fstack-usage not supported for this target [enabled by default]
  CC      arch/m68k/lib/time.o
arch/m68k/lib/time.c: In function 'dtimer_interrupt':
arch/m68k/lib/time.c:76:1: warning: -fstack-usage not supported for this target [enabled by default]
  CC      arch/m68k/lib/traps.o
arch/m68k/lib/traps.c: In function 'exc_handler':
arch/m68k/lib/traps.c:40:1: warning: -fstack-usage not supported for this target [enabled by default]
  LD      arch/m68k/lib/built-in.o
  LD      board/freescale/common/built-in.o
  CC      board/freescale/m54418twr/m54418twr.o
board/freescale/m54418twr/m54418twr.c: In function 'checkboard':
board/freescale/m54418twr/m54418twr.c:26:1: warning: -fstack-usage not supported for this target [enabled by default]
  LD      board/freescale/m54418twr/built-in.o
  CC      common/main.o
common/main.c: In function 'delete_char.part.1':
common/main.c:1167:1: warning: -fstack-usage not supported for this target [enabled by default]
  CC      common/command.o
common/command.c: In function 'find_cmd_tbl':
common/command.c:120:1: warning: -fstack-usage not supported for this target [enabled by default]




Best Regards
Masahiro Yamada



More information about the U-Boot mailing list