This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/8282: GCC 3.1 crashes under bitshift operations


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]