unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Law via Libc-alpha <libc-alpha@sourceware.org>
To: Lukasz Majewski <lukma@denx.de>
Cc: "libc-help@sourceware.org" <libc-help@sourceware.org>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: Question regarding m68k GCC compiler error
Date: Thu, 13 Aug 2020 09:28:36 -0600	[thread overview]
Message-ID: <02a1d2e427f029190d7dd02a830e05d2ecb1982a.camel@redhat.com> (raw)
In-Reply-To: <20200813100422.7c66f99b@jawa>

On Thu, 2020-08-13 at 10:04 +0200, Lukasz Majewski wrote:
> Hi Jeff,
> 
> > On Wed, 2020-08-12 at 15:43 +0200, Lukasz Majewski wrote:
> > > Dear Community,
> > > 
> > > During development of following patch [1]
> > > I've triggered some interesting error on m68k port:
> > > 
> > > pthread_cond_wait.c: In function
> > > \342\200\230__pthread_cond_wait_common\342\200\231:
> > > pthread_cond_wait.c:629:1: error: unable to find a register to
> > > spill in class \342\200\230DATA_REGS\342\200\231
> > >   629 | }
> > >       | ^
> > > pthread_cond_wait.c:629:1: error: this is the insn:
> > > (jump_insn 485 484 486 27 (parallel [
> > >             (set (pc)
> > >                 (if_then_else (eq (reg:DI 80 [ _123 ])
> > >                         (reg:DI 142 [ s+-4 ]))
> > >                     (label_ref 530)
> > >                     (pc)))
> > >             (clobber (scratch:DI))
> > >             (clobber (scratch:SI))
> > >         ]) "../sysdeps/nptl/futex-internal.h":552:10 5
> > > {cbranchdi4_insn} (expr_list:REG_DEAD (reg:DI 142 [ s+-4 ])
> > >         (int_list:REG_BR_PROB 536870916 (nil)))  
> > >  -> 530)  
> > > pthread_cond_wait.c:629: confused by earlier errors, bailing out
> > > 
> > > 
> > > This error only happens on:
> > > 
> > > glibcs-m68k-linux-gnu
> > > glibcs-m68k-linux-gnu-coldfire
> > > glibcs-m68k-linux-gnu-coldfire-soft
> > > 
> > > Used gcc:
> > > gcc version 10.2.1 20200810 [releases/gcc-10 revision
> > > f098bc87dca:780e3a9fbae:b5cc5c95664347082100a504710f5ca0467306a5]
> > > (GCC)
> > > 
> > > After poking around it looks like this may be an internal gcc error.
> > > 
> > > How to reproduce:
> > > 1. Please use branch [2]
> > > 2. ../src/scripts/build-many-glibcs.py
> > > /home/lukma/work/glibc/glibc-many-build --keep failed glibcs
> > > m68k-linux-gnu m68k-linux-gnu-coldfire
> > > 
> > > 
> > > 
> > > Before I submit a GCC bug - has anybody encountered any similar
> > > issue recently for this port?  
> > Nope, haven't seen this.
> > 
> > As Florian noted, this could be a problem with simply using too many
> > registers,
> 
> Ok.
> 
> > but we can't know without a self-contained testcase.
> 
> Could you be more specific about above statement? Aren't the above
> reproduction steps enough?
You're not likely to get enough upstream attention to this issue by requiring
folsk to check out your github bits.

The CPP output and command line are what we'd need.  You can get the former by
adding -save-temps to the command line which will create a .i file which is the
CPP output.  The command line you can just cut-n-paste.

jeff
> 


      reply	other threads:[~2020-08-13 15:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12 13:43 Question regarding m68k GCC compiler error Lukasz Majewski
2020-08-12 14:15 ` Florian Weimer
2020-08-13  8:02   ` Lukasz Majewski
2020-08-13 15:27     ` Jeff Law via Libc-alpha
2020-08-12 14:48 ` Jeff Law via Libc-alpha
2020-08-13  8:04   ` Lukasz Majewski
2020-08-13 15:28     ` Jeff Law via Libc-alpha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02a1d2e427f029190d7dd02a830e05d2ecb1982a.camel@redhat.com \
    --to=libc-alpha@sourceware.org \
    --cc=law@redhat.com \
    --cc=libc-help@sourceware.org \
    --cc=lukma@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).