https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121432
Romain Naour <romain.naour at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |romain.naour at gmail dot com
--- Comment #10 from Romain Naour <romain.naour at gmail dot com> ---
Hello,
Some architectures (aarch64 and x86) defines hooks for callee-save [1].
Just for testing, I added a new hook for callee-save on microblaze and
return 1 (like [2]) to restore the old behaviour prior to the commit [3].
gcc/config/microblaze/microblaze.cc:
/* Implement TARGET_CALLEE_SAVE_COST. */
static int
microblaze_callee_save_cost (spill_cost_type, unsigned int hard_regno,
machine_mode,
unsigned int, int mem_cost, const HARD_REG_SET &, bool)
{
return 1;
}
#undef TARGET_CALLEE_SAVE_COST
#define TARGET_CALLEE_SAVE_COST microblaze_callee_save_cost
With that the system boot correctly.
This is probably not the correct fix... I hope it help.
[1]
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b191e8bdecf881d11c1544c441e38f4c18392a15
[2]
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/i386/i386.cc;h=3128973ba79cccfc6761f451dcb716b9558cc4da;hb=d3ff498c478acefce35de04402f99171b4f64a1a#l20606
[3]
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b
Best regards,
Romain