Hi, The original patch had a missing declaration of micromips_globals in mips.h that appears to be the cause of segmentation faults when building mips-mti-linux-gnu. I didn't get any failures just before the submission neither on mips-img-linux-gnu nor mips64el-linux-gnu and the test case is too trivial to trigger the ICE.
Below is the missing line. With this change mips-mti-linux-gnu builds fine. The trunk is unstable and needed another patch from PR66181 to build Glibc. Ok to commit? > We could add -mflip-micromips complementing -mflip-mips16 and use that > for testing too. Chances are it'd reveal further issues. Looking at how > -mflip-mips16 has been implemented it does not appear to me adding > -mflip-micromips would be a lot of effort. I'm in favour of adding such a switch since the testsuite doesn't cover a mixture of MIPS and microMIPS code. Regards, Robert gcc/ * config/mips/mips.h (micromips_globals): Declare. --- gcc/config/mips/mips.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 0ea4e6d..85c8a97 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -3108,6 +3108,7 @@ extern const struct mips_cpu_info *mips_arch_info; extern const struct mips_cpu_info *mips_tune_info; extern unsigned int mips_base_compression_flags; extern GTY(()) struct target_globals *mips16_globals; +extern GTY(()) struct target_globals *micromips_globals; #endif /* Enable querying of DFA units. */ -- 2.2.2