This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/8282: GCC 3.1 crashes under bitshift operations
- From: hiten at uk dot FreeBSD dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Oct 2002 02:19:46 -0000
- Subject: c/8282: GCC 3.1 crashes under bitshift operations
- Reply-to: hiten at uk dot FreeBSD dot org
>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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: