public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float
@ 2021-11-22 23:36 jsm28 at gcc dot gnu.org
  2021-11-22 23:43 ` [Bug target/103370] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2021-11-22 23:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103370
           Summary: [12 Regression] Assembler error building glibc for
                    ColdFire soft-float
           Product: gcc
           Version: 12.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: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: m68k*-*-*

Created attachment 51849
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51849&action=edit
preprocessed source

Compile and assemble the attached preprocessed source (from glibc) with -O2
-fPIC -c, using a compiler configured for m68k-linux-gnu --with-arch=cf
--with-cpu=54455 --disable-multilib (this is m68k-linux-gnu-coldfire-soft in
build-many-glibcs.py).  This produces an assembler error:

/tmp/cctaeK7A.s: Assembler messages:
/tmp/cctaeK7A.s: Fatal error: Tried to convert PC relative branch to absolute
jump

This appeared with

commit 045206450386bcd774db3bde0c696828402361c6
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Nov 12 10:21:22 2021 +0100

    tree-optimization/102880 - improve CD-DCE

though I'm guessing it was most likely to have been latent before then.

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
@ 2021-11-22 23:43 ` pinskia at gcc dot gnu.org
  2021-11-22 23:49 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-22 23:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
  if (!HAVE_LONG_BRANCH (current_architecture))
    {
      if (flag_keep_pcrel)
        as_fatal (_("Tried to convert PC relative branch to absolute jump"));


#define HAVE_LONG_BRANCH(x)     \
        ((x) & (m68020|m68030|m68040|m68060|cpu32|fido_a|mcfisa_b))

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
  2021-11-22 23:43 ` [Bug target/103370] " pinskia at gcc dot gnu.org
@ 2021-11-22 23:49 ` pinskia at gcc dot gnu.org
  2021-11-23  7:37 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-22 23:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
    case OPTION_PCREL:          /* --pcrel means never turn PC-relative
                                   branches into absolute jumps.  */
      flag_keep_pcrel = 1;
      break;


--pcrel is passed to the assembler for -fPIC/-fpic code.

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
  2021-11-22 23:43 ` [Bug target/103370] " pinskia at gcc dot gnu.org
  2021-11-22 23:49 ` pinskia at gcc dot gnu.org
@ 2021-11-23  7:37 ` rguenth at gcc dot gnu.org
  2021-11-23  9:38 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-23  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-11-23  7:37 ` rguenth at gcc dot gnu.org
@ 2021-11-23  9:38 ` marxin at gcc dot gnu.org
  2021-12-07 21:19 ` jsm28 at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-23  9:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 51857
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51857&action=edit
Reduced test-case

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-11-23  9:38 ` marxin at gcc dot gnu.org
@ 2021-12-07 21:19 ` jsm28 at gcc dot gnu.org
  2022-01-03  7:51 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2021-12-07 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
It seems this glibc build failure disappeared between commit
b880d1514c1e3dd75a6ea311a5cc956742bd713c and commit
8e836af61b7027c0819da62c12a8d18b7c46f3fc.  (Not verified that the GCC change
was what's relevant - my bot updated other components as well - but it looks
plausible.)

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

* [Bug target/103370] [12 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-12-07 21:19 ` jsm28 at gcc dot gnu.org
@ 2022-01-03  7:51 ` rguenth at gcc dot gnu.org
  2022-05-06  8:31 ` [Bug target/103370] [12/13 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-03  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
The issue likely has gone latent.  m68k is not primary/secondary.

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

* [Bug target/103370] [12/13 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2022-01-03  7:51 ` rguenth at gcc dot gnu.org
@ 2022-05-06  8:31 ` jakub at gcc dot gnu.org
  2023-02-16 18:14 ` jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |12.2

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 12.1 is being released, retargeting bugs to GCC 12.2.

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

* [Bug target/103370] [12/13 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2022-05-06  8:31 ` [Bug target/103370] [12/13 " jakub at gcc dot gnu.org
@ 2023-02-16 18:14 ` jsm28 at gcc dot gnu.org
  2023-05-08 12:23 ` [Bug target/103370] [12/13/14 " rguenth at gcc dot gnu.org
  2024-01-02 14:11 ` fw at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2023-02-16 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
The glibc build failure has done away and come back at least once since my
previous comment. It came back (I think the most recent time) with

commit 4fa25a7eb322f0a003c1eb15680c71ece345e01e
Author:     Martin Liska <mliska@suse.cz>
AuthorDate: Mon Jan 24 15:45:38 2022 +0100
Commit:     Martin Liska <mliska@suse.cz>
CommitDate: Wed Nov 30 14:03:43 2022 +0100

    Improve profile handling in switch lowering.

            PR tree-optimization/101301
            PR tree-optimization/103680

though that's almost surely just exposing a back-end bug. However, the reduced
test here gave a different assembler error

/tmp/cc40cNSh.s: Assembler messages:
/tmp/cc40cNSh.s:320: Error: syntax error -- statement `lea
(.LC0@GOT+3,%a5),%a0' ignored
/tmp/cc40cNSh.s:328: Error: syntax error -- statement `lea
(.LC1@GOT+3,%a5),%a2' ignored

both before and after that commit (different register numbers and .s line
numbers before versus after). Despite the different error messages from the
reduced test and building glibc, they are still likely to be the same bug in
the m68k back end.

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

* [Bug target/103370] [12/13/14 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2023-02-16 18:14 ` jsm28 at gcc dot gnu.org
@ 2023-05-08 12:23 ` rguenth at gcc dot gnu.org
  2024-01-02 14:11 ` fw at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

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

* [Bug target/103370] [12/13/14 Regression] Assembler error building glibc for ColdFire soft-float
  2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2023-05-08 12:23 ` [Bug target/103370] [12/13/14 " rguenth at gcc dot gnu.org
@ 2024-01-02 14:11 ` fw at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: fw at gcc dot gnu.org @ 2024-01-02 14:11 UTC (permalink / raw)
  To: gcc-bugs

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

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at gcc dot gnu.org

--- Comment #11 from Florian Weimer <fw at gcc dot gnu.org> ---
*** Bug 110627 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2024-01-02 14:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 23:36 [Bug target/103370] New: [12 Regression] Assembler error building glibc for ColdFire soft-float jsm28 at gcc dot gnu.org
2021-11-22 23:43 ` [Bug target/103370] " pinskia at gcc dot gnu.org
2021-11-22 23:49 ` pinskia at gcc dot gnu.org
2021-11-23  7:37 ` rguenth at gcc dot gnu.org
2021-11-23  9:38 ` marxin at gcc dot gnu.org
2021-12-07 21:19 ` jsm28 at gcc dot gnu.org
2022-01-03  7:51 ` rguenth at gcc dot gnu.org
2022-05-06  8:31 ` [Bug target/103370] [12/13 " jakub at gcc dot gnu.org
2023-02-16 18:14 ` jsm28 at gcc dot gnu.org
2023-05-08 12:23 ` [Bug target/103370] [12/13/14 " rguenth at gcc dot gnu.org
2024-01-02 14:11 ` fw 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).