public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8282: GCC 3.1 crashes under bitshift operations
@ 2002-10-18 19:26 hiten
  0 siblings, 0 replies; 3+ messages in thread
From: hiten @ 2002-10-18 19:26 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/8282: GCC 3.1 crashes under bitshift operations
@ 2003-01-06 19:17 ebotcazou
  0 siblings, 0 replies; 3+ messages in thread
From: ebotcazou @ 2003-01-06 19:17 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, hiten, paolo

Synopsis: GCC 3.1 crashes under bitshift operations

State-Changed-From-To: feedback->closed
State-Changed-By: ebotcazou
State-Changed-When: Mon Jan  6 11:17:03 2003
State-Changed-Why:
    2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
    
    	PR c/8588
    	* optabs.c (expand_binop): Convert CONST_INTs in shift
    	operations too.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8282


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/8282: GCC 3.1 crashes under bitshift operations
@ 2002-10-19  2:49 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-10-19  2:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, hiten, nobody, paolo

Synopsis: GCC 3.1 crashes under bitshift operations

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sat Oct 19 02:49:13 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Sat Oct 19 02:49:13 2002
State-Changed-Why:
    Hi. Could you please follow the detailed bug reporting
    instructions: http://gcc.gnu.org/bugs.html#detailed ??
    In particular, could you please provide the self-contained
    preprocessed *.i file generated by adding -save-temps to
    your command line??
    Thanks, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8282


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-06 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18 19:26 c/8282: GCC 3.1 crashes under bitshift operations hiten
2002-10-19  2:49 paolo
2003-01-06 19:17 ebotcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).