iPXE - Open Source Boot Firmware

[build] Work around bug in gcc >= 4.8
authorMichael Brown <mcb30@ipxe.org>
Wed, 25 Sep 2013 11:55:46 +0000 (12:55 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 25 Sep 2013 11:55:46 +0000 (12:55 +0100)
commitcba22d36b77da53890bd65fdadd0e63925687af0
tree340339fb8c8ccebd66638abb22a7b2d6db751bb5
parenta9fa0d5f2bd5254464f63a7312857fcec83bf37f
[build] Work around bug in gcc >= 4.8

Commit 238050d ("[build] Work around bug in gcc >= 4.8") works around
one instance of a bug in recent versions of gcc, in which "ebp" cannot
be specified within an asm clobber list.

Some versions of gcc seem to exhibit the same bug on other points in
the codebase.  Fix by changing all instances of "ebp" in a clobber
list to use the push/pop %ebp workaround instead.

Originally-implemented-by: Víctor Román Archidona <contacto@victor-roman.es>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/drivers/net/undiload.c
src/arch/i386/firmware/pcbios/bios_console.c
src/arch/i386/image/bootsector.c
src/arch/i386/image/elfboot.c
src/arch/i386/image/nbi.c
src/arch/i386/interface/pxeparent/pxeparent.c