https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97683
Bug ID: 97683 Summary: [11 Regression] nios2 assembler branch offset errors building glibc Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jsm28 at gcc dot gnu.org CC: cltang at gcc dot gnu.org, sandra at gcc dot gnu.org Target Milestone: --- Target: nios2-*-* Created attachment 49489 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49489&action=edit preprocessed source Building glibc for nios2-linux-gnu produces a long series of errors of the form: /tmp/ccwdG18R.s: Assembler messages: /tmp/ccwdG18R.s:4291: Error: branch offset 38052 out of range -32768 to 32767 Compile the attached preprocessed source with: -c -fpic -g -O2 (note, -g is for some reason required for the errors to appear). I don't know quite when this appeared because the glibc build with GCC mainline was broken for a while with architecture-independent issues.