This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15022] New: -fprofile-generate crash with expression: -1/a, where a<0
- From: "veksler at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2004 09:17:49 -0000
- Subject: [Bug optimization/15022] New: -fprofile-generate crash with expression: -1/a, where a<0
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat t.c
int a=-1;
int main()
{
return -1/a;
}
$ $gcc34/bin/gcc -fprofile-generate t.c
$ ./a.out
profiling:/home/veksler/t.gcda:Overflow writing
$ $gcc34/bin/gcc -fprofile-use t.c
t.c:0: error: `t.gcda' has overflowed
$ $gcc34/bin/gcc -v Reading specs from
/home/veksler/gcc/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc-3.4.0-20040406/configure --prefix=/home/veksler/gcc
--enable-languages=c++
Thread model: posix
gcc version 3.4.0 20040407 (prerelease)
--
Summary: -fprofile-generate crash with expression: -1/a, where
a<0
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: veksler at il dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15022