public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/7102: unsigned char divisision results in floating exception
@ 2002-09-04 15:26 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-09-04 15:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, klfd21, nobody

Synopsis: unsigned char divisision results in floating exception

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Sep  4 15:26:33 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00307.html

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


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

* c/7102: unsigned char divisision results in floating exception
@ 2002-06-23 18:16 klfd21
  0 siblings, 0 replies; 2+ messages in thread
From: klfd21 @ 2002-06-23 18:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7102
>Category:       c
>Synopsis:       unsigned char divisision results in floating exception
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 23 03:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Wille
>Release:        3.1
>Organization:
>Environment:
System: Linux Rosinante 2.4.4 #13 Sat Jul 7 09:23:17 CEST 2001 i686 unknown
Architecture: i686

    <machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.1/configure --enable-threads --prefix=/usr/local/gcc-3.1
>Description:
Floating exception results from unsigned char divisision 255/2
>How-To-Repeat:
gcc -O0 unsigned_char_division_error.c
./a.out
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="unsigned_char_division_error.c"
Content-Disposition: inline; filename="unsigned_char_division_error.c"

typedef unsigned char u8;
void fun(u8 y) { u8 x=((u8)255)/y; }
int main() { fun(2); }


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

end of thread, other threads:[~2002-09-04 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04 15:26 c/7102: unsigned char divisision results in floating exception rth
  -- strict thread matches above, loose matches on Subject: below --
2002-06-23 18:16 klfd21

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