public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3325: wrong code with bitfields and integer modulo 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:         3325
>Category:       c
>Synopsis:       wrong code with bitfields and integer modulo operator
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 21 06:06:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Krakowczyk
>Release:        gcc-3.0
>Organization:
>Environment:
sun-sparc-solaris2.8
>Description:
modulo operator with bitfields and signed / unsigned fails
same operation with variables succeeds
>How-To-Repeat:
gcc bug3.c && ./a.out
>Fix:

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

I2luY2x1ZGUgPHN0ZGlvLmg+Cm1haW4oYXJnYyxhcmd2KSBpbnQgIGFyZ2MgOyBjaGFyICphcmd2
W10gOwp7CglzdHJ1Y3QgeCB7IGludCBmaWVsZCAgOiA3OyB1bnNpZ25lZCBpbnQgdWZpZWxkIDog
NjsgfSBiaXQ7CglpbnQgZXhpdHZhbCA9IDA7CgoJdW5zaWduZWQgaW50IHVyZWYgPSAodW5zaWdu
ZWQgaW50KSAoNDQpOwoJYml0LnVmaWVsZCAgICAgICAgPSAodW5zaWduZWQgaW50KSAoNjEpOyAK
CWJpdC5maWVsZCAgICAgICAgID0gKGludCkgICAgICAgICAoLTEzKTsKCQoJdW5zaWduZWQgaW50
IGNfdWZpZWxkICAgICAgICA9ICh1bnNpZ25lZCBpbnQpICg2MSk7IAoJaW50ICAgICAgICAgIGNf
ZmllbGQgICAgICAgICA9IChpbnQpICAgICAgICAgKC0xMyk7CgkKCWlmKChjX2ZpZWxkICUgKHVu
c2lnbmVkIGludCkoY191ZmllbGQpKSA9PSB1cmVmKSBwcmludGYgKCJjaGVjayB3aXRoIHZhcmlh
YmxlcyBpcyBvLmsuXG4iKTsKCglpZigoYml0LmZpZWxkICUgKHVuc2lnbmVkIGludCkoYml0LnVm
aWVsZCkpID09IHVyZWYpIHByaW50ZiAoImJpdGZpZWxkcyBvLmsuLCB0b29cbiIpOwoJZWxzZSB7
IHByaW50ZiAoIi4uLiBidXQgbW9kdWxvIHdpdGggYml0ZmllbGRzIGZhaWxcbiIpOyBleGl0dmFs
ICs9IDE7IH0KCQkJCglleGl0KGV4aXR2YWwpOwp9Cg==


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

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

Synopsis: wrong code with bitfields and integer modulo operator

State-Changed-From-To: closed->analyzed
State-Changed-By: neil
State-Changed-When: Fri Feb  1 20:55:46 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=3325


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

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

Synopsis: wrong code with bitfields and integer modulo operator

Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Tue Jan 29 09:27:26 2002
Responsible-Changed-Why:
    I fixed it.
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Jan 29 09:27:26 2002
State-Changed-Why:
    Fixed for 3.1.

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


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

end of thread, other threads:[~2002-02-02  4:55 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/3325: wrong code with bitfields and integer modulo operator Andreas.Krakowczyk
2002-01-29  9:27 neil
2002-02-01 20:55 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).