[PATCH 4/6] [AArch64-4.7] Fix warning - aarch64_trampoline_init passes the wrong type to emit_library_call.
James Greenhalgh
james.greenhalgh@arm.com
Fri Feb 1 17:44:00 GMT 2013
Hi,
emit_library_call takes an `enum library_type` as its second argument.
Currently aarch64-4.7-branch passes it an int 0.
This patch fixes this, mirroring trunk, by passing LCT_NORMAL instead.
This patch fixes the warning:
config/aarch64/aarch64.c: In function ‘aarch64_trampoline_init’:
config/aarch64/aarch64.c:3893:8: warning: enum conversion when passing argument 2 of ‘emit_library_call’ is invalid in C++ [-Wc++-compat]
Regression tested on aarch64-none-elf with no regressions.
OK for aarch64-4.7-branch?
Thanks,
James
---
gcc/
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c
(aarch64_trampoline_init): Pass 'LCT_NORMAL' rather than '0'
to emit_library_call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-AArch64-4.7-Fix-warning-aarch64_trampoline_init-pass.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130201/23a9a69d/attachment.bin>
More information about the Gcc-patches
mailing list