Hi ,
I notice there is a trivial workaround for gcc bug.43949:
https://chromium.googlesource.com/v8/v8.git/+/refs/heads/main/src/execution/arm/simulator-arm.cc

int32_t Simulator::get_register(int reg) const {
DCHECK((reg >= 0) && (reg < num_registers));
// Stupid code added to avoid bug in GCC.
// See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43949
* if (reg >= num_registers) return 0;*
// End stupid code.
return registers_[reg] + ((reg == pc) ? Instruction::kPcLoadDelta : 0);
}

this compiler bug is marked as fixed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43949
Shall this workaround be removed? Is the bug actually fixed?

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/043adcbf-501c-4aaf-afbd-8df419f2c7den%40googlegroups.com.

Reply via email to