public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/23047] New: Combine ignores flag_wrapv
@ 2005-07-24 13:57 phython at gcc dot gnu dot org
  2005-07-24 14:01 ` [Bug rtl-optimization/23047] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-07-24 13:57 UTC (permalink / raw)
  To: gcc-bugs

The following testcase aborts with gcc 3.4, 4.0 and 4.1 when optimizing.  It
looks like combine is removing the condition here.
#include <limits.h>

void abort ();
void exit (int);

void f (int a) {
        if (abs(a) < 0)
          return;
        abort ();
}

int main (int argc, char *argv[]) {
        f (INT_MIN);
        exit (0);
}

-- 
           Summary: Combine ignores flag_wrapv
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phython at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-23047-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-11-03 18:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-24 13:57 [Bug rtl-optimization/23047] New: Combine ignores flag_wrapv phython at gcc dot gnu dot org
2005-07-24 14:01 ` [Bug rtl-optimization/23047] " pinskia at gcc dot gnu dot org
2005-07-24 14:06 ` pinskia at gcc dot gnu dot org
2005-07-24 22:47 ` phython at gcc dot gnu dot org
2005-07-27 23:20 ` pinskia at gcc dot gnu dot org
2005-07-28  4:45 ` cvs-commit at gcc dot gnu dot org
2005-07-28  5:26 ` phython at gcc dot gnu dot org
2005-07-29  6:03 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23047-4@http.gcc.gnu.org/bugzilla/>
2010-11-03 18:51 ` bonzini at 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).