https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125861
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu.org,
| |rdapp at gcc dot gnu.org
Blocks| |120763
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Seeing basically the same thing on RISC-V with spec2017 502.gcc.
Compile with -O2 -march=rv64gcbv_zicond -mabi=lp64d:
char const_fixed_from_fixed_value_value[];
int const_fixed_from_fixed_value_i, const_fixed_from_fixed_value_num_elem;
long const_fixed_from_fixed_value_f_0_0;
void const_fixed_from_fixed_value() {
enum { max_bitsize, value_bit } elem;
int elem_bitsize;
for (; const_fixed_from_fixed_value_num_elem; elem++) {
char *vp;
unsigned byte = elem * elem_bitsize;
vp = const_fixed_from_fixed_value_value + byte;
const_fixed_from_fixed_value_i = 0;
for (; const_fixed_from_fixed_value_i < 8;
const_fixed_from_fixed_value_i += value_bit)
const_fixed_from_fixed_value_f_0_0 |= *vp++;
const_fixed_from_fixed_value();
}
}
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120763
[Bug 120763] [meta-bug] Tracker for bugs to visit during weekly RISC-V meeting