public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range
@ 2021-10-05  8:13 bunk at stusta dot de
  2021-10-05  8:14 ` [Bug target/102602] " bunk at stusta dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bunk at stusta dot de @ 2021-10-05  8:13 UTC (permalink / raw)
  To: gcc-bugs

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/102602] [10/11/12 Regression] 32bit mips: Error: branch out of range
  2021-10-05  8:13 [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range bunk at stusta dot de
@ 2021-10-05  8:14 ` bunk at stusta dot de
  2021-10-05 12:20 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bunk at stusta dot de @ 2021-10-05  8:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602

--- Comment #1 from Adrian Bunk <bunk at stusta dot de> ---
Created attachment 51553
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51553&action=edit
Generated assembler

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/102602] [10/11/12 Regression] 32bit mips: Error: branch out of range
  2021-10-05  8:13 [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range bunk at stusta dot de
  2021-10-05  8:14 ` [Bug target/102602] " bunk at stusta dot de
@ 2021-10-05 12:20 ` rguenth at gcc dot gnu.org
  2021-10-17 20:23 ` [Bug target/102602] " pinskia at gcc dot gnu.org
  2021-10-17 20:32 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-05 12:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Target|                            |mips
   Target Milestone|---                         |10.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/102602] 32bit mips: Error: branch out of range
  2021-10-05  8:13 [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range bunk at stusta dot de
  2021-10-05  8:14 ` [Bug target/102602] " bunk at stusta dot de
  2021-10-05 12:20 ` rguenth at gcc dot gnu.org
@ 2021-10-17 20:23 ` pinskia at gcc dot gnu.org
  2021-10-17 20:32 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-17 20:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11/12 Regression] 32bit |32bit mips: Error: branch
                   |mips: Error: branch out of  |out of range
                   |range                       |
   Target Milestone|10.4                        |---

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> /tmp/ccecXwRM.s:4908: Error: branch out of range

The function is huge so I really doubt that this is a regression either.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/102602] 32bit mips: Error: branch out of range
  2021-10-05  8:13 [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range bunk at stusta dot de
                   ` (2 preceding siblings ...)
  2021-10-17 20:23 ` [Bug target/102602] " pinskia at gcc dot gnu.org
@ 2021-10-17 20:32 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-17 20:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likley exposed by r10-9646 which introduced more inlining or rather fixing
an inlining issue which was broken in the GCC 10 series.
This most likely was broken in GCC 9 too.

The function is really just huge.  I really doubt there is much to be done.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-17 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05  8:13 [Bug target/102602] New: [10/11/12 Regression] 32bit mips: Error: branch out of range bunk at stusta dot de
2021-10-05  8:14 ` [Bug target/102602] " bunk at stusta dot de
2021-10-05 12:20 ` rguenth at gcc dot gnu.org
2021-10-17 20:23 ` [Bug target/102602] " pinskia at gcc dot gnu.org
2021-10-17 20:32 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).