public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17613] New: Integer Division produces a Floating exception.
@ 2004-09-22 15:54 ppelissi at caramail dot com
2004-09-22 17:32 ` [Bug target/17613] " pinskia at gcc dot gnu dot org
2004-09-22 23:22 ` falk at debian dot org
0 siblings, 2 replies; 3+ messages in thread
From: ppelissi at caramail dot com @ 2004-09-22 15:54 UTC (permalink / raw)
To: gcc-bugs
The following program:
#include <limits.h>
int f(long a, long b);
int main()
{
return f(LONG_MIN, 1);
}
int f(long a, long b)
{
return a / b;
}
produces a "Floating exception (core dumped)" on alpha-unknown-freebsd5.2.1
(spe149.testdrive.hp.com) with:
gcc version 3.4.2 and gcc version 3.3.3 [FreeBSD] 20031106.
The test program was compiled without any flags:
spe149.testdrive.hp.com> /tmp/make/bin/gcc test3.c
spe149.testdrive.hp.com> ./a.out
Floating exception (core dumped)
spe149.testdrive.hp.com> /tmp/make/bin/gcc -v
Reading specs from /tmp/make/lib/gcc/alpha-unknown-freebsd5.2.1/3.4.2/specs
Configured with: ./configure --prefix=/tmp/gcc : (reconfigured) ./configure
--prefix=/tmp/gcc : (reconfigured) ./configure --prefix=/tmp/make
--enable-languages=c
Thread model: posix
gcc version 3.4.2
The problem seems to be in the internal function "__divq" which produces the
exception.
--
Summary: Integer Division produces a Floating exception.
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ppelissi at caramail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alpha-unknown-freebsd5.2.1
GCC host triplet: alpha-unknown-freebsd5.2.1
GCC target triplet: alpha-unknown-freebsd5.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17613
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/17613] Integer Division produces a Floating exception.
2004-09-22 15:54 [Bug c/17613] New: Integer Division produces a Floating exception ppelissi at caramail dot com
@ 2004-09-22 17:32 ` pinskia at gcc dot gnu dot org
2004-09-22 23:22 ` falk at debian dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 17:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17613
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/17613] Integer Division produces a Floating exception.
2004-09-22 15:54 [Bug c/17613] New: Integer Division produces a Floating exception ppelissi at caramail dot com
2004-09-22 17:32 ` [Bug target/17613] " pinskia at gcc dot gnu dot org
@ 2004-09-22 23:22 ` falk at debian dot org
1 sibling, 0 replies; 3+ messages in thread
From: falk at debian dot org @ 2004-09-22 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk at debian dot org 2004-09-22 23:22 -------
__divq is provided by FreeBSD's libc. Please report a bug there.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17613
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-22 23:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 15:54 [Bug c/17613] New: Integer Division produces a Floating exception ppelissi at caramail dot com
2004-09-22 17:32 ` [Bug target/17613] " pinskia at gcc dot gnu dot org
2004-09-22 23:22 ` falk at debian dot org
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).