public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3326: wrong code with bitfields and integer division operator
@ 2001-06-21  6:06 Andreas.Krakowczyk
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas.Krakowczyk @ 2001-06-21  6:06 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Erwin.Unruh, Jochen.Canisius

>Number:         3326
>Category:       c
>Synopsis:       wrong code with bitfields and integer division operator
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 21 06:06:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Krakowczyk
>Release:        gcc-3.0
>Organization:
>Environment:
sun-sparc-solaris2.8
>Description:
division operator with bitfields and signed / unsigned fails
same operation with variables succeeds
>How-To-Repeat:
gcc bug4.c && ./a.out
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-c_auto_file; name="bug4.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug4.c"

bWFpbihhcmdjLGFyZ3YpIGludCAgYXJnYyA7IGNoYXIgKmFyZ3ZbXSA7CnsKCXN0cnVjdCB4IHsK
CQkJIGludCBmaWVsZCAgOiA3OwoJCXVuc2lnbmVkIGludCB1ZmllbGQgOiA2OwoJfSBiaXQ7CgoJ
aW50IGV4aXR2YWwgPSAwOwoJdW5zaWduZWQgaW50IHVyZWYgPSAodW5zaWduZWQgaW50KSg3MDQw
OTI5OSk7CgliaXQudWZpZWxkICA9ICh1bnNpZ25lZCBpbnQpKDYxKTsgCgliaXQuZmllbGQgICA9
IChpbnQpKC0xMyk7CgkKCXVuc2lnbmVkIGludCBjX3VmaWVsZCAgPSAodW5zaWduZWQgaW50KSg2
MSk7IAoJaW50ICAgICAgICAgIGNfZmllbGQgICA9IChpbnQpKC0xMyk7CgkKCWlmKChjX2ZpZWxk
IC8gKHVuc2lnbmVkIGludCkoY191ZmllbGQpKSA9PSB1cmVmKSBwcmludGYgKCJjaGVjayB3aXRo
IHZhcmlhYmxlcyBpcyBvLmsuXG4iKTsKCglpZigoYml0LmZpZWxkIC8gKHVuc2lnbmVkIGludCko
Yml0LnVmaWVsZCkpID09IHVyZWYpIHByaW50ZiAoImJpdGZpZWxkcyBvLmsuLCB0b29cbiIpOwoJ
ZWxzZSB7IHByaW50ZiAoIi4uLiBidXQgZGl2aXNvbiB3aXRoIGJpdGZpZWxkcyBmYWlsXG4iKTsg
ZXhpdHZhbCsrOyB9CgkJCQoJZXhpdChleGl0dmFsKTsKfQo=


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

* Re: c/3326: wrong code with bitfields and integer division operator
@ 2002-02-01 20:56 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-02-01 20:56 UTC (permalink / raw)
  To: Andreas.Krakowczyk, Erwin.Unruh, Jochen.Canisius, gcc-bugs,
	gcc-prs, neil

Synopsis: wrong code with bitfields and integer division operator

State-Changed-From-To: closed->analyzed
State-Changed-By: neil
State-Changed-When: Fri Feb  1 20:56:14 2002
State-Changed-Why:
    Patch haad to be reverted.  Might be fixed before 3.1, otherwise 3.2.

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


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

* Re: c/3326: wrong code with bitfields and integer division operator
@ 2002-01-29  9:29 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-01-29  9:29 UTC (permalink / raw)
  To: Andreas.Krakowczyk, Erwin.Unruh, Jochen.Canisius, gcc-bugs,
	gcc-prs, neil, nobody

Synopsis: wrong code with bitfields and integer division operator

Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Tue Jan 29 09:29:38 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Jan 29 09:29:38 2002
State-Changed-Why:
    Fixed for 3.1 with
    
    http://gcc.gnu.org/ml/gcc-cvs/2002-01/msg00876.html

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


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

end of thread, other threads:[~2002-02-02  4:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-21  6:06 c/3326: wrong code with bitfields and integer division operator Andreas.Krakowczyk
2002-01-29  9:29 neil
2002-02-01 20:56 neil

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).