From owner-freebsd-questions@FreeBSD.ORG Thu Jul 17 22:34:04 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3C934FC for ; Thu, 17 Jul 2014 22:34:03 +0000 (UTC) Received: from shell.gmplib.org (servus.gmplib.org [193.10.5.126]) by mx1.freebsd.org (Postfix) with ESMTP id BCED228DD for ; Thu, 17 Jul 2014 22:34:03 +0000 (UTC) Received: by shell.gmplib.org (Postfix, from userid 1001) id DC83B17478; Fri, 18 Jul 2014 00:24:00 +0200 (CEST) To: freebsd-questions@freebsd.org Subject: Bug report From: tg@gmplib.org (=?utf-8?Q?Torbj=C3=B6rn?= Granlund) Sender: tg@gmplib.org Date: Fri, 18 Jul 2014 00:24:00 +0200 Message-ID: <867g3bvd33.fsf@shell.gmplib.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 22:34:04 -0000 I was about to file another FreeBSD bug report, but alas, this is no longer possible without an "account". I cannot cope with registering "accounts" for every possible piece of software where I struggle with bugs. I try sending it here instead. If it is ignored, too bad. (It would then be in good company of many other FreeBSD bug reports.) This bug prevents current GMP to be compiled on i386 FreeBSD systems. Problem: Compiler ICE Release 9.2 and 9.3 (at least) Test case (foo.c): typedef unsigned long int limb_t; typedef limb_t *ptr; typedef long int size_t; limb_t sub_1 (ptr, ptr, size_t, limb_t); void *alloc (size_t); void foo (ptr rp, ptr up, size_t un) { __builtin_expect (un <=3D 0x7f00, 1) ? __builtin_alloca (un) : alloc (un); if (__builtin_clzl (up[un]) + 1) { sub_1 (rp, up, un, 1); while (un > 0) { if (rp[un - 1] !=3D 0) break; (un)--; } } } How-to-repeat: /usr/bin/gcc -m32 -O2 -march=3Damdfam10 foo.c Result: bug-fbsdgcc.c: In function 'foo': bug-fbsdgcc.c:22: internal compiler error: in memory_address_length, at c= onfig/i386/i386.c:13897 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. (I do not report this to the gcc folks in spite of being urged since this gcc apparently was hacked by fbsd.) Torbj=C3=B6rn Please encrypt, key id 0xC8601622