]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Add if condition in aarch64_function_value [PR96479]
authorPeixin Qiao <qiaopeixin@huawei.com>
Wed, 12 Aug 2020 16:11:41 +0000 (17:11 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 18:08:05 +0000 (15:08 -0300)
commitc448b45c1d53e8b2a9903cc3df1dcb461e7d94e0
treed0e8e9f6356cd4ca746ec9a4bc8e1fbf92683af4
parent3a839318a240e36629b7128bd9fbf6dd762c8c0f
AArch64: Add if condition in aarch64_function_value [PR96479]

Report diagnostic information instead of ICE if it generats fp/simd for
return register when fp/simd is disabled by -mgeneral-regs-only.

gcc/ChangeLog:

* config/aarch64/aarch64.c (aarch64_function_value): Add if
condition to check ag_mode after entering if condition of
aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
set as false by -mgeneral-regs-only, report the diagnostic
information of -mgeneral-regs-only imcompatible with the use
of fp/simd register(s).

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/mgeneral-regs_1.c: Add the comment that
-mgeneral-regs-only is compatible with the use of vector type
used in the test case.
gcc/config/aarch64/aarch64.c
gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c