gcc 4.8 and 4.9 fail to compile pxe_call.c with the error "bp cannot be used in asm here". Other points in the codebase which use "ebp" in the asm clobber list do not seem to be affected. Unfortunately gcc provides no way to specify %ebp as an output register, so we cannot use this as a workaround. The only viable solution is to explicitly push/pop %ebp within the asm itself. This is ugly for two reasons: firstly, it may be unnecessary; secondly, it may cause gcc to generate invalid %esp-relative addresses if the asm happens to use memory operands. This specific block of asm uses no memory operands and so will not generate invalid code. Reported-by: Daniel P. Berrange <berrange@redhat.com> Reported-by: Christian Hesse <list@eworm.de> Originally-fixed-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
271 |
|
271 |
|
272 |
|
272 |
|
273 |
|
273 |
|
274 |
|
|
|
|
274 |
|
|
|
275 |
|
|
275 |
|
276 |
|
276 |
|
277 |
|
277 |
|
278 |
|
278 |
|
279 |
|
279 |
|
|
|
|
280 |
|
|
|
281 |
|
|
280 |
|
282 |
|
281 |
|
283 |
|
282 |
|
284 |
|
|
|
||
284 |
|
286 |
|
285 |
|
287 |
|
286 |
|
288 |
|
287 |
|
|
|
|
289 |
|
|
288 |
|
290 |
|
289 |
|
291 |
|
290 |
|
292 |
|