From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125275 invoked by alias); 19 May 2019 12:22:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 125267 invoked by uid 89); 19 May 2019 12:22:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:CAOyqgc, H*i:sk:CAOyqgc, Key, H*i:sk:w@mail. X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 19 May 2019 12:22:29 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 456Lkq2Sj8z1rZS1; Sun, 19 May 2019 14:22:22 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 456Lkk2jd0z1qqkq; Sun, 19 May 2019 14:22:22 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id E91s2TAFJ_UR; Sun, 19 May 2019 14:22:19 +0200 (CEST) Received: from igel.home (ppp-46-244-171-24.dynamic.mnet-online.de [46.244.171.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 19 May 2019 14:22:19 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 1276F2C1199; Sun, 19 May 2019 14:22:19 +0200 (CEST) From: Andreas Schwab To: Ian Lance Taylor Cc: gcc-patches , gofrontend-dev Subject: Re: Go patch committed: Intrinsify runtime/internal/atomic functions References: X-Yow: "THE LITTLE PINK FLESH SISTERS," I saw them at th' FLUORESCENT BULB MAKERS CONVENTION... Date: Sun, 19 May 2019 12:22:00 -0000 In-Reply-To: (Ian Lance Taylor's message of "Thu, 16 May 2019 17:21:22 -0700") Message-ID: <87a7fibpms.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-05/txt/msg01151.txt.bz2 I'm getting this crash on riscv: /daten/riscv64/gcc/gcc-20190518/Build/./gcc/gccgo -B/daten/riscv64/gcc/gcc-= 20190518/Build/./gcc/ -B/usr/riscv64-suse-linux/bin/ -B/usr/riscv64-suse-li= nux/lib/ -isystem /usr/riscv64-suse-linux/include -isystem /usr/riscv64-sus= e-linux/sys-include -O2 -g -I . -c -fgo-pkgpath=3Druntime -fgo-c-header=3Dr= untime.inc.raw -fgo-compiling-runtime ../../../libgo/go/runtime/alg.go ../.= ./../libgo/go/runtime/atomic_pointer.go ../../../libgo/go/runtime/cgo_gccgo= .go ../../../libgo/go/runtime/cgocall.go ../../../libgo/go/runtime/cgocheck= .go ../../../libgo/go/runtime/chan.go ../../../libgo/go/runtime/compiler.go= ../../../libgo/go/runtime/cpuprof.go ../../../libgo/go/runtime/cputicks.go= ../../../libgo/go/runtime/debug.go ../../../libgo/go/runtime/env_posix.go = ../../../libgo/go/runtime/error.go ../../../libgo/go/runtime/extern.go ../.= ./../libgo/go/runtime/fastlog2.go ../../../libgo/go/runtime/fastlog2table.g= o ../../../libgo/go/runtime/ffi.go ../../../libgo/go/runtime/float.go ../..= /../libgo/go/runtime/hash64.go ../../../libgo/go/runtime/heapdump.go ../../= ../libgo/go/runtime/iface.go ../../../libgo/go/runtime/lfstack.go ../../../= libgo/go/runtime/lfstack_64bit.go ../../../libgo/go/runtime/lock_futex.go .= ./../../libgo/go/runtime/malloc.go ../../../libgo/go/runtime/map.go ../../.= ./libgo/go/runtime/map_fast32.go ../../../libgo/go/runtime/map_fast64.go ..= /../../libgo/go/runtime/map_faststr.go ../../../libgo/go/runtime/mbarrier.g= o ../../../libgo/go/runtime/mbitmap.go ../../../libgo/go/runtime/mcache.go = ../../../libgo/go/runtime/mcentral.go ../../../libgo/go/runtime/mem_gccgo.g= o ../../../libgo/go/runtime/mfinal.go ../../../libgo/go/runtime/mfixalloc.g= o ../../../libgo/go/runtime/mgc.go ../../../libgo/go/runtime/mgc_gccgo.go .= ./../../libgo/go/runtime/mgclarge.go ../../../libgo/go/runtime/mgcmark.go .= ./../../libgo/go/runtime/mgcsweep.go ../../../libgo/go/runtime/mgcsweepbuf.= go ../../../libgo/go/runtime/mgcwork.go ../../../libgo/go/runtime/mheap.go = ../../../libgo/go/runtime/mprof.go ../../../libgo/go/runtime/msan0.go ../..= /../libgo/go/runtime/msize.go ../../../libgo/go/runtime/mstats.go ../../../= libgo/go/runtime/mwbbuf.go ../../../libgo/go/runtime/netpoll.go ../../../li= bgo/go/runtime/netpoll_epoll.go ../../../libgo/go/runtime/os_gccgo.go ../..= /../libgo/go/runtime/os_linux.go ../../../libgo/go/runtime/os_linux_noauxv.= go ../../../libgo/go/runtime/panic.go ../../../libgo/go/runtime/print.go ..= /../../libgo/go/runtime/proc.go ../../../libgo/go/runtime/profbuf.go ../../= ../libgo/go/runtime/proflabel.go ../../../libgo/go/runtime/race0.go ../../.= ./libgo/go/runtime/rdebug.go ../../../libgo/go/runtime/relax_stub.go ../../= ../libgo/go/runtime/runtime.go ../../../libgo/go/runtime/runtime1.go ../../= ../libgo/go/runtime/runtime2.go ../../../libgo/go/runtime/rwmutex.go ../../= ../libgo/go/runtime/select.go ../../../libgo/go/runtime/sema.go ../../../li= bgo/go/runtime/signal_gccgo.go ../../../libgo/go/runtime/signal_sighandler.= go ../../../libgo/go/runtime/signal_unix.go ../../../libgo/go/runtime/sigqu= eue.go ../../../libgo/go/runtime/sizeclasses.go ../../../libgo/go/runtime/s= lice.go ../../../libgo/go/runtime/string.go ../../../libgo/go/runtime/stubs= .go ../../../libgo/go/runtime/stubs2.go ../../../libgo/go/runtime/stubs3.go= ../../../libgo/go/runtime/stubs_linux.go ../../../libgo/go/runtime/symtab.= go ../../../libgo/go/runtime/time.go ../../../libgo/go/runtime/timestub.go = ../../../libgo/go/runtime/timestub2.go ../../../libgo/go/runtime/trace.go .= ./../../libgo/go/runtime/traceback_gccgo.go ../../../libgo/go/runtime/type.= go ../../../libgo/go/runtime/typekind.go ../../../libgo/go/runtime/unaligne= d1.go ../../../libgo/go/runtime/utf8.go ../../../libgo/go/runtime/write_err= .go runtime_sysinfo.go sigtab.go -fPIC -o .libs/runtime.o during RTL pass: expand ../../../libgo/go/runtime/mbitmap.go: In function =E2=80=98runtime.setMarke= d.runtime.markBits=E2=80=99: ../../../libgo/go/runtime/mbitmap.go:291:9: internal compiler error: Segmen= tation fault 291 | atomic.Or8(m.bytep, m.mask) | ^ 0x6a02b7 crash_signal ../../gcc/toplev.c:326 0x917cf6 get_callee_fndecl(tree_node const*) ../../gcc/tree.c:9570 0x2c2e6b expand_call(tree_node*, rtx_def*, int) ../../gcc/calls.c:3364 0x2aa3e9 expand_builtin_atomic_fetch_op ../../gcc/builtins.c:6541 0x2b5981 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/builtins.c:8220 0x3bdfef expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modi= fier, rtx_def**, bool) ../../gcc/expr.c:11030 0x2d4ee5 expand_expr ../../gcc/expr.h:279 0x2d4ee5 expand_call_stmt ../../gcc/cfgexpand.c:2724 0x2d4ee5 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3700 0x2d5847 expand_gimple_stmt ../../gcc/cfgexpand.c:3859 0x2da083 expand_gimple_basic_block ../../gcc/cfgexpand.c:5895 0x2dbff3 execute ../../gcc/cfgexpand.c:6518 Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."