https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97683
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-01-25 --- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to sandra from comment #2) > I'm pretty sure this is a gas bug. I used git bisect to track it down to > binutils commit ae9d2233e61a98ff8dba56be10219aa5306ffc9a which caused gcc to > start passing --gdwarf-5 on the gas command line. The DWARF-5 support was > present in gas before that and I think it's likely that's disagreeing with > something nios2-specific, perhaps mistakenly adding the size of the dwarf > directive data to the code length or something like that. The differences > in the .s file generated by GCC for the test case between that binutils > revision with --gdwarf-5 and the one before it without that option don't > seem to be significant. I opened: https://sourceware.org/bugzilla/show_bug.cgi?id=27243