https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602
Bug ID: 102602
Summary: [10/11/12 Regression] 32bit mips: Error: branch out of
range
Product: gcc
Version: 10.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: bunk at stusta dot de
Target Milestone: ---
Created attachment 51552
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51552&action=edit
Preprocessed sources
With a command like
/usr/lib/gcc/mipsel-linux-gnu/10/cc1plus -fpreprocessed Options.ii -mel -quiet
-dumpbase Options.ii -march=mips32r2 -auxbase Options -O2 -version -o
/tmp/cccmq2Yu.s
the attached file from a failed build of https://tracker.debian.org/pkg/kstars
generates code the assembler rejects.
$ g++-10 -c -O2 Options.ii
/tmp/ccecXwRM.s: Assembler messages:
/tmp/ccecXwRM.s:4908: Error: branch out of range
/tmp/ccecXwRM.s:54845: Error: branch out of range
/tmp/ccecXwRM.s:54868: Error: branch out of range
$
For working and known broken gcc versions, Debian revisions and date they were
taken from the upstream branch are:
Working:
10.2.1-6 (git 20210110 from the gcc-10 branch)
Broken:
10.3.0-11 (git 20210918 from the gcc-10 branch)
11.2.0-8 (git 20210924 from the gcc-11 branch)
20210909-1 (git 20210918 from master)