From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5518D1F66E for ; Wed, 12 Aug 2020 14:48:59 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3AA91386197A; Wed, 12 Aug 2020 14:48:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AA91386197A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1597243736; bh=3LsIqFaqRELp2arDvEOEyyi3mx89g5BjogTxXiUbqHA=; h=Subject:To:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=DaNgfM5xGMfunNeyk4UqxCda+a+gKMZ9qTWMoLNupGjbG93Gv12lQB11Dt7RNP6cc XiTp3X7cBEkswECM/ieKNuT6Vrm1S8hcRPG4xz8FBl89ac1AnjUuboRXF4gJlKmySQ e55JOZbzyTipmAdqvR1I0Fv5Gv9OppiIFABgb2Mc= Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by sourceware.org (Postfix) with ESMTP id 3CECF38618A8 for ; Wed, 12 Aug 2020 14:48:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3CECF38618A8 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-328-ldDxRnuCPQeqWY4HZz5-wQ-1; Wed, 12 Aug 2020 10:48:50 -0400 X-MC-Unique: ldDxRnuCPQeqWY4HZz5-wQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1DA3C1008301; Wed, 12 Aug 2020 14:48:49 +0000 (UTC) Received: from ovpn-112-40.phx2.redhat.com (ovpn-112-40.phx2.redhat.com [10.3.112.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id B5918610F2; Wed, 12 Aug 2020 14:48:48 +0000 (UTC) Message-ID: <51b1a36c80d6c7f75c0ebca13f50b01535ead17c.camel@redhat.com> Subject: Re: Question regarding m68k GCC compiler error To: Lukasz Majewski , GNU C Library , "libc-help@sourceware.org" Date: Wed, 12 Aug 2020 08:48:48 -0600 In-Reply-To: <20200812154353.6ec24f81@jawa> References: <20200812154353.6ec24f81@jawa> Organization: Red Hat User-Agent: Evolution 3.36.4 (3.36.4-1.fc32) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeff Law via Libc-alpha Reply-To: law@redhat.com Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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, but we can't know without a self-contained testcase. jeff >