From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25276 invoked by alias); 19 Oct 2002 02:26:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25119 invoked by uid 71); 19 Oct 2002 02:26:02 -0000 Resent-Date: 19 Oct 2002 02:26:02 -0000 Resent-Message-ID: <20021019022602.25102.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, hiten@uk.FreeBSD.org Received: (qmail 23558 invoked by uid 61); 19 Oct 2002 02:19:46 -0000 Message-Id: <20021019021946.23554.qmail@sources.redhat.com> Date: Fri, 18 Oct 2002 19:26:00 -0000 From: hiten@uk.FreeBSD.org Reply-To: hiten@uk.FreeBSD.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/8282: GCC 3.1 crashes under bitshift operations X-SW-Source: 2002-10/txt/msg00734.txt.bz2 List-Id: >Number: 8282 >Category: c >Synopsis: GCC 3.1 crashes under bitshift operations >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Oct 18 19:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Hiten Pandya >Release: prerelease >Organization: >Environment: Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.1 [FreeBSD] 20020509 (prerelease) FreeBSD 5.0-CURRENT #1: Mon Jul 15 22:43:48 BST 2002 >Description: NB: I am not an expert in compilers whatsoever. When compiling the native version of the uuid library on FreeBSD 5.0, gcc crashes, and produces the following error: hpdi:~/work/uuid%> gcc -otest1 -luuid tst_uuid.c tst_uuid.c: In function `uuid_variant': tst_uuid.c:125: unrecognizable insn: (insn 14 12 16 (set (reg:QI 62) (const_int 32768 [0x8000])) -1 (nil) (nil)) tst_uuid.c:128: Internal compiler error in extract_insn, at recog.c:2132 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. uuid_variant(): --------------- static __inline int uuid_variant(struct uuid u) { uint16_t seq = u.clock_seq_low + u.clock_seq_hi_and_reserved; if ((seq << 0x8000) == 0) return UUID_TYPE_NCS; if ((seq << 0x4000) == 0) return UUID_TYPE_DCE; if ((seq << 0x2000) == 0) return UUID_TYPE_MS; return UUID_TYPE_OTHER; } tst_uuid.c:125, is just the end of the file. If this information is vague, and little, please, do not hesitate to contact me for more information. I am submitting a GCC related PR for the first time. Please accept my apologies for any errors. Cheers. -- Hiten Pandya -- hiten@uk.FreeBSD.org >How-To-Repeat: >Fix: Not applicable. >Release-Note: >Audit-Trail: >Unformatted: