public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/15022] New: -fprofile-generate crash with expression: -1/a, where a<0
@ 2004-04-20 10:49 veksler at il dot ibm dot com
  2004-04-20 11:28 ` [Bug optimization/15022] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: veksler at il dot ibm dot com @ 2004-04-20 10:49 UTC (permalink / raw)
  To: gcc-bugs

$ 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


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

* [Bug optimization/15022] -fprofile-generate crash with expression: -1/a, where a<0
  2004-04-20 10:49 [Bug optimization/15022] New: -fprofile-generate crash with expression: -1/a, where a<0 veksler at il dot ibm dot com
@ 2004-04-20 11:28 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-20 11:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-20 11:05 -------
This is a dup of bug 12786, which I reported about 6 months ago.

*** This bug has been marked as a duplicate of 12786 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15022


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

end of thread, other threads:[~2004-04-20 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-20 10:49 [Bug optimization/15022] New: -fprofile-generate crash with expression: -1/a, where a<0 veksler at il dot ibm dot com
2004-04-20 11:28 ` [Bug optimization/15022] " pinskia at gcc dot gnu 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).