This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch 0/6][AArch64-4.7] Fix warnings.
- From: James Greenhalgh <james dot greenhalgh at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: marcus dot shawcroft at arm dot com
- Date: Fri, 1 Feb 2013 17:42:29 +0000
- Subject: [Patch 0/6][AArch64-4.7] Fix warnings.
Hi,
This patch series fixes a number of warnings in the AArch64 port on
the aarch64-4.7-branch.
The warnings fixed are:
---
[AArch64-4.7] Fix warning - Initialise generic_tunings.
config/aarch64/aarch64.c:129:33: warning: uninitialised const âgeneric_tuningsâ is invalid in C++ [-Wc++-compat]
---
[AArch64-4.7] Fix warning - aarch64_add_constant mixed code and declarations.
config/aarch64/aarch64.c: In function âaarch64_add_constantâ:
config/aarch64/aarch64.c:2249:4: warning: ISO C90 forbids mixed declarations and code [-pedantic]
---
[AArch64-4.7] Fix warning - aarch64_legitimize_reload_address passes
the wrong type to push_reload.
config/aarch64/aarch64.c: In function âaarch64_legitimize_reload_addressâ:
config/aarch64/aarch64.c:3641:6: warning: enum conversion when passing argument 11 of âpush_reloadâ is invalid in C++ [-Wc++-compat]
---
[AArch64-4.7] Fix warning - aarch64_trampoline_init passes the wrong
type to emit_library_call.
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]
---
[AArch64-4.7] Fix warning - Mixed code and declarations in
aarch64_simd_const_bounds.
config/aarch64/aarch64.c: In function âaarch64_simd_const_boundsâ:
config/aarch64/aarch64.c:6412:3: warning: ISO C90 forbids mixed declarations and code [-pedantic]
---
[AArch64-4.7] Backport: Fix warning in aarch64.md
config/aarch64/aarch64.md:840: warning: source missing a mode?
---
The patch series as a whole has been regression tested against
aarch64-none-elf with no regressions.
Are these patches OK to commit to aarch64-4.7-branch?
Thanks,
James Greenhalgh
---
gcc/
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c (generic_tunings): Initialise.
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c
(aarch64_add_constant): Move declaration of 'shift' above code.
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c
(aarch64_legitimize_reload_address): Cast 'type' before
passing to push_reload.
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.
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c
(aarch64_simd_const_bounds): Move declaration of 'lane' above code.
2013-02-01 James Greenhalgh <james.greenhalgh@arm.com>
Backport from mainline.
2012-12-18 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.md (insv_imm<mode>): Add modes
for source operands.