This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/23047] New: Combine ignores flag_wrapv


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]